Test Strategy
Test pyramid, risk-based testing, test planning, coverage metrics, and SDLC integration
Install
npx skills add cosmicstack-labs/mercury-agent-skills --skill test-strategygit clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git /tmp/mercury-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/mercury-agent-skills/categories/testing-qa/test-strategy ~/.claude/skills/test-strategyPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# 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: [metric]
```
## CI Integration
- Unit/component tests on every PR (fail under 5 min)
- Integration suite on every merge to main
- E2E nightly or on demand
- Flaky test detection → auto-quarantine → alertDetails
- Skill name
test-strategy- Repository
- cosmicstack-labs/mercury-agent-skills
- Path
categories/testing-qa/test-strategy/SKILL.md- License
- MIT
- Repo updated
- 25 August 2026
FAQ
What does the Test Strategy skill do?
Test pyramid, risk-based testing, test planning, coverage metrics, and SDLC integration
How do I install the Test Strategy skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add cosmicstack-labs/mercury-agent-skills --skill test-strategy. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Test Strategy popular?
It lives in cosmicstack-labs/mercury-agent-skills, which has 492 GitHub stars and 68 forks.
Related skills
Accessibility
492cosmicstack-labs/mercury-agent-skills
Achieve and maintain WCAG compliance through inclusive design practices, proper ARIA usage, and comprehensive testing methodologies.
Accessibility Testing
492cosmicstack-labs/mercury-agent-skills
WCAG 2.1/2.2 audit, axe, Lighthouse, manual testing, screen reader testing, and remediation
Agent Audit Logging
492cosmicstack-labs/mercury-agent-skills
Implement comprehensive audit logging and reporting for multi-agent systems. Covers event capture, structured logging, traceability, compliance reporting, forensic analysis, and real-time monitoring dashboards for agent actions and decisions.
Testing Strategies
492cosmicstack-labs/mercury-agent-skills
Comprehensive testing strategy covering unit, integration, e2e, property-based, and mutation testing with practical patterns
Performance Testing
492cosmicstack-labs/mercury-agent-skills
Load, stress, spike testing with k6/Locust, bottleneck analysis, and performance test automation
Fix Issue
220ThinkFlowLab/agentdescent
Fix one AgentDescent issue end to end - claim, fresh clone, a test that fails on main, gates, PR, self-review at the tip, merge by tier, cleanup.
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.