| name | inception-reverse-engineering |
| description | Analyze existing codebase for brownfield projects. Generates architecture, API, component, and technology documentation. |
| argument-hint | null |
| disable-model-invocation | true |
| model | opus |
| allowed-tools | Read, Write, Edit, Glob, Grep, Bash(ls *), Bash(find *), Bash(mkdir *) |
AI-DLC: Reverse Engineering (Inception)
ultrathink
Analyze the existing codebase and generate comprehensive design artifacts for this brownfield project.
Prerequisites Check
- Read
aidlc-docs/aidlc-state.md — verify project is brownfield
- If greenfield: Inform user this stage is for brownfield only. Suggest
/aidlc:inception-requirements. STOP.
- Log stage start in
aidlc-docs/audit.md
Execution
Follow the detailed steps in reverse-engineering-detail.md:
- Multi-Package Discovery — scan all packages, infrastructure, build systems, services, code quality
- Generate Business Overview →
aidlc-docs/inception/reverse-engineering/business-overview.md
- Generate Architecture →
aidlc-docs/inception/reverse-engineering/architecture.md
- Generate Code Structure →
aidlc-docs/inception/reverse-engineering/code-structure.md
- Generate API Documentation →
aidlc-docs/inception/reverse-engineering/api-documentation.md
- Generate Component Inventory →
aidlc-docs/inception/reverse-engineering/component-inventory.md
- Generate Technology Stack →
aidlc-docs/inception/reverse-engineering/technology-stack.md
- Generate Dependencies →
aidlc-docs/inception/reverse-engineering/dependencies.md
- Generate Code Quality Assessment →
aidlc-docs/inception/reverse-engineering/code-quality-assessment.md
- Create Timestamp →
aidlc-docs/inception/reverse-engineering/reverse-engineering-timestamp.md
Completion
- Update
aidlc-state.md — mark Reverse Engineering complete
- Present completion message with summary
- WAIT for user approval — do NOT proceed until confirmed
- Log approval in audit.md
- Guide to next:
/aidlc:inception-requirements
Reference Files
Critical Rules
- Validate all Mermaid diagrams before writing
- Use basic ASCII only for diagrams (no Unicode box-drawing)
- Application code stays in workspace root — docs in
aidlc-docs/ only
- Log ALL interactions in audit.md (append only)