add-test
Skill2 starsChanged 3 months agoMITView on GitHub
Use when adding or improving tests for existing behavior, regressions, edge cases, or coverage gaps. Follow existing test style and cover normal, error, and boundary cases where relevant. Do not use when behavior is undefined or implementation must change first.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- flavien-ia/hypervibe-harnesstheir own version, first seen Oct 4, 2026
- ficaviolaodorata520/met-museum-mcp-servertheir own version, first seen Jun 1, 2026
- microsoft/PilotSwarmtheir own version, first seen Mar 6, 2026
- open-metadata/ai-sdktheir own version, first seen Feb 25, 2026
- kt057/claude-code-boilerplatetheir own version, first seen Feb 8, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- flavien-ia/hypervibe-harness★ 44same name
- open-metadata/ai-sdk★ 15same name
- microsoft/PilotSwarm★ 4same name
- kt057/claude-code-boilerplate★ 1same name
- ficaviolaodorata520/met-museum-mcp-server★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- implement-featureSkill
- investigate-bugSkill
- refactor-safelySkill
- update-okfSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. 0 are common, 15 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 10
Use this Skill when:
- Distinctive: line 17
Do not use this Skill when:
- Distinctive: line 32
Before editing tests, read:
- Distinctive: line 35
Test helpers, fixtures, factories, and naming conventions.
- Distinctive: line 44
Add focused tests for useful cases:
- Distinctive: line 48
Prefer stable assertions over brittle implementation details.
- Distinctive: line 49
Run the new test directly.
- Distinctive: line 50
Run related test files or suites when risk warrants it.
- Distinctive: line 51
If tests expose a defect, stop and report it unless the user asked to fix it.
- Distinctive: line 55
Do not change production behavior unless explicitly asked.
- Distinctive: line 56
Do not rewrite the test framework or large fixtures for a narrow test request.
- Distinctive: line 57
Do not add tests that only assert mocks were called unless that is the meaningful contract.
- Distinctive: line 58
Do not hide flaky tests by weakening assertions without explanation.
- Distinctive: line 59
Do not add secrets, credentials, private URLs, or personal data to fixtures.
- Distinctive: line 75
Test commands run and results.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Add Test
When to use
Use this Skill when:
- Existing behavior needs test coverage.
- A regression needs a failing test.
- Edge cases or error paths need explicit coverage.
- A refactor needs safety tests before code changes.
Do not use this Skill when:
- The expected behavior is unclear.
- The requested work requires implementation before tests can be meaningful.
- The task is primarily documentation or OKF maintenance.
Inputs
- Target behavior, file, bug, or coverage gap.
- Expected behavior.
- Existing test command or framework, if known.
- Related OKF documents when behavior is domain-specific.
Required context
Before editing tests, read:
- Existing tests near the target area.
- Test helpers, fixtures, factories, and naming conventions.
- Relevant implementation only enough to understand test boundaries.
- Relevant OKF documents when they define expected behavior.
Workflow
- Identify the expected behavior and source of truth.
- Inspect nearby tests to match style, structure, naming, and helpers.
- Choose the right test level: unit, integration, end-to-end, or snapshot.
- Add focused tests for useful cases:
- Normal path.
- Error or invalid input path.
- Boundary values or edge cases.
- Prefer stable assertions over brittle implementation details.
- Run the new test directly.
- Run related test files or suites when risk warrants it.
- If tests expose a defect, stop and report it unless the user asked to fix it.
Guardrails
- Do not change production behavior unless explicitly asked.
- Do not rewrite the test framework or large fixtures for a narrow test request.
- Do not add tests that only assert mocks were called unless that is the meaningful contract.
- Do not hide flaky tests by weakening assertions without explanation.
- Do not add secrets, credentials, private URLs, or personal data to fixtures.
Completion checklist
- Existing test style was followed.
- Test scope matches the behavior.
- Normal, error, and boundary cases were considered.
- New tests were run directly where possible.
- Any failing behavior is clearly reported.
Expected final response
Report:
- What behavior is now covered.
- Test files changed.
- Test commands run and results.
- Any uncovered cases or blockers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

