requirements-test-coverage-mapper
Skill118 starsChanged 2 months agoMITView on GitHub
Maps requirements (PRD, user stories, acceptance criteria) to planned test coverage via a Requirements Traceability Matrix, exposing coverage gaps, risks, test levels, prioritization, and automation candidates. Use when designing coverage from a specification, checking coverage completeness for a PRD or user story, finding missing acceptance criteria, or building a risk-based regression strategy. When the tests already exist and the matrix has to be extracted from them, verified, and kept accurate, use the tracing-requirements-to-code skill instead.
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
test design recommendations across levels (unit/API/UI/e2e/non-functional)
- Distinctive: line 21
Use this skill when you need to:
- Very specific: line 41
If unknown, mark as TBD and proceed with safe defaults.
- Distinctive: line 45
Ask targeted questions where the answer would change the coverage plan.
- Distinctive: line 50
Data & environments: - test envs available, data seeding/masking rules, third-party dependencies?
- Distinctive: line 54
If the user cannot answer (or wants to move fast), capture the gaps as explicit assumptions in the output and proceed.
- Very specific: line 74
Use risk-based thinking: assign impact (H/M/L) and likelihood (H/M/L), and derive priority and test depth from risk.
- Very specific: line 90
Follow the strict output schema in ./resources/coverage-map-template.md - document metadata, executive coverage summary, RTM table, …
- Distinctive: line 97
Use stable IDs for traceability
- Distinctive: line 99
Prefer measurable outcomes and concrete expected results
- Distinctive: line 104
Don't hallucinate requirements, flows, or data models
- Very specific: line 105
Don't produce only UI tests (must consider unit/API/NFR)
- Distinctive: line 106
Don't accept ambiguous requirements without logging them as gaps
- Distinctive: line 107
Don't mark coverage "complete" if AC is missing or unclear
- Very specific: line 139
every requirement is atomic, has a stable ID, and maps to at least one scenario or an explicit MISSING_TEST flag
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Requirements → Test Coverage Mapper (RTM)
This skill turns a PRD, user stories, acceptance criteria, and constraints into a traceability-driven test coverage plan:
- a Requirements Traceability Matrix (RTM)
- a gap & ambiguity report
- test design recommendations across levels (unit/API/UI/e2e/non-functional)
- automation candidates and CI gating suggestions
The output is designed to be used as a living artifact and single source of truth for coverage, readiness, and auditability.
When to Use
Use this skill when you need to:
- Validate coverage completeness before/after implementation
- Convert PRD/user stories into a test plan that is traceable and reviewable
- Identify missing acceptance criteria, ambiguous requirements, or hidden scope
- Support change impact analysis when requirements evolve
- Build a risk-based regression strategy or release readiness assessment
Operational Workflow
Phase 0: Strategy Selection (Context First)
Classify the work to adjust rigor and output depth:
- Delivery stage: MVP / Iteration / Hardening / Release / Hotfix
- Domain risk: Low / Medium / High (payments, auth, compliance = high)
- Change surface: UI / API / Data / Infra / Cross-cutting
- AI criticality: None / Supporting / Core
- Target tooling (optional): Jira / Azure DevOps / TestRail / GitHub Issues
If unknown, mark as TBD and proceed with safe defaults.
Phase 1: Discovery
Ask targeted questions where the answer would change the coverage plan. Cover these areas:
- Test basis source - PRD link/text? user stories? AC? designs? (what is the "source of truth"?)
- Scope boundaries - what is explicitly in/out? any non-goals?
- Quality attributes - performance, security, accessibility, reliability, observability expectations?
- Data & environments - test envs available, data seeding/masking rules, third-party dependencies?
- Release constraints - deadline, MVP cuts, rollout type (flagged, staged, big-bang)?
- Definition of Done / acceptance - who signs off and what evidence is required?
If the user cannot answer (or wants to move fast), capture the gaps as explicit assumptions in the output and proceed.
Phase 2: Normalization (Make Requirements Traceable)
Normalize input into atomic, testable requirements:
- Split compound requirements into smaller "testable statements"
- Assign stable IDs if missing:
REQ-001… (requirements),US-001… (user stories),AC-001… (acceptance criteria) - Mark ambiguous statements as
NEEDS_CLARIFICATION
Phase 3: Coverage Design (Levels + Risks + Data)
For each requirement, propose coverage across:
- Functional: positive/negative, edge cases, permissions
- Integration: APIs, events, DB, third parties
- UX: key flows, accessibility, error messaging
- Non-functional: performance, security, reliability, observability
- AI-specific (if applicable): evaluation, drift, hallucinations/failure modes, fallbacks
Use risk-based thinking: assign impact (H/M/L) and likelihood (H/M/L), and derive priority and test depth from risk.
Phase 3b: Cross-Check the Backward Direction
The RTM table has one row per requirement, so it can only ever show requirements with no test. When tests already exist, also run the other direction: which existing tests map to no requirement?
An orphan test is one of three things, and they need different actions:
- an undocumented requirement - the behaviour matters, someone tested it, nobody wrote it down. Add it to the requirement set.
- a test of removed behaviour - delete it.
- a test that proves nothing - route it to
unslop-testsrather than mapping it.
Report orphans classified, not counted. For a full bidirectional pass over an existing codebase, including annotation, link verification, and drift detection, use tracing-requirements-to-code.
Phase 4: Produce the Output
Follow the strict output schema in ./resources/coverage-map-template.md - document metadata, executive coverage summary, RTM table, scenario catalog, gap report, risk-based prioritization, automation/CI recommendations, and assumptions/change-impact notes, in that order.
Quality Rules (Non-Negotiable)
DO
- Make every requirement atomic and testable
- Use stable IDs for traceability
- Flag unknowns; don't invent constraints
- Prefer measurable outcomes and concrete expected results
- Recommend test levels intentionally (not everything must be E2E)
DON'T
- Don't hallucinate requirements, flows, or data models
- Don't produce only UI tests (must consider unit/API/NFR)
- Don't accept ambiguous requirements without logging them as gaps
- Don't mark coverage "complete" if AC is missing or unclear
Self-Review Checklist
Before final output:
- Every requirement has an ID and is atomic
- Every requirement maps to ≥1 scenario OR is flagged missing
- Where tests already exist, orphan tests are identified and classified
- A scenario marked
Existswas confirmed against the actual test, not assumed from its title - Ambiguities are captured as explicit questions
- Risk is assigned and used to prioritize
- Non-functional coverage is addressed where relevant
- Assumptions are listed explicitly
Resource Map
./resources/coverage-map-template.md- the strict output schema (RTM table, scenario catalog, gap report, prioritization tiers) with a worked example
Related Skills
tracing-requirements-to-code- when the tests already exist and the matrix must be extracted from them, verified, and kept accurate. Use this skill to plan coverage from a spec, that one to trace what was actually built.prd-generator- when requirements themselves still need to be written before mappingverifying-acceptance-criteria- when a specific build must be checked against the acceptance criteriaanalyzing-regression-scope- when the question is tactical retest scope after a change rather than full traceabilitydesigning-functional-tests- when RTM scenarios should expand into detailed test casesassessing-release-readiness- when the coverage gaps found here feed a go/no-go decision
Definition of Done
This skill is complete when:
- every requirement is atomic, has a stable ID, and maps to at least one scenario or an explicit
MISSING_TESTflag - gaps and ambiguities are logged with concrete resolution questions
- prioritization tiers are risk-derived and actionable
- automation and CI recommendations are justified per scenario
- assumptions and change-impact notes are explicit
In this repository51 other files it gives its agents.
- analyzing-quality-metricsSkill
- analyzing-regression-scopeSkill
- api-playwright-test-developerSkill
- assessing-comprehension-debtSkill
- assessing-release-readinessSkill
- attesting-manual-verificationSkill
- auditing-accessibilitySkill
- code-review-advancedSkill
- code-reviewSkill
- communicating-quality-findingsSkill
- creating-custom-agentsSkill
- creating-hooksSkill
- creating-instructionsSkill
- creating-orchestration-packsSkill
- creating-pluginsSkill
- creating-promptsSkill
- creating-skillsSkill
- deriving-a-quality-contractSkill
- designing-functional-testsSkill
- designing-test-dataSkill
- documenting-test-suitesSkill
- generating-quality-gate-workflowsSkill
- governing-quality-waiversSkill
- handling-sensitive-test-dataSkill
- migrating-tests-to-playwrightSkill
- mocking-network-and-timeSkill
- planning-exploratory-testingSkill
- prd-generatorSkill
- recording-change-intentSkill
- reporting-bugsSkill
- reviewing-ai-output-groundednessSkill
- running-visual-regression-testsSkill
- scoping-change-relevanceSkill
- static-code-analysis-typescriptSkill
- tech-debt-analysisSkill
- test-driven-development-quickSkill
- test-driven-developmentSkill
- testing-agent-skillsSkill
- testing-api-contractsSkill
- testing-application-securitySkill
- testing-llm-featuresSkill
- testing-llm-guardrailsSkill
- testing-performance-and-loadSkill
- tracing-requirements-to-codeSkill
- tracking-quality-trendsSkill
- unslop-answersSkill
- unslop-testsSkill
- verifying-acceptance-criteriaSkill
- verifying-change-coverageSkill
- writing-unit-tests-quickSkill
- writing-unit-testsSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

