| name | spec-matrix |
| description | Build and maintain the requirements Test Matrix ensuring 100% coverage. |
Build Test Matrix
Use this skill to create the requirements Test Matrix and ensure comprehensive coverage.
Rules (The Six Requirements)
- Coverage: Every Acceptance Criterion (AC) must have ≥1 Test Case (TC).
- Option Permutation: Test all valid option combinations.
- Constraint Boundary: Test min, max, below-min (fail), above-max (fail).
- Error Path: Test all documented error conditions.
- State Transition: Test all valid state transitions (if applicable).
- Edge Case: Identify and test extreme/unusual scenarios.
Process
- Initialize:
- Use template
assets/test-matrix-template.md.
- Target: Correct location.
- Single Repo:
spec/tests.md
- Multi-Repo:
specs/<category>/<component>/spec/tests.md
- Traceability:
- Map
StR -> TC.
- Map
US -> TC.
- Map
FR -> TC.
- Map
NFR -> TC.
- Map
C (Constraints) -> TC.
- Enumerate: List all Test Cases with ID, Title, Type, Priority, Status.
- Define Detailed TCs (Optional):
- For complex tests, create at:
- Single Repo:
spec/test-cases/TC-XXX.md
- Multi-Repo:
specs/<category>/<component>/spec/test-cases/TC-XXX.md
- Verify: Ensure all 6 rules are satisfied.
- Status: Mark as ✅ Complete only when all rules are met.
React Components (Conditional)
For React projects, add a Storybook Test Matrix section.
See skills/review-react/SKILL.md for:
- Story file requirements per component
- AC trace code format in story JSDoc
- Coverage matrix template (FR → AC → Story)
Integration Test Matrix (Conditional)
If ANY requirement specifies integration testing, include this section.
When Required
- FR/NFR annotation:
integration_test: true or mentions integration verification
- Cross-project interactions (other services in your org)
- Interactions with local-provided services (Redis, Postgres, message bus)
- UI component browser testing (React → Storybook)
Section Contents
Use template section ## Integration Test Matrix with:
- Purpose column: What integration is being tested
- Target column: External system/service/project
- Type column:
service | browser | event | database
- Test Cases: Extensive functional coverage, not just smoke tests
Coverage Expectations
- Extensively test functionality (multiple scenarios per integration)
- Include happy path + error conditions + edge cases
- For browser tests: visual verification + interaction flows
Markers
- ✅ Complete
- ⚠️ Partial
- ❌ Missing
- 🚧 In Progress