✅ Requirements → Test Coverage Mapper (RTM) Skill
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 (Mandatory Questions)
Before producing the RTM, ask at least 5 focused questions. Must cover:
- Test basis source
- PRD link/text? user stories? AC? designs? (what is “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, capture assumptions explicitly in the output.
Phase 2: Normalization (Make Requirements Traceable)
The agent must normalize input into atomic, testable requirements:
- Split compound requirements into smaller “testable statements”
- Assign stable IDs if missing:
REQ-001, REQ-002… (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)
- derive priority and test depth from risk
🧾 Output Schema (Strict)
Your output MUST follow this structure and order.
0) Document Metadata
- Version:
0.x
- Status: Draft / Review / Approved
- Owner: (name or
TBD)
- Last Updated: YYYY-MM-DD
- Sources Used: (PRD/story links or
Provided text in prompt)
- Assumptions Policy: “No assumptions unless explicitly listed below.”
1) Executive Coverage Summary
- Coverage status: % requirements mapped / unmapped
- High-risk areas and proposed test focus
- Top 5 gaps / blockers
- Recommended next actions (what to clarify, what to implement, what to test first)
2) Requirements Traceability Matrix (RTM)
A table with one row per atomic requirement.
| Req ID |
Requirement / Statement |
Source (Story/AC) |
Risk (I×L) |
Test Levels (Unit/API/UI/E2E/NFR) |
Test Scenarios (IDs) |
Automation Candidate |
Status (Planned/Exists/Missing) |
Notes |
Rules:
- Every requirement must have at least one scenario ID, or be flagged as
MISSING_TEST.
- Every scenario must have a clear expected outcome.
- If requirement is ambiguous → mark
NEEDS_CLARIFICATION and propose exact questions.
3) Test Scenario Catalog (Specification by Example)
List scenarios referenced in the RTM.
Each scenario must include:
- Scenario ID (
TS-001)
- Title
- Level(s): Unit/API/UI/E2E/NFR
- Preconditions / Data
- Steps (high-level)
- Expected results (assertable)
- Observability notes (logs/metrics/traces that confirm behavior)
- Negative cases / edge cases (if relevant)
4) Gap & Ambiguity Report
A prioritized list of issues that block good testing:
- Missing acceptance criteria
- Undefined error handling behavior
- Missing NFR targets (latency, rate limits, availability)
- Unclear roles/permissions
- Testability concerns (no hooks, unstable IDs, no deterministic mode)
Include:
- Gap ID (
GAP-001)
- Description
- Why it matters
- Suggested resolution (exact question or requirement rewrite)
5) Risk-Based Prioritization (What to Test First)
Provide a prioritized plan:
- Tier 0 (release blockers / critical flows)
- Tier 1 (high risk / high usage)
- Tier 2 (regression breadth)
For each tier include:
- linked Req IDs and Scenario IDs
- recommended execution cadence (per PR, nightly, pre-release)
- minimal “confidence suite” for hotfixes
6) Automation & CI Recommendations
- Which scenarios are best suited for automation (and why)
- What should remain manual (and why)
- CI gating suggestion:
- smoke suite vs regression suite
- flaky risk notes
- environment needs
If tooling is known (e.g., Azure DevOps/Jira/TestRail), propose how to encode links (IDs/tags).
If unknown → provide tool-agnostic tagging conventions.
7) Assumptions, Dependencies, and Change-Impact Notes
- Assumptions (explicit list)
- Dependencies (systems/teams/vendors)
- Change impact rules:
- “If REQ-xxx changes, rerun suites: …”
- “Areas likely to regress: …”
✅ 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
🧠 AI Self-Review Checklist
Before final output:
🧪 Example (Mini)
RTM (excerpt)
| Req ID |
Requirement |
Source |
Risk |
Levels |
Scenarios |
Auto |
Status |
Notes |
| REQ-001 |
User can reset password via email link valid for 15 minutes |
US-002 / AC-004 |
H×M |
API/UI/E2E |
TS-001, TS-002, TS-003 |
Yes |
Planned |
Need rate-limit spec |
Scenario (excerpt)
TS-002 - Password reset token expires
- Levels: API + UI
- Data: user exists; token issued at T0
- Steps: request reset → wait 16 min (or simulate time) → attempt reset
- Expected: reset rejected with
TOKEN_EXPIRED; user not logged in; audit log entry exists
✅ Outcome
Used correctly, this skill produces a traceability-driven plan that:
- proves coverage,
- exposes gaps early,
- guides automation investment,
- and supports release readiness decisions.
Source: jaktestowac/awesome-copilot-for-testers — distributed by TomeVault.
1---2name: requirements-test-coverage-mapper3description: Map requirements (PRD/user stories/AC) to comprehensive test coverage using a traceability matrix (RTM). Outputs coverage gaps, risks, test levels, prioritization, automation candidates, and change-impact notes. Designed for QA/Test Architect workflows. Use when this capability is needed.4---56# ✅ Requirements → Test Coverage Mapper (RTM) Skill78This skill turns a PRD, user stories, acceptance criteria, and constraints into a9**traceability-driven test coverage plan**:10- a Requirements Traceability Matrix (RTM)11- a gap & ambiguity report12- test design recommendations across levels (unit/API/UI/e2e/non-functional)13- automation candidates and CI gating suggestions1415The output is designed to be used as a **living artifact** and “single source of truth”16for coverage, readiness, and auditability.1718---1920## 🎯 When to Use2122Use this skill when you need to:23- Validate **coverage completeness** before/after implementation24- Convert **PRD/user stories** into a test plan that is traceable and reviewable25- Identify **missing acceptance criteria**, ambiguous requirements, or hidden scope26- Support **change impact analysis** when requirements evolve27- Build a **risk-based regression** strategy or release readiness assessment2829---3031## 🧭 Operational Workflow3233### Phase 0: Strategy Selection (Context First)34Classify the work to adjust rigor and output depth:3536- Delivery stage: MVP / Iteration / Hardening / Release / Hotfix37- Domain risk: Low / Medium / High (payments, auth, compliance = high)38- Change surface: UI / API / Data / Infra / Cross-cutting39- AI criticality: None / Supporting / Core40- Target tooling (optional): Jira / Azure DevOps / TestRail / GitHub Issues4142If unknown, mark as `TBD` and proceed with safe defaults.4344---4546### Phase 1: Discovery (Mandatory Questions)47Before producing the RTM, ask **at least 5** focused questions. Must cover:48491. **Test basis source**50 - PRD link/text? user stories? AC? designs? (what is “source of truth”?)512. **Scope boundaries**52 - What is explicitly in/out? any non-goals?533. **Quality attributes**54 - performance, security, accessibility, reliability, observability expectations?554. **Data & environments**56 - test envs available, data seeding/masking rules, third-party dependencies?575. **Release constraints**58 - deadline, MVP cuts, rollout type (flagged, staged, big-bang)?596. **Definition of Done / acceptance**60 - who signs off and what evidence is required?6162> If the user cannot answer, capture assumptions explicitly in the output.6364---6566### Phase 2: Normalization (Make Requirements Traceable)67The agent must normalize input into **atomic, testable requirements**:6869- Split compound requirements into smaller “testable statements”70- Assign stable IDs if missing:71 - `REQ-001`, `REQ-002`… (requirements)72 - `US-001`… (user stories)73 - `AC-001`… (acceptance criteria)74- Mark ambiguous statements as `NEEDS_CLARIFICATION`7576---7778### Phase 3: Coverage Design (Levels + Risks + Data)79For each requirement, propose coverage across:8081- **Functional**: positive/negative, edge cases, permissions82- **Integration**: APIs, events, DB, third parties83- **UX**: key flows, accessibility, error messaging84- **Non-functional**: performance, security, reliability, observability85- **AI-specific (if applicable)**: evaluation, drift, hallucinations/failure modes, fallbacks8687Use **risk-based thinking**:88- assign impact (H/M/L) and likelihood (H/M/L)89- derive priority and test depth from risk9091---9293## 🧾 Output Schema (Strict)9495Your output MUST follow this structure and order.9697---9899### 0) Document Metadata100- Version: `0.x`101- Status: Draft / Review / Approved102- Owner: (name or `TBD`)103- Last Updated: YYYY-MM-DD104- Sources Used: (PRD/story links or `Provided text in prompt`)105- Assumptions Policy: “No assumptions unless explicitly listed below.”106107---108109### 1) Executive Coverage Summary110- Coverage status: % requirements mapped / unmapped111- High-risk areas and proposed test focus112- Top 5 gaps / blockers113- Recommended next actions (what to clarify, what to implement, what to test first)114115---116117### 2) Requirements Traceability Matrix (RTM)118119A table with **one row per atomic requirement**.120121| Req ID | Requirement / Statement | Source (Story/AC) | Risk (I×L) | Test Levels (Unit/API/UI/E2E/NFR) | Test Scenarios (IDs) | Automation Candidate | Status (Planned/Exists/Missing) | Notes |122|-------:|--------------------------|-------------------|------------|-----------------------------------|----------------------|----------------------|----------------------------------|------|123124Rules:125- Every requirement must have **at least one** scenario ID, or be flagged as `MISSING_TEST`.126- Every scenario must have a **clear expected outcome**.127- If requirement is ambiguous → mark `NEEDS_CLARIFICATION` and propose exact questions.128129---130131### 3) Test Scenario Catalog (Specification by Example)132List scenarios referenced in the RTM.133134Each scenario must include:135- Scenario ID (`TS-001`)136- Title137- Level(s): Unit/API/UI/E2E/NFR138- Preconditions / Data139- Steps (high-level)140- Expected results (assertable)141- Observability notes (logs/metrics/traces that confirm behavior)142- Negative cases / edge cases (if relevant)143144---145146### 4) Gap & Ambiguity Report147A prioritized list of issues that block good testing:148149- Missing acceptance criteria150- Undefined error handling behavior151- Missing NFR targets (latency, rate limits, availability)152- Unclear roles/permissions153- Testability concerns (no hooks, unstable IDs, no deterministic mode)154155Include:156- Gap ID (`GAP-001`)157- Description158- Why it matters159- Suggested resolution (exact question or requirement rewrite)160161---162163### 5) Risk-Based Prioritization (What to Test First)164Provide a prioritized plan:165166- Tier 0 (release blockers / critical flows)167- Tier 1 (high risk / high usage)168- Tier 2 (regression breadth)169170For each tier include:171- linked Req IDs and Scenario IDs172- recommended execution cadence (per PR, nightly, pre-release)173- minimal “confidence suite” for hotfixes174175---176177### 6) Automation & CI Recommendations178- Which scenarios are best suited for automation (and why)179- What should remain manual (and why)180- CI gating suggestion:181 - smoke suite vs regression suite182 - flaky risk notes183 - environment needs184185If tooling is known (e.g., Azure DevOps/Jira/TestRail), propose how to encode links (IDs/tags).186If unknown → provide tool-agnostic tagging conventions.187188---189190### 7) Assumptions, Dependencies, and Change-Impact Notes191- Assumptions (explicit list)192- Dependencies (systems/teams/vendors)193- Change impact rules:194 - “If REQ-xxx changes, rerun suites: …”195 - “Areas likely to regress: …”196197---198199## ✅ Quality Rules (Non-Negotiable)200201### DO202- Make every requirement **atomic** and **testable**203- Use stable IDs for traceability204- Flag unknowns; don’t invent constraints205- Prefer measurable outcomes and concrete expected results206- Recommend test levels intentionally (not everything must be E2E)207208### DON’T209- Don’t hallucinate requirements, flows, or data models210- Don’t produce only UI tests (must consider unit/API/NFR)211- Don’t accept ambiguous requirements without logging them as gaps212- Don’t mark coverage “complete” if AC is missing or unclear213214---215216## 🧠 AI Self-Review Checklist217Before final output:218- [ ] Every requirement has an ID and is atomic219- [ ] Every requirement maps to ≥1 scenario OR is flagged missing220- [ ] Ambiguities are captured as explicit questions221- [ ] Risk is assigned and used to prioritize222- [ ] Non-functional coverage is addressed where relevant223- [ ] Assumptions are listed explicitly224225---226227## 🧪 Example (Mini)228229### RTM (excerpt)230| Req ID | Requirement | Source | Risk | Levels | Scenarios | Auto | Status | Notes |231|---:|---|---|---|---|---|---|---|---|232| REQ-001 | User can reset password via email link valid for 15 minutes | US-002 / AC-004 | H×M | API/UI/E2E | TS-001, TS-002, TS-003 | Yes | Planned | Need rate-limit spec |233234### Scenario (excerpt)235**TS-002 - Password reset token expires**236- Levels: API + UI237- Data: user exists; token issued at T0238- Steps: request reset → wait 16 min (or simulate time) → attempt reset239- Expected: reset rejected with `TOKEN_EXPIRED`; user not logged in; audit log entry exists240241---242243## ✅ Outcome244Used correctly, this skill produces a traceability-driven plan that:245- proves coverage,246- exposes gaps early,247- guides automation investment,248- and supports release readiness decisions.249250---251> Source: [jaktestowac/awesome-copilot-for-testers](https://github.com/jaktestowac/awesome-copilot-for-testers) — distributed by [TomeVault](https://tomevault.io).252<!-- tomevault:4.0:skill_md:2026-06-23 -->