Test strategy

From rnavarych/alpha-engineer · View interactive version

Test strategy is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Designs comprehensive test strategies: test pyramid/trophy/diamond/honeycomb models, risk-based prioritization, shift-left, mutation testing, testing in production (feature flags, canary, shadow traffic), AI-assisted test generation, quality metrics (DORA, defect escape rate), test architecture patt

How to use this skill

Skill file

Test Strategy

When to use

Core principles

  1. Test behavior, not implementation — tests survive refactoring; if touching internals breaks them, they're wrong
  2. Model before metrics — choose pyramid/trophy/diamond/honeycomb first, then set coverage targets accordingly
  3. Coverage is vanity, mutation score is truth — 80% line coverage with 0% mutation detection is theater
  4. Shift left relentlessly — every bug caught at compile time costs 1x; the same bug in production costs 100x
  5. Test in production safely — canary + synthetic monitors + feature flags beats pretending staging is production

Reference Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.