test-gen
Skill4 starsChanged 8 months agoMITView on GitHub
Generate unit/integration tests for a file or module. Auto-invoked when user says "write tests for", "test this", "generate tests", or "add tests".
10 other projects use a version of this.
Adopted by
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- SethGammon/Citadeltheir own version, first seen Sep 20, 2026
- Pradnyeshp/Claude-Skillstheir own version, first seen Jul 6, 2026
- EvildoerXiaoyy/reasonix-skillstheir own version, first seen Jun 23, 2026
- ZaneL1u/test-generate-skillstheir own version, first seen Jun 18, 2026
- thijsvos/Claude_Skillstheir own version, first seen May 14, 2026
Used with
Projects with it also use refactor.
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.
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 5 projects that use this
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- SethGammon/Citadel★ 922same name
- EvildoerXiaoyy/reasonix-skills★ 4same name
- chidekina/aria-superpowers★ 2same name
- liogogogo/claude-code-enhancement★ 2same name
- Pradnyeshp/Claude-Skills★ 2same name
- AllThingsSmitty/proven-skills★ 1same name
- ilhankilic/yaratai-skill★ 1same name
- thijsvos/Claude_Skills★ 1same name
- 354685856-sn/claude-code-skills★ 0same name
- ZaneL1u/test-generate-skills★ 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 repository31 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- global/CLAUDE.mdCLAUDE.md
- auditSkill
- case-studySkill
- ci-commentSkill
- cold-outreachSkill
- daily-briefingSkill
- dep-checkSkill
- github-readmeSkill
- hub-statusSkill
- invoice-genSkill
- kronus-helpSkill
- kronusSkill
- kronus-troubleshootSkill
- lead-qualifySkill
- linkedin-postSkill
- manifest-validateSkill
- meeting-notesSkill
- planSkill
- profile-optimizeSkill
- project-summarySkill
- quick-reviewSkill
- reviewSkill
- secret-scanSkill
- seo-articleSkill
- standup-updateSkill
- telegram-projectSkill
- test-runSkill
- testSkill
- upwork-proposalSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
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 14
Read the target file and understand all exports, functions, classes
- Distinctive: line 16
Write tests following AAA pattern (Arrange-Act-Assert)
- Distinctive: line 27
Use factories/fixtures for test data — no hardcoded magic values
- Distinctive: line 30
Write the test file(s) to the appropriate location.
“Common” is measured: kept by at least 6 in 10 of the 6 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
Generate comprehensive tests for the following target right now:
Target: $ARGUMENTS (file path or module name)
Steps:
- Read the target file and understand all exports, functions, classes
- Detect the test framework from the project (package.json → Jest/Vitest, pyproject.toml → pytest, go.mod → go test, Cargo.toml → cargo test, foundry.toml → Foundry)
- Write tests following AAA pattern (Arrange-Act-Assert)
Coverage requirements:
- Happy path for every exported function/method
- Edge cases: empty inputs, null/undefined, boundary values, zero, negative numbers
- Error paths: invalid inputs, thrown exceptions, rejected promises
- Target 80%+ coverage (95%+ for auth/payments/data paths)
Quality rules:
- Descriptive names:
it("should return 401 when token is expired") - One assertion per test where practical
- Use factories/fixtures for test data — no hardcoded magic values
- Mock external services, use real deps for integration tests
Write the test file(s) to the appropriate location. Return a summary of what was generated.
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.

