From agile-v-skills
Links Agile V requirements to knowledge graph nodes, changed files, and test results. Generates a traceability matrix and identifies orphan requirements or untested changes for audit or review.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agile-v-skills:graph-traceability-agentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create traceability from Agile V requirements to Understand Anything graph nodes, changed files,
Create traceability from Agile V requirements to Understand Anything graph nodes, changed files, and tests. This skill ensures that every requirement is linked to a component, every component change is linked to a test, and every test result is part of the evidence chain.
Use this skill when:
- .agile-v/requirements/requirements.md required
- .agile-v/impact/impact_map.md required
- .agile-v/impact/affected_components.json required
- implementation diff (git diff or patch file) required
- test results (JSON or JUnit XML) required
- .agile-v/understanding/normalized_graph.json optional but preferred
All outputs are written to .agile-v/traceability/.
graph_traceability_matrix.md
req_to_component_links.json
component_to_test_links.json
traceability_gaps.md
For each requirement in requirements.md:
affected_components.json for components linked to this requirement.requirement_id → component_id → path/symbol.For each affected component in affected_components.json:
For each requirement:
@covers REQ-XXX annotations.requirement_id → test_id → test_path → result.For each changed file:
An orphan requirement is one with no linked component or no linked test. Record each orphan with the reason (no component found / no test found).
An orphan change is a file that was modified in the diff but is not linked to any requirement. Record each orphan change. An orphan change is acceptable if it is justified (e.g., module wiring, formatting fix) but it must be explicitly acknowledged.
# Graph Traceability Matrix
| Requirement | Graph Node | File/Symbol | Change Type | Test Evidence | Status |
|---|---|---|---|---|---|
| REQ-001 | node-042 | src/auth/auth.controller.ts::login | Modified | tests/auth/auth.e2e.ts::login_test | Verified |
## Orphan Requirements
| Requirement | Issue |
|---|---|
| ... | No linked component / No linked test |
## Orphan Changes
| File/Symbol | Issue |
|---|---|
| ... | Changed but not linked to a requirement |
## Traceability Decision
- Pass / Fail / Pass with findings
- Findings: ...
[
{
"requirement_id": "REQ-001",
"component_id": "node-042",
"path": "src/auth/auth.controller.ts",
"symbol": "AuthController.login",
"confidence": "high"
}
]
[
{
"component_id": "node-042",
"path": "src/auth/auth.controller.ts",
"test_id": "TEST-001",
"test_path": "test/auth/auth.e2e-spec.ts",
"test_result": "pass|fail|not_run",
"evidence_path": ".agile-v/tests/results.json"
}
]
Claude Code, Cursor, Copilot, Codex, Gemini CLI, OpenCode, Cline.
npx claudepluginhub agile-v/agile_v_skills --plugin agile-v-skillsCreates, updates, or inspects requirements traceability matrices linking requirements, design, tasks, tests, PRs, commits, releases, and evidence gaps across SDLC artifacts.
Verifies bidirectional traceability from requirements to code to tests. Scans .aiwg/requirements/, code files, tests, and commit messages for ID references like UC-*, REQ-*. Builds matrix, identifies coverage gaps, orphans, and untested code.
Analyzes impact of changes to sphinx-needs requirements, specs, or items by tracing links, extra_links, and codelinks to affected needs and code files.