Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Compose comprehensive testing strategies spanning unit, integration, e2e, and performance tests with optimal coverage.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 30% | 0% |
| case-05 | ✗→✓ | ▲ Improved | 99% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 78% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 62% | 0% |
Trigger conditions:
Use this skill when you need to establish or improve testing practices with clear ROI, balanced coverage across the test pyramid, and framework-specific implementation guidance.
Before execution, verify:
NOW_ET = 2025-10-25T21:30:36-04:00 (NIST/time.gov semantics, America/New_York)system_description is non-empty string or parseable diagramtech_stack contains at least one technology identifierconstraints (if provided) includes valid keys: budget, time, team_sizeexisting_coverage (if provided) has numeric metricsNOW_ET; verify links resolveAbort conditions:
Goal: Analyze system and recommend test type distribution.
json { "test_distribution": { "unit": 70, "integration": 20, "e2e": 10 }, "priority_areas": ["auth", "payment", "data-sync"], "estimated_effort_hours": 40 }
Token budget: ≤2k tokens
Goal: Generate test scaffolding, calculate gaps, and create execution plan.
existing_coverage to targetsToken budget: ≤6k tokens total (including T1)
T3 is not required for this P0 skill; T2 provides sufficient depth for most testing strategies.
Test distribution adjustments:
Effort estimation (per 1000 LOC):
Coverage thresholds (from Martin Fowler Testing):
Stop conditions:
Required fields (all outputs):
typescriptinterface TestStrategy { strategy: string; // Markdown document (200-800 words) test_distribution: { unit: number; // Percentage (0-100) integration: number; e2e: number; performance?: number; }; priority_areas: string[]; // Top 3-5 high-risk components estimated_effort_hours: number; } interface TestScaffolding { framework: string; // e.g., "Jest", "pytest" unit_template: string; // Code snippet integration_template: string; e2e_template: string; setup_instructions: string; // Installation/config steps } interface CoverageGaps { current_coverage_percent: number; target_coverage_percent: number; gap_percent: number; untested_modules: Array<{ name: string; risk: "high" | "medium" | "low"; estimated_effort_hours: number; }>; } interface ExecutionPlan { phases: Array<{ phase_number: number; duration_weeks: number; focus_area: string; deliverables: string[]; success_criteria: string; }>; total_duration_weeks: number; dependencies: string[]; // External blockers }
Format:
test_strategy: Markdown with headings (## Overview, ## Test Types, ## Rationale)test_scaffolding: Code blocks with language hints (javascript)coverage_gaps: Valid JSONexecution_plan: Markdown with tables or numbered listsValidation:
yamlINPUT: system_description: "REST API with Node.js/Express, PostgreSQL, Redis" tech_stack: ["node.js", "express", "jest", "supertest"] existing_coverage: {unit: 45, integration: 10, e2e: 0} OUTPUT: test_distribution: {unit: 65, integration: 25, e2e: 10} scaffolding: # Unit test (Jest) describe('UserService', () => { it('hashes password', () => { expect(hashPassword('secret')).not.toBe('secret'); }); }); # Integration test describe('POST /users', () => { it('creates user in DB', async () => { const res = await request(app).post('/users').send({name: 'Alice'}); expect(res.status).toBe(201); }); }); coverage_gaps: - {module: "AuthService", risk: "high", effort_hours: 8}
Token budgets (mandatory):
Safety checks:
Auditability:
NOW_ETDeterminism:
Validation checklist:
Primary sources (accessed 2025-10-25):
Best practices, case studies, and emerging patterns from Google's testing infrastructure team.
Canonical testing patterns, pyramid model, and test doubles taxonomy.
Detailed guide on test distribution, anti-patterns, and framework examples.
Official guidance for unit, integration, and performance testing in .NET ecosystems.
International standard for testing terminology, lifecycle, and techniques.
Additional templates:
resources/test-pyramid-template.md for Markdown strategy templateexamples/strategy-example.txt for complete workflow exampleRelated skills (future):
performance-test-designer (for load/stress testing deep dive)mutation-testing-analyzer (for assessing test effectiveness)flaky-test-investigator (for debugging unstable tests)End of SKILL.md
Other measured skills in the registry, with their headline benchmark lift.