cobol-polyglot

Translate COBOL business logic into Java services with COMP-3 and EBCDIC handling.

1|1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/duboc/mainframe-skills-mig --skill cobol-polyglot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cobol-polyglot
Source: https://github.com/duboc/mainframe-skills-mig/tree/main/skills/04-cobol-polyglot
Command: npx skills add https://github.com/duboc/mainframe-skills-mig --skill cobol-polyglot

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Convert legacy COBOL business logic into modern, idiomatic Java services with clean separation of concerns, enabling easier testing and cloud deployment.

Core Features & Use Cases

  • Phase 04 focuses on translating COBOL paragraphs into idiomatic Java methods, with COMP-3 handling and EBCDIC considerations.
  • Business rule extraction, GO TO elimination, and removal of boilerplate I/O to isolate pure logic.
  • Output ready services in a generated src/ tree and helper utilities for COMP-3 and EBCDIC processing.

Quick Start

Translate a COBOL program into a Java service and review the generated sources in src/.

Frequently Asked Questions about cobol-polyglot

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

FAQPage Schema
How do I translate COBOL to idiomatic Java for cloud-native deployments?

Translating COBOL to Java involves extracting business rules, eliminating GO TO statements, and converting COMP-3 and EBCDIC data into idiomatic Java methods. This Skill outputs generated Java sources into an src/ directory with helper utilities for data handling.

What is the best way to handle COMP-3 and EBCDIC data during a COBOL to Java migration?

Handling COMP-3 and EBCDIC data during migration requires dedicated utilities that preserve legacy behavior while converting packed decimal and character encoding into Java-compatible types. This Skill generates helper utilities alongside translated Java sources.

Do I need to complete Phase 03 before translating COBOL business logic to Java?

Yes, completing Phase 03 is a required prerequisite. This Skill operates during Phase 04 migrations, translating COBOL paragraphs into Java methods and extracting pure business logic only after Phase 03 preparation is fully complete.

Can I extract business rules from COBOL and remove boilerplate I/O when converting to Java?

Yes, business rule extraction and boilerplate I/O removal are core features. The translation process isolates pure logic by converting COBOL paragraphs into clean Java methods, ensuring a separation of concerns suitable for testable cloud services.

How does converting COBOL paragraphs to Java methods preserve legacy behavior across migration phases?

Converting COBOL paragraphs to Java methods preserves behavior by strictly mapping legacy logic structures and data formats like COMP-3 into equivalent Java constructs. The generated src/ output tree mirrors the original program flow while enabling modern deployment.