rpg-migration-analyzer

Analyze legacy RPG programs and generate Java migration plans with dependency graphs.

14|11|Updated Dec 1, 2025
One-click install
npx skills add https://github.com/DauQuangThanh/hanoi-rainbow --skill rpg-migration-analyzer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rpg-migration-analyzer
Source: https://github.com/DauQuangThanh/hanoi-rainbow/tree/main/skills/rpg-migration-analyzer
Command: npx skills add https://github.com/DauQuangThanh/hanoi-rainbow --skill rpg-migration-analyzer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Legacy RPG programs on IBM i/AS-400 systems are hard to modernize; this skill provides structured analysis and migration guidance to Java, reducing guesswork and enabling safer transitions.

Core Features & Use Cases

  • Extract program specifications (H/F/D/C/P), data structures, and file operations.
  • Map RPG constructs (D-specs, F-specs, indicators) to Java equivalents (POJOs, JPA entities) and generate migration plans.
  • Produce migration reports and complexity estimates for planning, budgeting, and implementation steps.

Quick Start

Provide an RPG source file to start deriving a Java migration blueprint.

Frequently Asked Questions about rpg-migration-analyzer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze legacy RPG source code for a Java migration?

RPG migration analysis extracts D-specs, F-specs, and C/P logic from RPG III/IV/ILE source files, mapping data structures to Java POJOs and files to JPA repositories to generate a structured migration plan. It produces actionable artifacts like dependency graphs and complexity estimates.

What is the process for mapping RPG data structures to Java classes?

Mapping RPG data structures to Java classes involves extracting D-specs from RPGLE source files and translating them into Java POJOs and JPA entities. The analyzer generates corresponding service methods and dependency graphs to visualize the modernization scope.

Can I generate a migration plan from RPG III and ILE source files?

Yes, you can generate a migration plan from RPG III and ILE source files. The analyzer processes RPGLE, RPGL, and RPG formats to produce complexity estimates, dependency graphs, and structured implementation steps for transitioning to modern Java applications.

How do RPG file specifications translate to Java repositories?

RPG file specifications translate to Java repositories by extracting F-specs from the legacy source and mapping file operations to JPA repository interfaces. This provides a structured blueprint for data access layer modernization in your Java application.

What outputs do I get when planning an IBM i RPG to Java migration?

When planning an IBM i RPG to Java migration, you get actionable artifacts including Java POJOs, JPA entities, service methods, dependency graphs, and a structured migration report with complexity estimates to guide budgeting and implementation.

Does the RPG migration analyzer work with RPG indicators and calculation logic?

Yes, the analyzer works with RPG indicators and calculation logic by extracting C/P specifications from your source files. It maps these legacy control structures into equivalent Java service methods to ensure accurate business logic translation.