test-generation
Skill0 starsChanged 5 months agoApache-2.0View on GitHub
Design and write focused automated tests for new code, bug fixes, and risky behavior. Use whenever the user asks for tests, shares untested code, fixes a defect that needs regression coverage, mentions coverage gaps, or wants help deciding what to test, even if they do not name a testing framework.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- Anasabdellatif/forgeostheir own version, first seen Sep 1, 2026
- int2t05/engineering-skillstheir own version, first seen Aug 13, 2026
- Happy-Technologies-LLC/happy-platform-skillstheir own version, first seen Jul 28, 2026
- Noorkhalel/saas-ai-skillstheir own version, first seen Jul 12, 2026
- jnotsknab/mux-swarmtheir own version, first seen Jun 29, 2026
- sarveshtalele/mcp-skills-registrytheir own version, first seen Jun 12, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- Happy-Technologies-LLC/happy-platform-skills★ 40same name
- jnotsknab/mux-swarm★ 9same name
- int2t05/engineering-skills★ 3same name
- Anasabdellatif/forgeos★ 2same name
- Noorkhalel/saas-ai-skills★ 2same name
- sarveshtalele/mcp-skills-registry★ 2same 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 repository128 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-implementationSkill
- accessibility-reviewSkill
- api-changelogSkill
- api-designSkill
- auth-designSkill
- caching-strategiesSkill
- chaos-experiment-designSkill
- ci-cd-pipelinesSkill
- cli-designSkill
- cloudformation-reviewSkill
- codebase-orientationSkill
- code-commentsSkill
- code-reviewSkill
- commit-messagesSkill
- container-reviewSkill
- database-indexingSkill
- database-migrationsSkill
- debuggingSkill
- dependency-upgradesSkill
- design-system-contributionSkill
- design-tokensSkill
- desktop-releaseSkill
- error-handlingSkill
- feature-flagsSkill
- finops-reviewSkill
- frontend-performanceSkill
- git-conflict-resolutionSkill
- graphql-schema-designSkill
- helm-chart-scaffoldingSkill
- i18n-reviewSkill
- kubernetes-reviewSkill
- load-test-planningSkill
- logging-observabilitySkill
- message-queue-designSkill
- migration-playbooksSkill
- mobile-releaseSkill
- multi-region-active-activeSkill
- observability-alertsSkill
- openapi-spec-designSkill
- partner-api-integrationSkill
- performance-reviewSkill
- pr-descriptionsSkill
- prompt-injection-hardeningSkill
- pulumi-reviewSkill
- rate-limitingSkill
- refactor-planningSkill
- secrets-managementSkill
- security-reviewSkill
- sql-query-reviewSkill
- terraform-reviewSkill
- threat-modelingSkill
- webhook-designSkill
- websocket-designSkill
- ab-test-analysisSkill
- anomaly-detectionSkill
- cost-anomaly-investigationSkill
- csv-analysisSkill
- data-cleaningSkill
- data-contract-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 10 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
10
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 18
Create tests that protect observable behavior and likely failure modes.
- Distinctive: line 25
Read the repository's existing test framework, fixtures, naming, and helper patterns before writing code.
- Distinctive: line 30
Write deterministic tests with an explicit arrange, act, assert structure.
- Distinctive: line 31
Run the smallest relevant test command, then the broader suite when the change affects shared behavior.
- Distinctive: line 48
When code can be edited, provide the tests and summarize:
- Distinctive: line 61
When only planning tests, return a table with case, level, setup, assertion, and priority.
- Distinctive: line 67
Do not use snapshots for volatile or security-sensitive values unless the snapshot is intentionally reviewed and stable.
- Distinctive: line 69
Avoid sleeps, network access, wall-clock assumptions, and random data without a fixed seed.
- Distinctive: line 71
Keep one reason for failure per test where practical.
- Distinctive: line 74
Never claim a test passes unless it was run.
“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
Test Generation
Create tests that protect observable behavior and likely failure modes. A small set of high-signal tests is better than broad coverage coupled to implementation details.
Workflow
- Identify the public contract, invariants, side effects, and failure modes.
- Read the repository's existing test framework, fixtures, naming, and helper patterns before writing code.
- Rank cases by risk: regression, boundaries, permissions, malformed input, concurrency, and external failures.
- Choose the narrowest test level that proves the behavior.
- Write deterministic tests with an explicit arrange, act, assert structure.
- Run the smallest relevant test command, then the broader suite when the change affects shared behavior.
Case selection
Include cases from these groups when relevant:
- Representative success path.
- Boundary values immediately below, at, and above a limit.
- Empty, missing, malformed, duplicated, and unexpectedly large input.
- Authorization and tenant isolation.
- Dependency timeout, partial failure, retry, and cancellation.
- State transitions, repeated calls, and idempotency.
- A regression test that fails for the reported bug before the fix.
Output format
When code can be edited, provide the tests and summarize:
## Coverage added
- `<test name>`: behavior and risk protected
## Command
`<exact test command>`
## Remaining gaps
- Anything requiring integration infrastructure or unavailable contextWhen only planning tests, return a table with case, level, setup, assertion, and priority.
Rules
- Assert externally meaningful results, not private method call sequences.
- Do not use snapshots for volatile or security-sensitive values unless the snapshot is intentionally reviewed and stable.
- Avoid sleeps, network access, wall-clock assumptions, and random data without a fixed seed.
- Keep one reason for failure per test where practical.
- Reuse local factories and fixtures, but do not hide the behavior under test behind excessive helpers.
- Never claim a test passes unless it was run; report the exact blocker if it could not be executed.
Edge cases
- For legacy code with no test seam, first add a characterization test around current behavior.
- For generated code, test the generator or schema rather than generated lines.
- For flaky failures, preserve diagnostics and isolate nondeterminism before weakening assertions.
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.

