| name | traceability-render |
| description | Render module-scoped human-readable traceability for a single module — REQs, DESs, TESTs, code locations with anchor links, plus the module-dependency graph as a markdown edge-list. |
Skill: traceability-render
Use this skill when a reviewer or auditor needs a human-readable view of one module's traceability. Produces a markdown document with anchors that resolve in any markdown renderer, no Sphinx required.
Inputs
<module-id> — e.g., P1.SP1.M1. If the project uses default decomposition, just M1 is accepted.
Steps
-
Validate the module exists. Read programs.yaml; confirm the module is declared.
-
Load the registry. Read library/_ids.md and library/_code-index.md.
-
Filter to the module. Keep only IDs whose module assignment matches.
-
Render the module scope. Use render_module_scope.
-
Render the dependency graph. Walk source-file imports to derive the actual_edges. Use render_module_dependency_graph.
-
Concatenate scope + dependency graph into one document.
-
Write to docs/traceability/<module-id>.md. Idempotent.
-
Print the path of the rendered document.
Done criteria
- Document written.
- Contains REQs, DESs, TESTs, code, orphan code, dependency graph.
- Idempotent.