test-strategy
Skill59 starsChanged 2 months agoMITView on GitHub
Decide what to test and at which level before any tests get written — enumerate failure modes by consequence, give each one the cheapest level that can actually observe it, and name what is deliberately left uncovered. Use when starting testing on a feature or a codebase, when asked for a test plan or why coverage sits where it does, or when a suite is large and still missing bugs. Not for writing the tests themselves, and not for proving a finished change works.
24 other projects use a version of this.
Adopted by
Most recently taken up by
- l-gevity/l-gevity-skillstheir own version, first seen Oct 1, 2026
- nurettincoban/ai-prd-workflowtheir own version, first seen Oct 1, 2026
- cilinmengye/personal-agent-skillstheir own version, first seen Sep 24, 2026
- angelgabrieljacintohuayllasco/clipboard-skillstheir own version, first seen Sep 20, 2026
- OneDro1d/onedroid-docstheir own version, first seen Sep 18, 2026
- caiaffa/claude-code-ultimate-engineering-systemtheir own version, first seen Sep 14, 2026
Used with
Projects with it also use test-data-management, security-and-hardening and 1 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.
petrkindlmannSkilltest-data-management
Create and manage test data with factory patterns, fixture strategies, data anonymization, and synthetic data generation. Covers Fishery (TypeScript), FactoryBot (Ruby), Factory Boy (Python), database seeding, cleanup strategies, and GDPR-compliant data handling. Use when: "test data," "fixtures," "factories," "seed data," "synthetic data," "test database," "data anonymization." Not for: migration/integrity testing of the DB itself — use database-testing; environment provisioning and database branching strategy — use test-environments. Related: test-environments, database-testing, api-testing, unit-testing.
Also in 3 projects that use this
LLl0k0laDSkillsecurity-and-hardening
Use when handling user input, authentication, data storage, or external integrations. Use when building any feature that accepts untrusted data, manages user sessions, or interacts with third-party services.
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 versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- nurettincoban/ai-prd-workflow★ 297same name
- petrkindlmann/qa-skills★ 160same name
- avelikiy/great_cto★ 103same name
- thiientv/godmode★ 96same name
- l-gevity/l-gevity-skills★ 44same name
- fishzjp/qa-skills★ 35same name
- nimadorostkar/Claude-Skills-collection★ 28same name
- aethrox/doctrine★ 18same name
- caiaffa/claude-code-ultimate-engineering-system★ 17same name
- jpolec/odysseus★ 9same name
14 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 repository79 other files it gives its agents.
- agent-dispatcherSkill
- agent-designSkill
- agent-evalsSkill
- context-engineeringSkill
- llm-observabilitySkill
- mcp-designSkill
- memory-designSkill
- model-routingSkill
- prompt-engineeringSkill
- prompt-injection-defenseSkill
- retrieval-ragSkill
- structured-outputSkill
- tool-designSkill
- api-contract-verificationSkill
- api-designSkill
- authenticationSkill
- authorizationSkill
- background-jobsSkill
- cachingSkill
- idempotency-and-retriesSkill
- webhooksSkill
- database-migration-verificationSkill
- data-integritySkill
- data-pipelinesSkill
- data-qualitySkill
- migrationsSkill
- postgresSkill
- query-optimizationSkill
- schema-designSkill
- accessibilitySkill
- accessibility-verificationSkill
- design-systemsSkill
- design-to-codeSkill
- frontend-designSkill
- motion-designSkill
- responsive-designSkill
- ui-auditSkill
- ux-writingSkill
- ci-cdSkill
- deploymentSkill
- dockerSkill
- github-actionsSkill
- incident-responseSkill
- observabilitySkill
- release-verificationSkill
- rollbackSkill
- component-architectureSkill
- frontend-performanceSkill
- shadcn-uiSkill
- stack-detectionSkill
- tailwindSkill
- visual-verificationSkill
- competitive-analysisSkill
- copywritingSkill
- data-analysisSkill
- deep-researchSkill
- documentation-verificationSkill
- positioningSkill
- seoSkill
- source-evaluationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
3
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 17
Before writing a batch of tests, when planning a feature's coverage, when a suite is slow or expensive and nobody can say what it buys, or …
- Distinctive: line 30
Find the boundaries: Every place data crosses into or out of your control — HTTP, database, queue, filesystem, clock, third party, the user.
- Distinctive: line 54
Check for the untestable design: If a risk cannot be reached at any level without elaborate mocking, that is a finding about the code — a …
“Common” is measured: kept by at least 6 in 10 of the 22 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 strategy
Coverage percentage measures which lines ran, not which failures would be caught. A suite can be 90% green and blind to every way the system actually breaks, because tests get written where they are easy to write — pure helpers, config objects, getters — and failures happen at boundaries.
This produces a short written allocation: risks, the level each is tested at, and what is not tested. It does not produce tests.
When this fires
Before writing a batch of tests, when planning a feature's coverage, when a suite is slow or expensive and nobody can say what it buys, or after an escaped bug when the question is why nothing caught it. It does not fire for adding one test to an existing pattern.
Procedure
- Enumerate failure modes, not features. For each one: what goes wrong, who notices, and what it costs — corrupted data, money moved twice, a silent wrong number, a page that will not load, a cosmetic slip. Rank by consequence times plausibility. A feature list produces even coverage; a failure list produces useful coverage.
- Get the history before trusting your instincts. Bug-fix commits, issue tracker, incident notes, the files that change most often. Where this system has broken before is the best available predictor of where it breaks next, and it is usually not where anyone guessed.
- Find the boundaries. Every place data crosses into or out of your control — HTTP, database, queue, filesystem, clock, third party, the user. Most real defects live at boundaries or in the logic that decides which side of one to take.
- Assign each risk the lowest level that can actually observe that failure. Lowest is cheapest and most precise — but "lowest" is bounded by observability: a bug that only exists in the interaction between two components cannot be caught by a unit test that mocks the seam it lives in. Choosing a level a mock makes blind is the most common way a green suite misses.
- Say what each level is for in this system, in one line each, because the words are used differently everywhere: unit (logic in isolation, no I/O), integration (real adapter against a real dependency — database, HTTP, queue), end-to-end (a whole journey through the running system). Write the definitions you are using; do not argue the pyramid.
- Set a budget in seconds, not in counts. How long the suite may take on a developer's machine and in CI. A budget forces the allocation to be real: if every risk lands at the top level, the suite will be slow, flaky and eventually ignored, which is worse coverage than fewer honest tests.
- Name what you are choosing not to test, and why. Generated code, framework behaviour, third party internals, exact copy, throwaway spikes, anything whose failure is cheap and obvious. An unlisted gap is an accident; a listed one is a decision.
- Name what cannot be tested automatically at all — a payment provider's production behaviour, a physical device, a rendered judgement call — and say what the manual check is and when it runs. Do not silently let the hard parts fall off the plan.
- State what a green suite will license you to claim. "These journeys and these boundaries were exercised" is a claim; "the feature works" is not, unless the plan actually covers it. Writing the claim down is what stops tested being reported as verified later.
- Check for the untestable design. If a risk cannot be reached at any level without elaborate mocking, that is a finding about the code — a boundary in the wrong place, hidden state, work done in a constructor. Report it as a design finding rather than building the elaborate mock.
- Write the allocation down as a table a reviewer can argue with: risk, level, what would have to be true for it to be caught, and its owner if it is manual.
Checklist
- Failure modes listed with consequence, not a feature list
- Repository and issue history consulted for where breakage actually happened
- Boundaries identified and each one assigned a level
- Every risk placed at the lowest level that can still observe it
- Level definitions written for this system
- Runtime budget stated for local and CI
- Deliberate non-coverage listed with reasons
- Manual-only checks named with an owner and a trigger
- The claim a green suite supports is written down
- Untestable-by-design findings raised rather than mocked around
Failure handling
- Asked for a coverage percentage target — give the allocation, and say which risks are covered and which are not. A number can be met without touching a single risk on the list.
- No history available (new code, fresh repository) — say so, and lean on boundaries and on consequence ranking instead. Do not present intuition as evidence.
- Everything looks high risk — rank anyway, by blast radius. A plan that calls all of it critical allocates nothing.
- Existing suite is large and unloved — measure before proposing: runtime, failure history, how often a red run found a real bug. Deleting tests is a real deletion of someone else's work: recommend it with the evidence and ask before removing anything.
- The plan implies changing production code to be testable — that is a legitimate outcome, but it is a separate change with its own review. Name it, do not smuggle it in.
Evidence to report
The risk list with each item's assigned level and the reason that level can see it; the level definitions used; the runtime budget; the explicit not-covered list; the manual checks with owners; and the single sentence saying what a green run of this plan does and does not prove. A plan without a not-covered list is not finished.
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.

