✅ Requirements → Test Coverage Mapper (RTM) Skill
Vendor skill (source: jaktestowac-awesome-copilot-for-testers). Imported 2026-05-31.
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.
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.4---56# ✅ Requirements → Test Coverage Mapper (RTM) Skill78> _Vendor skill (source: jaktestowac-awesome-copilot-for-testers). Imported 2026-05-31._910This skill turns a PRD, user stories, acceptance criteria, and constraints into a11**traceability-driven test coverage plan**:12- a Requirements Traceability Matrix (RTM)13- a gap & ambiguity report14- test design recommendations across levels (unit/API/UI/e2e/non-functional)15- automation candidates and CI gating suggestions1617The output is designed to be used as a **living artifact** and “single source of truth”18for coverage, readiness, and auditability.1920---2122## 🎯 When to Use2324Use this skill when you need to:25- Validate **coverage completeness** before/after implementation26- Convert **PRD/user stories** into a test plan that is traceable and reviewable27- Identify **missing acceptance criteria**, ambiguous requirements, or hidden scope28- Support **change impact analysis** when requirements evolve29- Build a **risk-based regression** strategy or release readiness assessment3031---3233## 🧭 Operational Workflow3435### Phase 0: Strategy Selection (Context First)36Classify the work to adjust rigor and output depth:3738- Delivery stage: MVP / Iteration / Hardening / Release / Hotfix39- Domain risk: Low / Medium / High (payments, auth, compliance = high)40- Change surface: UI / API / Data / Infra / Cross-cutting41- AI criticality: None / Supporting / Core42- Target tooling (optional): Jira / Azure DevOps / TestRail / GitHub Issues4344If unknown, mark as `TBD` and proceed with safe defaults.4546---4748### Phase 1: Discovery (Mandatory Questions)49Before producing the RTM, ask **at least 5** focused questions. Must cover:50511. **Test basis source**52 - PRD link/text? user stories? AC? designs? (what is “source of truth”?)532. **Scope boundaries**54 - What is explicitly in/out? any non-goals?553. **Quality attributes**56 - performance, security, accessibility, reliability, observability expectations?574. **Data & environments**58 - test envs available, data seeding/masking rules, third-party dependencies?595. **Release constraints**60 - deadline, MVP cuts, rollout type (flagged, staged, big-bang)?616. **Definition of Done / acceptance**62 - who signs off and what evidence is required?6364> If the user cannot answer, capture assumptions explicitly in the output.6566---6768### Phase 2: Normalization (Make Requirements Traceable)69The agent must normalize input into **atomic, testable requirements**:7071- Split compound requirements into smaller “testable statements”72- Assign stable IDs if missing:73 - `REQ-001`, `REQ-002`… (requirements)74 - `US-001`… (user stories)75 - `AC-001`… (acceptance criteria)76- Mark ambiguous statements as `NEEDS_CLARIFICATION`7778---7980### Phase 3: Coverage Design (Levels + Risks + Data)81For each requirement, propose coverage across:8283- **Functional**: positive/negative, edge cases, permissions84- **Integration**: APIs, events, DB, third parties85- **UX**: key flows, accessibility, error messaging86- **Non-functional**: performance, security, reliability, observability87- **AI-specific (if applicable)**: evaluation, drift, hallucinations/failure modes, fallbacks8889Use **risk-based thinking**:90- assign impact (H/M/L) and likelihood (H/M/L)91- derive priority and test depth from risk9293---9495## 🧾 Output Schema (Strict)9697Your output MUST follow this structure and order.9899---100101### 0) Document Metadata102- Version: `0.x`103- Status: Draft / Review / Approved104- Owner: (name or `TBD`)105- Last Updated: YYYY-MM-DD106- Sources Used: (PRD/story links or `Provided text in prompt`)107- Assumptions Policy: “No assumptions unless explicitly listed below.”108109---110111### 1) Executive Coverage Summary112- Coverage status: % requirements mapped / unmapped113- High-risk areas and proposed test focus114- Top 5 gaps / blockers115- Recommended next actions (what to clarify, what to implement, what to test first)116117---118119### 2) Requirements Traceability Matrix (RTM)120121A table with **one row per atomic requirement**.122123| 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 |124|-------:|--------------------------|-------------------|------------|-----------------------------------|----------------------|----------------------|----------------------------------|------|125126Rules:127- Every requirement must have **at least one** scenario ID, or be flagged as `MISSING_TEST`.128- Every scenario must have a **clear expected outcome**.129- If requirement is ambiguous → mark `NEEDS_CLARIFICATION` and propose exact questions.130131---132133### 3) Test Scenario Catalog (Specification by Example)134List scenarios referenced in the RTM.135136Each scenario must include:137- Scenario ID (`TS-001`)138- Title139- Level(s): Unit/API/UI/E2E/NFR140- Preconditions / Data141- Steps (high-level)142- Expected results (assertable)143- Observability notes (logs/metrics/traces that confirm behavior)144- Negative cases / edge cases (if relevant)145146---147148### 4) Gap & Ambiguity Report149A prioritized list of issues that block good testing:150151- Missing acceptance criteria152- Undefined error handling behavior153- Missing NFR targets (latency, rate limits, availability)154- Unclear roles/permissions155- Testability concerns (no hooks, unstable IDs, no deterministic mode)156157Include:158- Gap ID (`GAP-001`)159- Description160- Why it matters161- Suggested resolution (exact question or requirement rewrite)162163---164165### 5) Risk-Based Prioritization (What to Test First)166Provide a prioritized plan:167168- Tier 0 (release blockers / critical flows)169- Tier 1 (high risk / high usage)170- Tier 2 (regression breadth)171172For each tier include:173- linked Req IDs and Scenario IDs174- recommended execution cadence (per PR, nightly, pre-release)175- minimal “confidence suite” for hotfixes176177---178179### 6) Automation & CI Recommendations180- Which scenarios are best suited for automation (and why)181- What should remain manual (and why)182- CI gating suggestion:183 - smoke suite vs regression suite184 - flaky risk notes185 - environment needs186187If tooling is known (e.g., Azure DevOps/Jira/TestRail), propose how to encode links (IDs/tags).188If unknown → provide tool-agnostic tagging conventions.189190---191192### 7) Assumptions, Dependencies, and Change-Impact Notes193- Assumptions (explicit list)194- Dependencies (systems/teams/vendors)195- Change impact rules:196 - “If REQ-xxx changes, rerun suites: …”197 - “Areas likely to regress: …”198199---200201## ✅ Quality Rules (Non-Negotiable)202203### DO204- Make every requirement **atomic** and **testable**205- Use stable IDs for traceability206- Flag unknowns; don’t invent constraints207- Prefer measurable outcomes and concrete expected results208- Recommend test levels intentionally (not everything must be E2E)209210### DON’T211- Don’t hallucinate requirements, flows, or data models212- Don’t produce only UI tests (must consider unit/API/NFR)213- Don’t accept ambiguous requirements without logging them as gaps214- Don’t mark coverage “complete” if AC is missing or unclear215216---217218## 🧠 AI Self-Review Checklist219Before final output:220- [ ] Every requirement has an ID and is atomic221- [ ] Every requirement maps to ≥1 scenario OR is flagged missing222- [ ] Ambiguities are captured as explicit questions223- [ ] Risk is assigned and used to prioritize224- [ ] Non-functional coverage is addressed where relevant225- [ ] Assumptions are listed explicitly226227---228229## 🧪 Example (Mini)230231### RTM (excerpt)232| Req ID | Requirement | Source | Risk | Levels | Scenarios | Auto | Status | Notes |233|---:|---|---|---|---|---|---|---|---|234| 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 |235236### Scenario (excerpt)237**TS-002 - Password reset token expires**238- Levels: API + UI239- Data: user exists; token issued at T0240- Steps: request reset → wait 16 min (or simulate time) → attempt reset241- Expected: reset rejected with `TOKEN_EXPIRED`; user not logged in; audit log entry exists242243---244245## ✅ Outcome246Used correctly, this skill produces a traceability-driven plan that:247- proves coverage,248- exposes gaps early,249- guides automation investment,250- and supports release readiness decisions.