Skip to main content
在 Manus 中运行任何 Skill
一键导入

convert-copybook-to-java-record

星标4
分支0
更新时间2026年5月23日 20:50

Converts one Enterprise COBOL copybook (a `.cpy`, `.cbl`, or `.cob` file containing only DATA-DIVISION-style 01-level group items, no PROCEDURE DIVISION) into one or more idiomatic Java 21 `record` types plus a deterministic `copybook-mapping.json` artifact that documents every field-level mapping (COBOL name + PICTURE + USAGE → Java name + Java type + scale + nullability + EBCDIC byte offset). Handles fixed-format and free-format copybooks; resolves `OCCURS` to `List<T>`, `OCCURS DEPENDING ON` to a bounded list with a runtime size guard, `REDEFINES` to a Java 21 sealed interface with one record per variant, `COMP-3` / `PACKED-DECIMAL` to `BigDecimal` with explicit `scale`, `COMP` / `BINARY` to `int` / `long` / `BigInteger` by digit count, and `PIC X(n)` / `PIC A(n)` to `String` (trailing-space semantics recorded in the mapping). USE this skill when you have a copybook (typically surfaced by `analyze-cobol-program#/data/copybooks[]`) and need immutable Java DTOs that downstream skills (`map-vsam-db2-to-jpa`,

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
3 个文件
SKILL.md
readonly