tkm:rebuild-spec - Reverse-engineer codebases into structured specifications
Reverse-engineers an existing codebase into core documentation and optional feature, process-flow, glossary, and screen-spec artifacts.
Tags
Updated: 2026-12-01code reverse engineeringdocumentation generationsoftware architectureAPI specificationdata modelingprocess flowsfeature specificationscodebase analysis
Capabilities
Typical Inputs
What this skill does
- Scan the codebase
- Generate core artifacts
- Generate feature specifications
- Synthesize process flows
- Synthesize a glossary
- Generate screen specifications
- Regenerate selected artifacts
- Resume interrupted passes
- Translate generated documentation
Inputs
- Git-controlled project
- Source code
- Rebuild state file
- Existing documentation
- Plan context
- Diff base SHA
- Pass flags
- Artifact name
- Feature identifiers
- Target language code
Outputs
- Structured documentation files
- Core artifact files
- Per-feature specification files
- Process-flow files
- Glossary files
- Screen specification files
- Planner decision JSON
- Rebuild state updates
- Pass-completion handoff
Requirements
- Git-controlled working directory
- Non-empty source tree
- Supported project manifest
- Project read access
- File write access
- Compatible agent runtime
