joogy06/agent-foundry/cobol-developer
Claude Code and agent skill by joogy06/agent-foundry
- community
Checking that the SKILL.md file is still in the repository.
Use when reading, writing, debugging, or modernizing COBOL programs — divisions and sections, data types (PIC clauses, COMP/COMP-3/DISPLAY), file handling (QSAM/VSAM/KSDS/RRDS), PERFORM and paragraph structure, COPY/REPLACE, embedded SQL (EXEC SQL), CICS programming (EXEC CICS), batch JCL integration, debugging (CEDF/Xpediter), and COBOL modernization patterns. Part of the ibm-mainframe skill family.
Install
npx vskill@latest install joogy06/agent-foundry/cobol-developerSKILL.md
COBOL Developer Reference
Companion to ibm-mainframe (JCL/VSAM/utilities) and db2-mainframe (DB2 z/OS DBA). For Python mainframe connectivity see python-enterprise-connectors.
<HARD-RULE> Always check SQLCODE after every EXEC SQL statement — unchecked SQLCODEs cause silent data corruption. At minimum check for SQLCODE = 0, +100 (not found), and negative values (errors). </HARD-RULE>
<HARD-RULE> Never use GO TO in new COBOL code — use structured PERFORM THRU patterns for maintainability. GO TO creates spaghetti control flow that is nearly impossible to debug or modify. </HARD-RULE>
<HARD-RULE> Always define numeric fields with explicit COMP-3 or COMP for calculations — DISPLAY numeric fields cause implicit conversions on every arithmetic operation, degrading performance significantly in batch loops. </HARD-RULE>
<HARD-RULE> Always initialize WORKING-STORAGE variables with VALUE clauses or INITIALIZE verb — uninitialized fields contain unpredictable data from previous program executions in CICS or residual memory in batch. </HARD-RULE>
1. Program Structure
2. Data Division Deep Dive
PIC Clauses
| PIC | Meaning | Example Value | |
|---|---|---|---|
PIC X(20) | Alphanumeric, 20 chars | "JOHN DOE " | |
PIC 9(5) | Numeric display, 5 digits | 00123 | |
PIC S9(7)V99 | Signed, 7 integer + 2 decimal | +1234567.89 | |
PIC S9(7)V99 COMP-3 | Packed decimal (BCD) | 4 bytes | |
PIC S9(9) COMP | Binary (fullword) | 4 bytes | |
PIC S9(18) COMP | Binary (doubleword) | 8 bytes | |
PIC S9(7)V99 COMP-1 | Single-precision float | 4 bytes | |
PIC S9(18)V99 COMP-2 | Double-precision float | 8 bytes | |
PIC Z(5)9 | Edited numeric (leading zeros suppressed) | 123 | |
PIC $ZZ,ZZ9.99 | Edited with currency/commas | $1,234.56 |
Storage Formats
| Usage | Storage | When to Use | |
|---|---|---|---|
| DISPLAY | 1 byte/digit | External files, reports | |
| COMP-3 (packed) | (n+1)/2 bytes | All calculations and DB2 columns | |
| COMP (binary) | 2/4/8 bytes | Subscripts, counters, indexes | |
| COMP-1 (float) | 4 bytes | Scientific calculations (rare) | |
| COMP-2 (double) | 8 bytes | Scientific calculations (rare) |
REDEFINES
OCCURS (Arrays)
88-Level Condition Names
3. File Handling
File Status Codes
| Code | Meaning | |
|---|---|---|
| 00 | Success | |
| 10 | End of file (AT END) | |
| 22 | Duplicate key on WRITE | |
| 23 | Record not found (READ/START/DELETE) | |
| 35 | File not found (OPEN) | |
| 39 | File attribute conflict | |
| 41 | File already open | |
| 42 | File already closed | |
| 46 | Sequential READ with no valid next | |
| 47 | READ on file not opened INPUT/I-O | |
| 48 | WRITE on file not opened OUTPUT/I-O/EXTEND |
VSAM KSDS (Indexed)
SORT/MERGE
4. Procedure Division Patterns
STRING / UNSTRING
INSPECT
Reference Modification
CALL (Subprogram)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cobol-developer/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 5
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/joogy06/agent-foundry/cobol-developer)