Traceability Manager
When to Use
Use this skill when the user needs to:
- Establish or audit traceability between requirements and implementation artifacts.
- Detect orphans: requirements without coverage, tasks without parents, APIs without source requirements.
- Perform change impact analysis before modifying scoped requirements or artifacts.
- Build or validate a Requirements Traceability Matrix (RTM).
- Govern a traceability model: define typed links, coverage rules, and governance policies.
- Generate a traceability plan or model in Markdown format.
Do NOT use this skill for static spreadsheet management, project management tooling configuration, or business context documentation. It produces executable traceability artifacts and is designed for both human review and agent-driven workflows.
Core Concepts
Bidirectional Traceability
Traceability flows in two directions:
- Forward traceability: source requirement → design → code → tests → validation
- Backward traceability: artifact → source requirement (confirms every implemented item is justified)
Bidirectional traceability enables both coverage analysis (all requirements are implemented) and impact analysis (a change to any artifact can be traced back to its origin).
Typed Link Vocabulary
Use this controlled set of link types:
| Link Type |
Direction |
Meaning |
originates-from |
artifact → source |
This artifact is derived from the named source artifact |
refines |
lower-level → higher-level |
This requirement or task implements or clarifies the parent |
implements |
task → requirement |
This task delivers the specified requirement |
validated-by |
requirement → test |
This requirement is verified by the named test or validation |
depends-on |
any → any |
This artifact requires the named artifact to be complete first |
affects |
any → any |
A change to this artifact will impact the named artifact |
governed-by |
any → policy |
This artifact must comply with the named policy or standard |
Coverage Model
Every requirement must have at least one forward path to a validation artifact. The coverage model distinguishes:
| Coverage Level |
Required Links |
uncovered |
No forward path to any validation artifact |
partially-covered |
Forward path exists but not all acceptance criteria are validated |
fully-covered |
Full forward path from requirement to acceptance criteria to validation |
Orphan Detection
Orphan types this skill detects:
| Orphan Type |
Definition |
orphan-requirement |
Requirement with no forward links to tasks or validation |
orphan-task |
Task with no backward link to a parent requirement or spec |
orphan-api |
API endpoint or contract not linked to a source requirement or spec |
orphan-validation |
Test or validation artifact not linked to a traced requirement |
orphan-policy |
Artifact with no governed-by link to a policy or standard |
Operating Workflow
Phase 1: Discover Artifacts
- Identify the artifacts in scope: PRDs, PRPs, specs, stories, tasks, APIs, architectures, validation artifacts.
- Use glob and grep across the project to find relevant files with known extensions (
*.md, *.spec.md, *.prd, *.prp, *.api.md).
- Build a preliminary inventory: artifact ID, type, file path, title or summary.
Phase 2: Map Relationships
- For each artifact, inspect content to identify explicit and implicit relationships.
- Apply the typed link vocabulary to record each relationship.
- Flag artifacts that lack explicit links as candidates for orphan detection.
- Identify
governed-by relationships by checking for embedded policy references.
Phase 3: Coverage Analysis
- For each requirement or spec, check for a forward chain to tasks and validation.
- Classify each requirement into
fully-covered, partially-covered, or uncovered.
- For each validation artifact, verify it has a backward link to a traced requirement.
- Record uncovered requirements and orphan artifacts.
Phase 4: Impact Analysis
- When a requirement or artifact changes, trace its forward and backward links.
- Identify all artifacts affected in both directions.
- For each affected artifact, assess the scope of the change.
- Present the impact set ranked by proximity from the changed artifact.
Phase 5: Produce Traceability Model
Generate the traceability model as a Markdown document using the required output structure.
Decision Rules
| Situation |
Action |
| Requirement has no forward link |
Flag as orphan-requirement; do not implement until parent is identified |
| Task has no backward link |
Flag as orphan-task; ask for parent requirement or mark as infrastructure |
| API has no source requirement |
Flag as orphan-api; require a refines link to a requirement or spec before implementation |
| Validation has no backward link |
Flag as orphan-validation; require a validated-by link to a requirement |
| Artifact has no policy link |
Flag as orphan-policy; suggest a governed-by link to an applicable standard |
| Change to a requirement |
Trace forward and backward; present full impact set before proceeding |
Multiple artifacts share a depends-on |
Consolidate the dependency chain; identify single source of truth |
| Conflicting links detected |
Surface the conflict; do not resolve silently; present both paths for human decision |
Traceability Model Output Structure
# Traceability Model
## 1. Overview
- Total artifacts:
- Requirements:
- Tasks:
- APIs:
- Validation artifacts:
- Policies:
## 2. Artifact Inventory
| ID | Type | Title | File | Links Out | Links In | Coverage |
| --- | --- | --- | --- | --- | --- | --- |
## 3. Relationship Graph
| From | Link Type | To | Rationale |
| --- | --- | --- | --- |
## 4. Typed Link Definitions
| Link Type | From | To | Cardinality | Coverage Rule |
| --- | --- | --- | --- | --- |
## 5. Coverage Report
### Fully Covered
| Requirement | Forward Path | Validation |
| --- | --- | --- |
### Partially Covered
| Requirement | Missing Link | Recommendation |
| --- | --- | --- |
### Uncovered (Orphans)
| Requirement | Gap | Recommended Action |
| --- | --- | --- |
## 6. Orphan Report
| Orphan Type | ID | Title | File | Recommended Action |
| --- | --- | --- | --- | --- |
## 7. Change Impact Analysis (when triggered)
### Changed Artifact
- ID:
- Type:
- File:
### Forward Impact (downstream)
| Artifact | Distance | Change Scope |
| --- | --- | --- |
### Backward Impact (upstream justification)
| Artifact | Distance | Rationale |
| --- | --- | --- |
## 8. Governance
- Link integrity rules:
- Minimum coverage standard:
- Policy compliance requirements:
## 9. Recommendations
- Immediate:
- Short-term:
- Long-term:
Traceability Plan Output Structure
When the user requests a traceability plan (vs. a snapshot model), use this structure:
# Traceability Plan
## 1. Objectives
- What the traceability model must enable
## 2. Scope
- Artifacts included
- Artifacts excluded
- Boundaries
## 3. Typed Link Architecture
- Defined link types
- Directionality rules
- Cardinality constraints
## 4. Coverage Expectations
- Minimum coverage level per artifact type
- Coverage gap threshold for blocking
## 5. Governance Rules
- Who approves link additions
- Orphan resolution SLAs
- Change impact review triggers
## 6. Workflow Integration
- When to update traceability links
- Who is responsible for each artifact type
- Review cadence
## 7. Reporting
- Coverage reports: frequency and audience
- Orphan reports: frequency and owner
- Impact analysis triggers and audience
## 8. Maintenance
- Link hygiene rules
- Orphan detection schedule
- Coverage recalculation triggers
Quality Checklist
Before presenting the traceability model or plan, verify:
- The output is written in English.
- All artifacts found in scope are listed in the inventory.
- Every relationship uses a defined typed link from the vocabulary.
- Uncovered requirements are listed separately with recommended actions.
- Orphan artifacts are classified by orphan type with recommended actions.
- Change impact analysis covers both forward and backward directions.
- No project-specific names, client names, or unnecessary vendor references were invented.
- The model specifies coverage expectations and governance rules.
- All unknowns are marked as
TBD rather than invented.
Files to Read
references/link-vocabulary.md — full typed link definitions with usage examples (load only when the skill body instructs it)
1---2name: traceability-manager3description: Trigger: traceability, requirements traceability, forward traceability, backward traceability, change impact analysis, trace requirements to implementation, RTM, orphan detection, coverage model. Maintain bidirectional requirement-to-implementation traceability with typed links, coverage checks, impact analysis, and governance.4license: MIT5---67# Traceability Manager89## When to Use1011Use this skill when the user needs to:1213- Establish or audit traceability between requirements and implementation artifacts.14- Detect orphans: requirements without coverage, tasks without parents, APIs without source requirements.15- Perform change impact analysis before modifying scoped requirements or artifacts.16- Build or validate a Requirements Traceability Matrix (RTM).17- Govern a traceability model: define typed links, coverage rules, and governance policies.18- Generate a traceability plan or model in Markdown format.1920Do NOT use this skill for static spreadsheet management, project management tooling configuration, or business context documentation. It produces executable traceability artifacts and is designed for both human review and agent-driven workflows.2122## Core Concepts2324### Bidirectional Traceability2526Traceability flows in two directions:2728- **Forward traceability**: source requirement → design → code → tests → validation29- **Backward traceability**: artifact → source requirement (confirms every implemented item is justified)3031Bidirectional traceability enables both coverage analysis (all requirements are implemented) and impact analysis (a change to any artifact can be traced back to its origin).3233### Typed Link Vocabulary3435Use this controlled set of link types:3637| Link Type | Direction | Meaning |38| --- | --- | --- |39| `originates-from` | artifact → source | This artifact is derived from the named source artifact |40| `refines` | lower-level → higher-level | This requirement or task implements or clarifies the parent |41| `implements` | task → requirement | This task delivers the specified requirement |42| `validated-by` | requirement → test | This requirement is verified by the named test or validation |43| `depends-on` | any → any | This artifact requires the named artifact to be complete first |44| `affects` | any → any | A change to this artifact will impact the named artifact |45| `governed-by` | any → policy | This artifact must comply with the named policy or standard |4647### Coverage Model4849Every requirement must have at least one forward path to a validation artifact. The coverage model distinguishes:5051| Coverage Level | Required Links |52| --- | --- |53| `uncovered` | No forward path to any validation artifact |54| `partially-covered` | Forward path exists but not all acceptance criteria are validated |55| `fully-covered` | Full forward path from requirement to acceptance criteria to validation |5657### Orphan Detection5859Orphan types this skill detects:6061| Orphan Type | Definition |62| --- | --- |63| `orphan-requirement` | Requirement with no forward links to tasks or validation |64| `orphan-task` | Task with no backward link to a parent requirement or spec |65| `orphan-api` | API endpoint or contract not linked to a source requirement or spec |66| `orphan-validation` | Test or validation artifact not linked to a traced requirement |67| `orphan-policy` | Artifact with no `governed-by` link to a policy or standard |6869## Operating Workflow7071### Phase 1: Discover Artifacts72731. Identify the artifacts in scope: PRDs, PRPs, specs, stories, tasks, APIs, architectures, validation artifacts.742. Use glob and grep across the project to find relevant files with known extensions (`*.md`, `*.spec.md`, `*.prd`, `*.prp`, `*.api.md`).753. Build a preliminary inventory: artifact ID, type, file path, title or summary.7677### Phase 2: Map Relationships78791. For each artifact, inspect content to identify explicit and implicit relationships.802. Apply the typed link vocabulary to record each relationship.813. Flag artifacts that lack explicit links as candidates for orphan detection.824. Identify `governed-by` relationships by checking for embedded policy references.8384### Phase 3: Coverage Analysis85861. For each requirement or spec, check for a forward chain to tasks and validation.872. Classify each requirement into `fully-covered`, `partially-covered`, or `uncovered`.883. For each validation artifact, verify it has a backward link to a traced requirement.894. Record uncovered requirements and orphan artifacts.9091### Phase 4: Impact Analysis92931. When a requirement or artifact changes, trace its forward and backward links.942. Identify all artifacts affected in both directions.953. For each affected artifact, assess the scope of the change.964. Present the impact set ranked by proximity from the changed artifact.9798### Phase 5: Produce Traceability Model99100Generate the traceability model as a Markdown document using the required output structure.101102## Decision Rules103104| Situation | Action |105| --- | --- |106| Requirement has no forward link | Flag as `orphan-requirement`; do not implement until parent is identified |107| Task has no backward link | Flag as `orphan-task`; ask for parent requirement or mark as infrastructure |108| API has no source requirement | Flag as `orphan-api`; require a `refines` link to a requirement or spec before implementation |109| Validation has no backward link | Flag as `orphan-validation`; require a `validated-by` link to a requirement |110| Artifact has no policy link | Flag as `orphan-policy`; suggest a `governed-by` link to an applicable standard |111| Change to a requirement | Trace forward and backward; present full impact set before proceeding |112| Multiple artifacts share a `depends-on` | Consolidate the dependency chain; identify single source of truth |113| Conflicting links detected | Surface the conflict; do not resolve silently; present both paths for human decision |114115## Traceability Model Output Structure116117```markdown118# Traceability Model119120## 1. Overview121- Total artifacts:122- Requirements:123- Tasks:124- APIs:125- Validation artifacts:126- Policies:127128## 2. Artifact Inventory129| ID | Type | Title | File | Links Out | Links In | Coverage |130| --- | --- | --- | --- | --- | --- | --- |131132## 3. Relationship Graph133| From | Link Type | To | Rationale |134| --- | --- | --- | --- |135136## 4. Typed Link Definitions137| Link Type | From | To | Cardinality | Coverage Rule |138| --- | --- | --- | --- | --- |139140## 5. Coverage Report141### Fully Covered142| Requirement | Forward Path | Validation |143| --- | --- | --- |144145### Partially Covered146| Requirement | Missing Link | Recommendation |147| --- | --- | --- |148149### Uncovered (Orphans)150| Requirement | Gap | Recommended Action |151| --- | --- | --- |152153## 6. Orphan Report154| Orphan Type | ID | Title | File | Recommended Action |155| --- | --- | --- | --- | --- |156157## 7. Change Impact Analysis (when triggered)158### Changed Artifact159- ID:160- Type:161- File:162163### Forward Impact (downstream)164| Artifact | Distance | Change Scope |165| --- | --- | --- |166167### Backward Impact (upstream justification)168| Artifact | Distance | Rationale |169| --- | --- | --- |170171## 8. Governance172- Link integrity rules:173- Minimum coverage standard:174- Policy compliance requirements:175176## 9. Recommendations177- Immediate:178- Short-term:179- Long-term:180```181182## Traceability Plan Output Structure183184When the user requests a traceability plan (vs. a snapshot model), use this structure:185186```markdown187# Traceability Plan188189## 1. Objectives190- What the traceability model must enable191192## 2. Scope193- Artifacts included194- Artifacts excluded195- Boundaries196197## 3. Typed Link Architecture198- Defined link types199- Directionality rules200- Cardinality constraints201202## 4. Coverage Expectations203- Minimum coverage level per artifact type204- Coverage gap threshold for blocking205206## 5. Governance Rules207- Who approves link additions208- Orphan resolution SLAs209- Change impact review triggers210211## 6. Workflow Integration212- When to update traceability links213- Who is responsible for each artifact type214- Review cadence215216## 7. Reporting217- Coverage reports: frequency and audience218- Orphan reports: frequency and owner219- Impact analysis triggers and audience220221## 8. Maintenance222- Link hygiene rules223- Orphan detection schedule224- Coverage recalculation triggers225```226227## Quality Checklist228229Before presenting the traceability model or plan, verify:230231- The output is written in English.232- All artifacts found in scope are listed in the inventory.233- Every relationship uses a defined typed link from the vocabulary.234- Uncovered requirements are listed separately with recommended actions.235- Orphan artifacts are classified by orphan type with recommended actions.236- Change impact analysis covers both forward and backward directions.237- No project-specific names, client names, or unnecessary vendor references were invented.238- The model specifies coverage expectations and governance rules.239- All unknowns are marked as `TBD` rather than invented.240241## Files to Read242243- `references/link-vocabulary.md` — full typed link definitions with usage examples (load only when the skill body instructs it)