/agile-v-skills:graph-traceability-agentfrom agile-v-skills
Creates traceability from Agile V requirements to system graph nodes, changed files, and tests, ensuring full evidence chain coverage across development stages.
Ships in agile-v-skills. 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.
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.
Do not conflate three different records:
| Record | Question | Source |
|---|---|---|
System knowledge graph (.agile-v/phases/00-understanding/normalized_graph.json) | What is the existing system: components, symbols, dependencies? | system-understanding-agent |
Typed lineage graph (.agile-v/TRACE_GRAPH.json) | How do requirement, artifact, test, verification, release and signal nodes relate? | schemas/TRACE_GRAPH.schema.json; maintained by this skill |
Execution plan (.agile-v/EXECUTION_PLAN.yaml) | In what order is the approved change built, and which paths/resources may each task write? | schemas/EXECUTION_PLAN.schema.json; agile-v-pipeline |
The plan validates dependency order, write-scope conflicts and expected evidence. It never replaces typed requirement/artifact/test lineage. When a plan changes materially, its digest changes and the affected lineage is re-verified against the integrated change set (all tasks' changes together, the subject that is verified and released).
Validate only the lineage required by the current stage
(docs/agile-v-runtime/20_EXECUTION_PLAN_DOD_AND_TRACE.md):
python tools/check_trace.py --graph .agile-v/TRACE_GRAPH.json --stage gate_2 --json
If the Agile V checker is not available in this workspace, record the check as NOT_AVAILABLE (never a pass) and perform the listed checks manually.
| Stage | Minimum check |
|---|---|
gate_1 | Every requirement derives from a known source and is not still draft |
build | Baselined requirement is included by a baseline; no artifact is draft |
gate_2 | Every baselined requirement has an implementing artifact and verifying test; no orphan artifact or test |
release | Every artifact is included in the exact release payload; the release triggers an expected signal |
operate | Observed readings, incidents and corrective change requests are linked; pending is not passing |
A complete graph is not semantic satisfaction. Verify the actual change set independently; do not trust only user-supplied links.
Use this skill when:
- .agile-v/REQUIREMENTS.md required
- .agile-v/phases/01-impact/impact_map.md required
- .agile-v/phases/01-impact/affected_components.json required
- implementation diff (git diff or patch file) required
- test results (JSON or JUnit XML) required
- .agile-v/phases/00-understanding/normalized_graph.json optional but preferred
- .agile-v/BUILD_MANIFEST.md, .agile-v/TEST_SPEC.md lineage sources for TRACE_GRAPH.json
Matrix outputs are written to canonical .agile-v/traceability/:
graph_traceability_matrix.md
req_to_component_links.json
component_to_test_links.json
traceability_gaps.md
This skill also creates or updates .agile-v/TRACE_GRAPH.json (typed lineage,
schemas/TRACE_GRAPH.schema.json) from the recorded links; red-team-verifier
and the stage-aware trace check consume it.
For each requirement in .agile-v/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-XXXX 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-0001 | 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-0001",
"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/evidence/test-results.json"
}
]
Use typed graph relations from the canonical lifecycle contract: artifacts implements and tests verifies a specific baselined REQ-XXXX revision with baseline evidence; verification evaluates artifacts/test cases. Halt rather than invent links. Where the AI influence policy applies, material AI influence requires an AI run manifest (agile-v-aibom, preview); when templates/AI_RUN_MANIFEST.yaml is not available, record model/runtime identity, loaded skills, tools, context sources and affected artifacts in the evidence summary instead.
Claude Code, Cursor, Copilot, Codex, Gemini CLI, OpenCode, Cline.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agile-v/agile_v_skills --plugin agile-v-skills33 skills in this plugin
/agile-v-behavioralAnti-pattern prevention guidelines for Agile V agents. Prevents common LLM coding mistakes while maintaining Agile V traceability. Use when implementing requirements to avoid overcomplication, silent assumptions, scope creep, and verification failures./agile-v-complianceRisk management, CAPA protocol, human gate approval records, AI agent security controls, and periodic revalidation. Load when running gates, handling CAPAs, or auditing compliance and security posture./agile-v-control-matrixDefines and checks the Agile-V control matrix for agentic tasks, skills, model use, tools, logs, rights, Human Gates, tests, costs, rollback, and owners. Load when creating, reviewing, or enforcing `.agile-v/CONTROL_MATRIX.yaml` or runtime governance for agentic execution./agile-v-coreFoundational values, directives, and context engineering rules for all Agile V agents. Load first in every Agile V session./agile-v-lifecycleMulti-cycle iteration management, document versioning, change requests, re-entry points, archival, and impact analysis. Load when starting a new cycle (C2+), processing change requests, or managing cross-cycle traceability./agile-v-pipelineOrchestration pipeline, wave execution, handoff protocols, and checkpoint types for the Agile V canonical lifecycle (5 pipeline stages; 8 user-facing route stages). Load when orchestrating multi-agent pipelines or managing stage transitions.Other plugins' skills for the same job