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, justM1is accepted.
Steps
Validate the module exists. Read
programs.yaml; confirm the module is declared.Load the registry. Read
library/_ids.mdandlibrary/_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. Userender_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.