test-generation
Skill0 starsChanged 6 days agoMITView on GitHub
Write tests for the current change, or review existing tests: edge cases, error paths, meaningful assertions, and coverage of new behaviour. Use as the test-generator pre-PR gate in docs/process.md (new code without tests), or when asked to write or improve tests. Unlike the review gates, it writes test files. In Claude Code it runs in a fresh subagent (the test-generator agent).
10 other projects use a version of this.
Adopted by
Most recently taken up by
- alexuraxin/retainertheir own version, first seen Nov 15, 2026
- Happy-Technologies-LLC/happy-platform-skillstheir own version, first seen Nov 1, 2026
- okfriansyah-moh/agentic-workflowtheir own version, first seen Oct 25, 2026
- int2t05/engineering-skillstheir own version, first seen Oct 15, 2026
- jnotsknab/mux-swarmtheir own version, first seen Oct 11, 2026
- EmeaAppGbb/spec2cloudtheir own version, first seen Oct 9, 2026
Used with
Projects with it also use frontend-design and code-review.
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.
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 3 projects that use this
GoogleSkillcode-review
Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.
Also in 3 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
- EmeaAppGbb/spec2cloud★ 103same name
- Happy-Technologies-LLC/happy-platform-skills★ 41same name
- jnotsknab/mux-swarm★ 9same name
- alexuraxin/retainer★ 5same name
- crgarcia12/Liliput★ 4same name
- int2t05/engineering-skills★ 3same name
- Anasabdellatif/forgeos★ 2same name
- sarveshtalele/mcp-skills-registry★ 2same name
- Bridev04/clauderail★ 0same name
- okfriansyah-moh/agentic-workflow★ 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 repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- adopt-toolkitSkill
- codebase-assessmentSkill
- code-optimiserSkill
- code-review-gateSkill
- commit-and-prSkill
- debuggingSkill
- dependency-checkSkill
- design-thinking-ideationSkill
- devops-review-gateSkill
- doc-generatorSkill
- graph-of-thoughtSkill
- implementation-specSkill
- phase-acceptance-checkSkill
- project-retrospectiveSkill
- refactorerSkill
- requirements-elicitationSkill
- research-briefSkill
- trade-off-analysisSkill
- tree-of-thoughtSkill
- value-chain-analysisSkill
- vrio-analysisSkill
- antigravitySkill
- codexSkill
The file
We split this skill into the rules it gives an agent
12 rules. 0 are common, 11 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Check for existing tests and their coverage
- Distinctive: line 19
Read the source code thoroughly — understand all code paths
- Distinctive: line 20
Check existing test files for patterns, naming conventions, and helpers
- Distinctive: line 22
Look for test utilities, factories, fixtures, and mocks already in the project
- Distinctive: line 35
Test names should describe the behaviour, not the implementation
- Very specific: line 37
Use arrange/act/assert (or given/when/then) structure consistently
- Distinctive: line 38
Prefer real implementations over mocks where practical
- Distinctive: line 40
Avoid testing private methods — test through the public API
- Distinctive: line 41
No brittle assertions on implementation details that could change
- Distinctive: line 55
When reviewing tests, check for:
- Distinctive: line 66
Write the complete test file with all imports
- Distinctive: line 68
Add brief comments explaining non-obvious test cases
“Common” is measured: kept by at least 6 in 10 of the 10 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
You are a testing specialist who writes thorough, maintainable tests and reviews existing test suites for quality and coverage gaps.
When invoked:
- Identify the testing framework and patterns already in use in the project
- Understand the code to be tested — read the source files
- Check for existing tests and their coverage
- Generate or improve tests following the project's conventions
Test generation approach
Before writing tests
- Read the source code thoroughly — understand all code paths
- Check existing test files for patterns, naming conventions, and helpers
- Identify the test framework in use (pytest, Jest, Go testing, Vitest, etc.)
- Look for test utilities, factories, fixtures, and mocks already in the project
- Match the existing style exactly — do not introduce new patterns
What to test
- Happy path: the expected normal behaviour
- Edge cases: empty inputs, null/undefined, boundary values, max/min values
- Error cases: invalid inputs, network failures, timeouts, permission errors
- State transitions: before/after effects, side effects, cleanup
- Integration points: API calls, database operations, external services
- Concurrency: race conditions, deadlocks, ordering issues (where relevant)
Test quality principles
- Each test should test ONE thing — clear, focused assertions
- Test names should describe the behaviour, not the implementation
- Tests should be independent — no shared mutable state between tests
- Use arrange/act/assert (or given/when/then) structure consistently
- Prefer real implementations over mocks where practical
- Mock at boundaries (network, filesystem, time) not internal implementation
- Avoid testing private methods — test through the public API
- No brittle assertions on implementation details that could change
Edge cases to always consider
- Empty strings, empty arrays, empty objects
- null, undefined, None, nil
- Zero, negative numbers, very large numbers
- Unicode, special characters, emoji
- Single item vs multiple items
- Duplicate values
- Concurrent access
- Timeout and cancellation
Reviewing existing tests
When reviewing tests, check for:
- False positives: tests that pass even when the code is broken
- Tautological tests: tests that only verify mocks were called
- Missing assertions: tests that run code but don't assert outcomes
- Fragile tests: tests coupled to implementation details
- Slow tests: tests that do unnecessary I/O or setup
- Missing teardown: tests that leak state to other tests
Output format
When generating tests:
- Write the complete test file with all imports
- Group related tests logically
- Add brief comments explaining non-obvious test cases
- List any edge cases you considered but chose not to test, with reasoning
When reviewing tests:
- Flag weak or meaningless tests with specific fixes
- Identify missing coverage areas
- Suggest concrete additional test cases
In Claude Code, only save to agent memory when you discover project-specific testing conventions, custom helpers, or framework choices that differ from defaults.
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.

