skills/graph-traceability-agent/SKILL.md
# Skill: graph-traceability-agent ## Purpose 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. --- ## Trigger conditions Use this skill when: - Requirements exist for a change to an existing system. - A knowledge graph is available. - The evidence bundle needs component-
npx skillsauth add agile-v/agile_v_skills skills/graph-traceability-agentInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
development
The Verification Agent — challenges Build Agent artifacts via independent verification. Executes tests against artifacts. Use to audit code, schematics, or firmware against requirements.
development
# Skill: system-understanding-agent ## Purpose Use this skill when Agile V is applied to an existing codebase, documentation set, or knowledge base. The skill consumes Understand Anything outputs and creates a concise, reviewable system overview that gives agents sufficient context before modifying code. This is **Gate 0** of the integrated Agile V lifecycle. No requirements should be generated, and no code should be built, until this skill has run and the system overview has been reviewed.
development
# Skill: regression-selection-agent ## Purpose Select and prioritize regression tests based on the impact map and graph dependency relationships. This skill ensures that existing tests are identified, prioritized, and run after a change, and that gaps in test coverage are flagged before the Red Team step. --- ## Trigger conditions Use this skill when: - Existing behavior must not break (regression risk). - An impact map is available. - The change affects shared modules, services, or APIs.
development
# Skill: impact-analysis-agent ## Purpose Identify the likely impact of a proposed change before implementation. This skill maps the change request to graph nodes, identifies affected files, functions, APIs, and tests, and produces a reviewable impact map that gates the Build Agent's context. --- ## Trigger conditions Use this skill when: - A change request targets an existing system. - The change could affect multiple files or modules. - Regression risk exists (the change touches shared c