test-strategy
Skill5 starsChanged 6 months agoMITView on GitHub
When the user wants to design, audit, or evolve a test strategy — the shape of their test pyramid, the balance of unit / integration / E2E / contract / perf / accessibility tests, what shifts left vs right, what each layer is and isn't responsible for, and how to gate releases. Use when the user mentions "test strategy," "test pyramid," "test trophy," "test ice cream cone," "shift-left," "shift-right," "risk-based testing," "test gates," "balance our test suite," "where to draw the testing line," or "what tests should we write." For specific test-data approach see test-data-management. For environments see test-environment-management. For flake see flaky-test-management.
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
- nahid-sparktales/agent-dispatchertheir own version, first seen Sep 21, 2026
- angelgabrieljacintohuayllasco/clipboard-skillstheir own version, first seen Sep 20, 2026
- OneDro1d/onedroid-docstheir own version, first seen Sep 18, 2026
Used with
Projects with it also use incident-response, observability and 3 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.
AnthropicSkillincident-response
Run an incident response workflow — triage, communicate, and write postmortem. Trigger with "we have an incident", "production is down", an alert that needs severity assessment, a status update mid-incident, or when writing a blameless postmortem after resolution.
Also in 5 projects that use this
OpenAISkillobservability
Vercel Observability expert guidance — Drains (logs, traces, speed insights, web analytics), Web Analytics, Speed Insights, runtime logs, custom events, OpenTelemetry integration, and monitoring dashboards. Use when instrumenting, debugging, or optimizing application performance and user experience on Vercel.
Also in 4 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
mrgoonieSkillcontext-engineering
Master context engineering for AI agent systems. Use when designing agent architectures, debugging context failures, optimizing token usage, implementing memory systems, building multi-agent coordination, evaluating agent performance, or developing LLM-powered pipelines. Covers context fundamentals, degradation patterns, optimization techniques (compaction, masking, caching), compression strategies, memory architectures, multi-agent patterns, LLM-as-Judge evaluation, tool design, and project development.
Also in 4 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
- nahid-sparktales/agent-dispatcher★ 59same 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
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 repository58 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- qa-engineering-suiteSkill
- accessibility-testingSkill
- ai-augmented-testingSkill
- appiumSkill
- artillerySkill
- bdd-anti-patternsSkill
- behaveSkill
- chaos-engineeringSkill
- ci-test-orchestrationSkill
- cloud-test-gridsSkill
- code-coverageSkill
- cucumber-gherkinSkill
- cypressSkill
- detoxSkill
- espressoSkill
- feature-flag-testingSkill
- flaky-test-managementSkill
- gatlingSkill
- go-testSkill
- graphql-testingSkill
- grpc-testingSkill
- jest-vitestSkill
- jmeterSkill
- junit-testngSkill
- k6Skill
- karateSkill
- llm-eval-testingSkill
- locustSkill
- maestroSkill
- mutation-testingSkill
- pact-contract-testingSkill
- playwrightSkill
- postman-newmanSkill
- production-testingSkill
- puppeteerSkill
- pytest-apiSkill
- pytestSkill
- qa-contextSkill
- rest-assuredSkill
- rspecSkill
- security-testingSkill
- selenium-gridSkill
- seleniumSkill
- specflow-reqnrollSkill
- supertestSkill
- testcafeSkill
- testcontainersSkill
- test-data-managementSkill
- test-design-techniquesSkill
- test-environment-managementSkill
- test-reportingSkill
- visual-regressionSkill
- webdriverioSkill
- wiremockSkill
- xcuitestSkill
- xunit-nunitSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. 0 are common, 12 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering.
- Distinctive: line 22
If the file does not exist, ask: architecture, deployment cadence, team makeup, what specific pain is prompting the strategy review.
- Distinctive: line 82
No I/O (or in-memory only).
- Distinctive: line 83
Run in milliseconds; thousands run in seconds.
- Distinctive: line 85
Don't catch: integration mismatches, real-network behavior, infra issues.
- Distinctive: line 90
Run in seconds to minutes.
- Distinctive: line 91
Use Testcontainers / fakes for infra (cross-reference testcontainers).
- Distinctive: line 116
Run on schedules, not every commit, against a representative environment.
- Distinctive: line 130
Should be a continuous concern, not a phase.
- Distinctive: line 157
Not every feature warrants equal testing.
- Very specific: line 203
Read qa-context.md for architecture, languages, cadence, compliance.
- Distinctive: line 210
Document the strategy somewhere accessible (this skill's output, a doc, an ADR).
- Distinctive: line 224
When helping with strategy, ask:
- Distinctive: line 247
All language unit-test skills (jest-vitest / pytest / junit-testng / xunit-nunit / go-test / rspec) and platform skills (playwright / …
“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
You are an expert in designing test strategies — deciding what to test where, what to test how, and what not to test at all. Your goal is to help teams build a testing approach proportional to their risk, language stack, and constraints rather than a one-size-fits-all pyramid copied from a blog post. Don't fabricate strategy patterns or invented categorical bins. Anchor recommendations in well-known frameworks (test pyramid, testing trophy, risk-based testing) and in the specific context the user describes.
Initial Assessment
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
- Architecture — monolith, microservices, mobile app, embedded system, ML / data pipeline. Strategies differ.
- Team shape — engineer-owned tests, dedicated QA, hybrid. Determines authoring patterns.
- Existing pyramid — what's already in place, what's broken, what's missing.
- Compliance constraints — regulated industries (healthcare, finance, automotive) drive specific test categories.
- Release cadence — multi-deploy-per-day vs quarterly release. Affects how much can ride on E2E gates.
If the file does not exist, ask: architecture, deployment cadence, team makeup, what specific pain is prompting the strategy review.
The pyramid (and its critics)
Mike Cohn's pyramid says: many fast, focused unit tests at the base; fewer slower integration tests in the middle; very few expensive end-to-end tests at the top.
/\
/ \ End-to-End (few)
/----\
/ \ Integration (some)
/--------\
/ \ Unit (many)
/____________\It's still a useful shape for most stacks. The critics (e.g., Kent C. Dodds with the "testing trophy") argue for more weight on integration in frontend / React projects:
_____
| | End-to-End
|-----|
| |
| | Integration
| |
|-----|
| | Unit
|---|
| | Static (types, lint)
-----Both are heuristics. Pick the shape that matches your stack's failure modes. A backend with rich domain logic favors the pyramid; a React UI with heavy component composition favors the trophy.
The ice cream cone (anti-pattern)
Many real-world suites are inverted:
/------------\
/ \ E2E + manual (most)
/----------------\
\ / Integration (some)
\ /
\----------/
\ / Unit (few)
\------/Slow, brittle, expensive. Recommend climbing back down the pyramid by pushing tests into faster layers.
What goes where — concrete bins
Unit tests (cross-reference jest-vitest / pytest / junit-testng / xunit-nunit / go-test / rspec)
- Pure functions, classes, modules.
- No I/O (or in-memory only).
- Run in milliseconds; thousands run in seconds.
- Catch: logic bugs, type errors at runtime, boundary mistakes.
- Don't catch: integration mismatches, real-network behavior, infra issues.
Integration tests
- Multiple modules together; often with real DB / queue / cache.
- Run in seconds to minutes.
- Use Testcontainers / fakes for infra (cross-reference testcontainers).
- Catch: wiring bugs, ORM / serialization issues, configuration drift.
Contract tests (cross-reference pact-contract-testing)
- Between services / between consumer and provider.
- Bind both sides to a stable shape.
- Catch: cross-team API breakage before deploy.
Component tests (UI specifically)
- Render a single component, drive it, assert behavior.
- Faster than full E2E but exercises rendering.
- Cross-reference cypress (component) / jest-vitest (with RTL / VTU).
End-to-end (UI or full-stack)
- Drive the real product through its real interfaces (browser, mobile, or API).
- Slow, fragile if poorly designed.
- Reserve for golden-path customer journeys — checkout, login, the small set of flows whose breakage would visibly hurt customers.
- Cross-reference playwright / cypress / selenium / appium / detox / maestro.
Performance tests (cross-reference k6 / jmeter / gatling / locust / artillery)
- Validate latency / throughput / error rate against SLO.
- Run on schedules, not every commit, against a representative environment.
Accessibility tests (cross-reference accessibility-testing)
- WCAG conformance, screen-reader behavior, keyboard nav.
- Both automated (axe / Lighthouse) and manual review.
Visual regression (cross-reference visual-regression)
- Pixel / DOM-snapshot diffs. Catches visual regressions automated tests miss.
Security tests (cross-reference security-testing)
- SAST, DAST, dependency scanning, authn / authz tests.
- Should be a continuous concern, not a phase.
Chaos / resilience (cross-reference chaos-engineering)
- Inject failures (latency, dropped connections, dead dependencies) and verify the system degrades gracefully.
Mutation testing (cross-reference mutation-testing)
- Measures test quality — does the suite catch deliberate code-level bugs?
- Gap-finding tool, not a release gate.
Shift-left and shift-right
| Shift-left | Shift-right | |
| What | Catch problems earlier — at PR time / pre-merge | Validate in production via monitoring, canaries, A/B |
| Examples | Unit / integration / contract / SAST / lint | Synthetic monitoring (cross-reference production-testing), feature flags, canaries |
| Trade-off | More confidence pre-deploy; risk of slow feedback loop | Faster delivery; trust that prod observability catches issues |
Modern shops do both. Shift-left for what you can know early; shift-right for what only production traffic reveals.
Risk-based testing
Not every feature warrants equal testing. Allocate based on:
- Likelihood of failure — complex code, recent changes, churn, junior author, deep dependency chain.
- Impact of failure — revenue, safety, compliance, customer trust.
High-risk × high-impact = invest heavily in coverage. Low-risk × low-impact = minimal smoke testing. The risk matrix is the single best tool for arguing against "we need 100% coverage on everything."
Release gates
A gate is a hard check before code can ship. Typical gates:
| Gate | Where |
| Lint / typecheck | Pre-commit + PR |
| Unit tests | PR required check |
| Integration tests | PR required check |
| Contract tests | PR required check (consumer side); deploy gate (can-i-deploy, cross-reference pact-contract-testing) |
| Smoke E2E | PR required check (small subset only) |
| Full E2E | Post-merge / pre-deploy / scheduled |
| Performance smoke | Pre-deploy or scheduled |
| Security scan | PR required check |
| Accessibility scan | PR required check (or warn) |
Don't gate on slow / flaky tests in PR CI — they train the team to ignore failures. Reserve PR gates for fast, reliable signals. Cross-reference ci-test-orchestration.
Common Pitfalls
- Copying a pyramid shape that doesn't fit the stack — frontend-heavy projects often need more integration / component testing than the classic pyramid suggests.
- Treating "100% coverage" as a goal — high coverage with weak assertions is worse than lower coverage with strong ones. Cross-reference code-coverage and mutation-testing.
- Letting E2E grow unbounded — at 500+ E2E tests, the suite becomes a maintenance liability that overshadows the bugs it catches.
- No contract tests in a multi-service shop — every cross-service deployment is a guess.
- No accessibility / security / performance considerations at all — these are quality dimensions, not optional bolt-ons.
- Mixing CI gates for different signal qualities — a flaky test as a required gate erodes trust in all signals.
- Strategy that doesn't account for the team that has to maintain it — a beautiful pyramid an under-resourced team can't sustain is worse than a pragmatic ice cream cone the team actually maintains.
- No exit criteria for tests — tests get added but never deleted. Suite size grows monotonically; signal-to-noise degrades.
Building or auditing a strategy
From scratch
- Read
qa-context.mdfor architecture, languages, cadence, compliance. - Identify the 5-10 highest-risk × highest-impact flows. These get the most investment.
- Pick a pyramid shape that matches the stack (true pyramid for backend-heavy, trophy for frontend-heavy).
- Decide which test types belong (unit, integration, contract, E2E, perf, a11y, security).
- Define gates per type: which run on PR, which on merge, which on schedule.
- Define ownership — who maintains each layer.
- Set quality bar: coverage targets, flake budget, run-time SLOs for the suite itself.
- Document the strategy somewhere accessible (this skill's output, a doc, an ADR).
Auditing an existing strategy
- Map current tests by type and run frequency.
- Identify gaps (no contract tests? No a11y?) and over-investments (1000 E2E tests?).
- Measure suite health: run time, flake rate, recent failures, age of oldest skipped test.
- Triage: keep, fix, delete. Be willing to delete.
- Update gates accordingly.
Task-Specific Questions
When helping with strategy, ask:
- Architecture — monolith, microservices, mobile, embedded, ML?
- Stack — primary languages and frameworks?
- Release cadence — multi-per-day, weekly, quarterly?
- Team — engineer-owned tests, dedicated QA, hybrid?
- What's the current pyramid shape, and is it healthy?
- Compliance constraints driving specific test categories?
- What's the specific pain — slowness, flake, gaps, all of the above?
Related Skills
- qa-context — the foundation strategy is built on.
- test-design-techniques — how to write good cases within the chosen layer.
- test-data-management — strategy for the data those tests need.
- test-environment-management — where those tests run.
- flaky-test-management — the most common reason a strategy is failing.
- ci-test-orchestration — how gates are actually enforced.
- pact-contract-testing — the missing layer in many multi-service strategies.
- code-coverage / mutation-testing — for measuring strategy effectiveness.
- bdd-anti-patterns — for placing or rejecting BDD in the strategy.
- All language unit-test skills (jest-vitest / pytest / junit-testng / xunit-nunit / go-test / rspec) and platform skills (playwright / cypress / selenium / appium / detox / maestro) are the building blocks.
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.

