umlforge_legacy_migration
Visualise legacy COBOL, Fortran, or ABAP code and generate a 6-phase migration roadmap to modern languages, with structure diagrams and complexity risk flags.
Instructions
Visualise a legacy codebase and produce a migration roadmap to a modern language.
USE THIS WHEN:
You have COBOL, Fortran, ABAP, RPG, PL/I, Pascal, BASIC, Assembly, Ada, or ALGOL code
You want to understand the structure of a legacy program before migrating it
You need diagrams showing what the system does NOW and what it would look like rebuilt in Python, Go, Rust, Java, TypeScript, C#, or Kotlin
You are planning or pitching a modernisation project and need a migration roadmap
NOT FOR:
Analysing modern codebases ? use umlforge_reverse_engineer
Generating translated source code (Option B ? future feature)
Database schema design ? use umlforge_erd_schema
Produces:
Legacy structure diagram: program divisions, sections, modules, data stores, file I/O, external interfaces (as the system exists today)
Modern equivalent diagram: proposed clean-architecture rebuild in the target language with idiomatic layer names and structure
Migration roadmap: 6-phase plan (Understand ? Extract ? Data ? Logic ? Test Parity ? Cutover) with duration estimates and exit criteria
Complexity & risk flags: global state, file I/O coupling, implicit typing, unstructured control flow, vendor extensions, interface contracts
(report_mode=True) Legacy Migration Assessment: complexity scores, recommended strategy, tooling recommendations, risk assessment (A?F per dimension)
Provide EITHER github_url OR legacy_code ? not both.
Args: legacy_code: Paste the legacy source code directly. github_url: Public GitHub URL containing legacy source files. Accepted formats: github.com/owner/repo, github.com/owner/repo/tree/branch/path, github.com/owner/repo/blob/branch/file.cbl source_language: Language of the legacy code (default: COBOL). Supported: COBOL, Fortran, ABAP, RPG, PL/I, Pascal, BASIC, Assembly, Ada, ALGOL. target_language: Modern language to migrate toward (default: Python). Supported: Python, Go, Rust, Java, TypeScript, C#, Kotlin. system_purpose: Brief description of what the program does in production (e.g. "monthly payroll batch", "order entry OLTP"). Optional but improves diagram labels and migration advice. github_token: GitHub personal access token (repo scope) ? only needed for private repositories. Never stored or logged. report_mode: True ? also produce a Legacy Migration Assessment with complexity scores and tooling recommendations. Pro/Team/Enterprise only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| github_url | No | ||
| legacy_code | No | ||
| report_mode | No | ||
| github_token | No | ||
| system_purpose | No | ||
| source_language | No | COBOL | |
| target_language | No | Python |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |