/quality-skills:test-strategyfrom quality-skills
Designs, audits, or evolves test strategies — test pyramid/trophy shape, layer responsibilities, shift-left/right, and release gates. Anchors in well-known frameworks and team context.
Ships in quality-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
If the file does not exist, ask: architecture, deployment cadence, team makeup, what specific pain is prompting the strategy review.
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.
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.
| 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.
Not every feature warrants equal testing. Allocate based on:
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."
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.
qa-context.md for architecture, languages, cadence, compliance.When helping with strategy, ask:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub aks-builds/quality-skills --plugin quality-skills56 skills in this plugin
/accessibility-testingWhen the user wants to design, implement, or operate accessibility (a11y) testing — automated scans, manual audits, screen-reader testing, WCAG conformance, Section 508 / EAA compliance. Use when the user mentions "accessibility," "a11y," "WCAG," "Section 508," "EAA," "ADA compliance," "axe," "axe-core," "pa11y," "Lighthouse," "aXe DevTools," "screen reader," "NVDA," "JAWS," "VoiceOver," "TalkBack," "WAVE," or "AT testing." For visual diff see visual-regression. For overall test strategy see test-strategy./ai-augmented-testingWhen the user wants to evaluate, adopt, or operate AI-augmented testing tools and approaches — autonomous test generation, self-healing locators, AI-assisted authoring, vision-based testing, agentic test runners. Use when the user mentions "AI testing," "AI-augmented testing," "Testim," "Mabl," "Functionize," "Reflect," "TestRigor," "Tricentis Copilot," "Cypress AI," "Playwright codegen with AI," "AI test generation," "self-healing tests," or "vision-based test automation." For LLM-product evals see llm-eval-testing. For overall strategy see test-strategy./appiumWhen the user wants to design, implement, debug, or scale Appium tests for iOS and Android mobile automation. Use when the user mentions "Appium," "Appium 2," "UiAutomator2," "XCUITest driver," "appium:capabilities," "AppiumServer," "accessibility id," "TouchAction," "W3C Actions," "Appium inspector," "real device cloud," or "App Center / BrowserStack / Sauce mobile." For Android-native frameworks see espresso. For iOS-native see xcuitest. For React Native specifically see detox. For YAML-driven mobile flows see maestro. For desktop web automation see selenium / playwright / webdriverio.