test-writer
Skill1 starsChanged 9 days agoMITView on GitHub
Design and write automated tests (unit, integration, property-based) for code the user provides. Use whenever the user asks for tests, test cases, better coverage, a regression test for a bug, or asks 'how should I test this', even if they do not name a framework.
37 other projects use a version of this.
Adopted by
Most recently taken up by
- aixisstudio/claude-skillstheir own version, first seen Nov 29, 2026
- ahfarhan001-dot/dev-ai-toolstheir own version, first seen Nov 29, 2026
- andiupn/claude-code-startertheir own version, first seen Nov 29, 2026
- nafiz530/SkillShelf-Labstheir own version, first seen Nov 29, 2026
- DmitryTokyo/agent-kittheir own version, first seen Nov 22, 2026
- maurodesouza/skillstheir own version, first seen Nov 22, 2026
Used with
Projects with it also use debug-fix, changelog-writer and 6 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
zebbernSkilldebug-fix
Find and fix a bug or issue — from any source (GitHub issue, error message, user report, or observed behavior)
Also in 4 projects that use this
zbruhnkeSkillchangelog-writer
Maintain CHANGELOG.md with properly categorized entries. Use after implementing features, fixing bugs, or making any notable changes. Follows Keep a Changelog format.
Also in 5 projects that use this
chmouelSkillcommit-helper
Generate conventional commit from staged changes
Also in 3 projects that use this
glinckerSkillreadme-generator
Generates comprehensive README.md files for software projects by analyzing codebase structure
Also in 4 projects that use this
JohnJBorenSkilldebugger
Systematic debugging workflows, root cause analysis, and troubleshooting patterns
Also in 3 projects that use this
get-proofpilotSkillcontext-budget
Audits Claude Code context window consumption across agents, skills, MCP servers, and rules. Identifies bloat, redundant components, and produces prioritized token-savings recommendations.
Also in 3 projects that use this
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- leonardomso/33-js-concepts★ 67ksame name
- Devolutions/IronRDP★ 3.4ksame name
- poshan0126/dotclaude★ 871same name
- TheDecipherist/claude-code-mastery-project-starter-kit★ 337same name
- hamzafarooq/claude-code-starter★ 145same name
- anchildress1/awesome-ai★ 68same name
- anchildress1/awesome-github-copilot★ 68same name
- nimbalyst/skills★ 28same name
- Twigpine/openclaude-skills★ 19same name
- jeremymcs/skills★ 8same name
27 more not listed
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 repository26 other files it gives its agents.
- adr-writerSkill
- api-design-reviewSkill
- changelog-generatorSkill
- chart-selectorSkill
- code-reviewSkill
- commit-and-pr-writerSkill
- csv-profilerSkill
- debugging-playbookSkill
- docker-best-practicesSkill
- email-drafterSkill
- executive-summarySkill
- incident-postmortemSkill
- meeting-actionsSkill
- okr-writerSkill
- plain-language-editorSkill
- prd-writerSkill
- pre-push-secret-scanSkill
- prompt-improverSkill
- readme-writerSkill
- refactoring-guideSkill
- resume-tailorSkill
- security-reviewSkill
- source-evaluatorSkill
- sql-optimizerSkill
- study-plan-builderSkill
- my-skill-nameSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 34 edited versions we read keep these.
5
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
- Distinctive: line 12
Build a case table: before writing code:
- Distinctive: line 29
Prefer real objects and small fakes over heavy mocking.
- Distinctive: line 30
Use parametrization/table tests for many similar cases.
- Distinctive: line 31
Never assert on implementation details that would break under a harmless refactor.
- Distinctive: line 32
No sleeps. Inject clocks and seeds.
“Common” is measured: kept by at least 6 in 10 of the 34 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
Test Writer
Approach
- Identify the behavior, not the lines. List what the code promises: inputs, outputs, side effects, errors.
- Pick the framework the project already uses (pytest, unittest, Jest, Vitest, JUnit, Go testing, RSpec...). If unknown, default to pytest for Python and Vitest/Jest for JS/TS and say so.
- Build a case table before writing code:
| Category | Examples |
| Happy path | typical valid input |
| Boundaries | 0, 1, max, empty, single element, exact limit |
| Invalid input | wrong type, None/null, malformed, too large |
| Error paths | dependency fails, timeout, partial failure |
| State/ordering | repeated calls, idempotency, concurrency |
| Regression | the exact input that triggered a past bug |
- Write tests that are independent, deterministic, and fast.
Style rules
- Arrange / Act / Assert, with one logical assertion focus per test.
- Name tests as sentences:
test_rejects_negative_amount,it('retries twice before failing'). - Prefer real objects and small fakes over heavy mocking. Mock only at system boundaries (network, clock, filesystem, randomness).
- Use parametrization/table tests for many similar cases.
- Never assert on implementation details that would break under a harmless refactor.
- No sleeps. Inject clocks and seeds.
- For pure functions with wide input domains, add a property-based test (Hypothesis, fast-check) and state the invariant.
Output
Deliver the test file ready to run, then a short list: what is covered, what is deliberately not covered, and any code smell that made testing hard (with a suggested seam). If you could not run the tests, say so.
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.

