/sdlc-documentation:09-traceability-engineeringfrom sdlc-documentation
Establishes forward and backward traceability links among goals, requirements, design, code, tests, and evidence. Produces a trace model and gap register for governance.
Ships in sdlc-documentation. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Trace model and gap register is the next lifecycle deliverable.traceability-matrix when that neighbouring route owns the decision or deliverable.| Artefact | Source or provider | Required? | Behaviour when missing |
|---|---|---|---|
| Stable identifiers and approved lifecycle artefacts | Phase owners and project registries | Yes | Stop the affected step, name the missing source, and return only a qualified gap record. |
Trace model and gap register.| Artefact | Consumer | Acceptance condition |
|---|---|---|
| Trace model and gap register | Requirements management, design, testing, and governance | Required sections are populated, source links resolve, and every material requirement or decision has an observable review or test oracle. |
| Evidence | Reviewer | Acceptance condition |
|---|---|---|
Source, decision, trace, and validation record for Trace model and gap register | Requirements quality reviewer | Inputs used, decisions made, checks run, failures, and unassessed items are explicit. |
Read and search are required. Editing is allowed only when the request authorises creation or repair of the named requirements artefact. Publishing, production mutation, destructive action, spending, and certification require explicit authority.
Fallback: if a required file, reviewer, standard source, network check, renderer, or execution capability is unavailable, return the narrowest useful qualified result and mark the affected check not assessed; never convert an unassessed check into a pass.
| Choice or condition | Action | Failure or risk avoided |
|---|---|---|
| A source or target has no stable identifier | Stop the link operation and assign or reconcile the identifier first. | False coverage and orphaned lifecycle evidence. |
| Required inputs and test oracles are complete | Continue through the existing workflow and record evidence. | A deliverable whose acceptance cannot be reproduced. |
| A mandatory source or owner is missing | Stop the affected branch and issue a qualified gap record. | Fabricated context or unauthorised decisions. |
Trace model and gap register and its acceptance checks.Trace model and gap register from assumed context. Fix: cite the project source or mark the scope blocked.traceability-matrix without routing the decision. Fix: hand off the named input and preserve trace links.not assessed and state the release consequence.Use the scenario-spine and requirement-contract reference for scenario-to-requirement-to-test-to-evidence links.
Run this skill after requirements have been baselined and validated. It builds a four-level trace chain linking every requirement to its originating business goal, downstream design element, and verification test case. The skill detects orphan requirements, gold-plating, and coverage gaps, producing a comprehensive traceability matrix that serves both Waterfall auditing and Agile quality gates.
08-requirements-management has established a baseline.projects/<ProjectName>/_context/vision.md, projects/<ProjectName>/_context/stakeholder_register.md, all projects/<ProjectName>/<phase>/<document>/ artifactsprojects/<ProjectName>/<phase>/<document>/traceability_matrix.md| File | Source | Required? |
|---|---|---|
vision.md | projects/<ProjectName>/_context/ | Yes |
stakeholder_register.md | projects/<ProjectName>/_context/ | Yes |
All *.md artifacts | projects/<ProjectName>/<phase>/<document>/ | Yes |
requirements_baseline.md | projects/<ProjectName>/<phase>/<document>/ | Recommended |
| File | Contents | Destination |
|---|---|---|
traceability_matrix.md | Four-level trace matrix with gap analysis and coverage metrics | projects/<ProjectName>/<phase>/<document>/ |
Read projects/<ProjectName>/_context/vision.md, projects/<ProjectName>/_context/stakeholder_register.md, and every artifact in projects/<ProjectName>/<phase>/<document>/. Log each file path read. Extract:
vision.md -- assign identifiers (BG-001, BG-002, ...) if not already present.stakeholder_register.md -- map each requirement to its source stakeholder.Establish the following trace link taxonomy for all connections in the matrix:
| Link Type | Direction | Description |
|---|---|---|
| derives-from | Requirement -> Business Goal | Requirement originates from a business goal |
| satisfies | Design Element -> Requirement | Design element fulfills a requirement |
| implements | Code Component -> Design Element | Code realizes a design element |
| verified-by | Requirement -> Test Case | Test case validates a requirement |
| conflicts-with | Requirement <-> Requirement | Two requirements contradict each other |
| refines | Requirement -> Requirement | Detailed requirement elaborates a parent |
| replaces | Requirement -> Requirement | New requirement supersedes an old one |
All links shall be maintained bidirectionally: if REQ-001 derives-from BG-003, then BG-003 shall list REQ-001 as a derived requirement.
For every requirement, establish the complete trace chain:
Business Goal (BG-xxx)
-> Requirement (REQ-xxx) [derives-from]
-> Design Element (DE-xxx) [satisfies]
-> Test Case (TC-xxx) [verified-by]
For each requirement, record:
| Field | Description |
|---|---|
| Req ID | Unique requirement identifier |
| Business Goal | BG-xxx that this requirement derives from |
| Source Stakeholder | Stakeholder who originated or owns the requirement |
| Design Element | DE-xxx that satisfies this requirement (if available) |
| Test Case ID | TC-xxx that verifies this requirement (if available) |
| Trace Status | Complete, Partial, Orphan, or Untested |
An orphan requirement has no upward trace link to a business goal. For each orphan:
[TRACE-GAP].Gold-plating occurs when a design element or feature exists without a corresponding requirement. For each instance:
[TRACE-GAP].An untested requirement has no downward trace link to a test case. For each instance:
[TRACE-GAP].Compute the following coverage metrics:
$$\text{Upward Coverage} = \frac{\text{Requirements with Business Goal links}}{\text{Total Requirements}} \times 100$$
$$\text{Downward Coverage} = \frac{\text{Requirements with Test Case links}}{\text{Total Requirements}} \times 100$$
$$\text{Full Coverage} = \frac{\text{Requirements with both BG and TC links}}{\text{Total Requirements}} \times 100$$
$$\text{Design Coverage} = \frac{\text{Requirements with Design Element links}}{\text{Total Requirements}} \times 100$$
Scan all requirements for contradictions. Two requirements conflict when they specify mutually exclusive behaviors for the same system element. Tag each conflict pair with [TRACE-GAP] and record:
Write projects/<ProjectName>/<phase>/<document>/traceability_matrix.md following the output format below.
# Traceability Matrix: [Project Name]
**Generated:** [Date]
**Baseline:** BL-[PROJECT]-[VERSION]
**Standards:** IEEE 1012-2016, IEEE 29148-2018
---
## Coverage Summary
| Metric | Value | Threshold | Status |
|--------|-------|-----------|--------|
| Upward Coverage (BG links) | N% | >= 85% | [PASS/FAIL] |
| Downward Coverage (TC links) | N% | >= 85% | [PASS/FAIL] |
| Full Coverage (BG + TC) | N% | >= 70% | [PASS/FAIL] |
| Design Coverage (DE links) | N% | >= 60% | [PASS/FAIL] |
| Orphan Requirements | N | 0 | [PASS/FAIL] |
| Gold-Plated Elements | N | 0 | [PASS/FAIL] |
| Conflicts Detected | N | 0 | [PASS/FAIL] |
---
## Trace Matrix
| Req ID | Title | Business Goal | Stakeholder | Design Element | Test Case | Status |
|--------|-------|---------------|-------------|----------------|-----------|--------|
| REQ-001 | ... | BG-001 | [Name] | DE-001 | TC-001 | Complete |
| REQ-002 | ... | [TRACE-GAP] | [Name] | DE-002 | TC-002 | Orphan |
---
## Gap Analysis
### Orphan Requirements (No Business Goal)
| Req ID | Title | Recommended Action |
|--------|-------|--------------------|
| REQ-002 | ... | Link to BG-003 or retire |
### Untested Requirements (No Test Case)
| Req ID | Title | Recommended Action |
|--------|-------|--------------------|
| REQ-005 | ... | Create TC with acceptance criteria |
### Gold-Plated Elements (No Requirement)
| Element ID | Description | Recommended Action |
|------------|-------------|--------------------|
| DE-007 | ... | Create requirement or remove element |
### Requirement Conflicts
| Req A | Req B | Conflict Description | Recommended Resolution |
|-------|-------|---------------------|----------------------|
| REQ-003 | REQ-012 | ... | ... |
---
## Trace Link Summary
| Link Type | Count |
|-----------|-------|
| derives-from | N |
| satisfies | N |
| verified-by | N |
| conflicts-with | N |
| refines | N |
| replaces | N |
[TRACE-GAP] and have recommended actions.08-requirements-management, all specification and validation skills10-requirements-metrics, waterfall/08-semantic-auditingwaterfall/08-semantic-auditing (RTM section); this skill produces a standalone, enhanced trace matrixreferences/trace-matrix-template.md: Traceability matrix template and usage guide.references/trace-link-types.md: Trace link taxonomy and bidirectional maintenance rules.Report link presence, executable test oracles, unresolved owner decisions and executed results as separate states. The repository-root references/traceability-evidence.schema.json schema and scripts/validate_traceability_evidence.py validator define a compact machine-checkable report; linked design and test IDs do not establish that an oracle is executable or that a test passed.
Last Updated: 2026-10-29 Skill Version: 1.1.0
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub peterbamuhigire/chwezi-sdlc-documentation --plugin sdlc-documentation160 skills in this plugin
/01-deployment-guideUse when producing or updating deployment guide for release prerequisites, migration choreography, verification, rollback, and ownership. Use runbook for the neighbouring concern; this skill owns the named document contract and its acceptance evidence./01-high-level-designUse when approved requirements need a system-level architecture with boundaries, components, critical flows, deployment topology and ADRs, or an as-built design must be recovered from existing code; use system-overview for orientation, low-level-design for module internals, and infrastructure-design for infrastructure depth./01-initialize-srsUse when writing a new SRS (software requirements specification) for a business system or module: create the Waterfall SRS workspace, IEEE structure, identifiers and source context; use context-engineering next for boundaries and actors.Other plugins' skills for the same job