Skip to main content
Run any Skill in Manus
with one click

analyze-cobol-program

Stars4
Forks0
UpdatedMay 17, 2026 at 18:48

Parses a single Enterprise COBOL source program (and its directly COPY-ed copybooks, if provided) and emits a deterministic, machine-readable "program profile" plus a short human brief. The profile enumerates divisions, sections, paragraphs, the PERFORM call graph, CALL'd sub-programs, COPY members, FD/SELECT file usage, EXEC SQL and EXEC CICS blocks, LINKAGE parameters, and complexity metrics (LOC, cyclomatic, paragraph fan-in / fan-out, nesting depth). USE this skill as the first per-program step of a COBOL-to-Java modernization pipeline, whenever you need a structural map of one program before extracting business rules, drawing diagrams, or transpiling. DO NOT use it for: (a) JCL job flow across multiple programs — use `map-mainframe-job-flow` instead; (b) deriving business rules in natural language — chain into `extract-cobol-business-rules`; (c) generating Mermaid diagrams directly — chain into `diagram-cobol-with-mermaid`; (d) repository-wide scans — use `scan-target-repo-patterns`. Inputs: one `*.cbl|*

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

File Explorer
3 files
SKILL.md
readonly