test-strategy
Test pyramid, risk-based testing, test planning, coverage metrics, and SDLC integration
npx skills add cosmicstack-labs/mercury-agent-skills --skill test-strategy --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Test Strategy Design comprehensive test strategies that catch bugs early and scale with your product. ## The Modern Test Pyramid ``` E2E (5%) Integration (15%) Component/Contract (30%) Unit Tests (50%) ``` ### Layer Details | Layer | Scope | Speed | Who Owns | |-------|-------|-------|----------| | Unit | Single function/class | ms | Developers | | Component | UI component/module | ms-s | Developers | | Contract | API boundaries | s | Dev + QA | | Integration | Service interactions | s-min | QA | | E2E | Full user flows | min | QA + DevOps | ## Risk-Based Testing 1. **Identify risks** for each feature (data loss, security, UX, performance) 2. **Score** likelihood × impact 3. **Allocate test effort** proportionally to risk score 4. **Reassess** after each release ## Coverage Goals | Type | Target | |------|--------| | Line coverage | >80% | | Branch coverage | >75% | | Mutation score | >60% | | Critical path E2E | 100% | | API endpoint tested | >90% | ## Test Planning Template ```markdown ## Feature: [Name] - Unit tests: [count] — [files/scope] - Integration tests: [count] — [services involved] - E2E tests: [count] — [critical paths] - Edge cases: [list] - Performance threshold: [
- The Modern Test Pyramid
- Layer Details
- Risk-Based Testing
- Coverage Goals
- Test Planning Template
- CI Integration
What does the test-strategy skill do?
Test pyramid, risk-based testing, test planning, coverage metrics, and SDLC integration
How do I install it?
Run `npx skills add cosmicstack-labs/mercury-agent-skills --skill test-strategy --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From cosmicstack-labs/mercury-agent-skills, a repository with 364 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.