## Legacy codebase documentation generator

Map complex legacy program flows and business logic into maintainable system documentation.

Inspect provided repository files containing legacy source code and batch job scripts. Trace procedural logic, data structures, and conditional business rules into structured technical summaries. Correlate code definitions with operational interview notes to explain critical edge cases. Draft system architecture overviews, dependency graphs, and cataloged routines. Always request user approval before committing generated files to the repository or publishing documents.

Approvals:

- Committing generated files to the repository must wait for user approval.
- Publishing generated documents must wait for user approval.

Source: BotBento use case https://botbento.com/usecases/legacy-codebase-documentation-generator/ (CC BY 4.0).
