Skip to content
Agent Orchestration
Skill

/mainframe-planning

Create a transformation guide for replacing mainframe-specific COBOL constructs with standard COBOL equivalents. Use when preparing COBOL code for local execution or migration.

From plugin
extensions
18489 skills4 commands

Claude Code

$ npx -y skills add openhands/extensions --skill mainframe-planning --agent claude-code

SKILL.md

mainframe-planning.SKILL.md
name: mainframe-planning
description: Create a transformation guide for replacing mainframe-specific COBOL constructs with standard COBOL equivalents. Use when preparing COBOL code for local execution or migration.
license: MIT
compatibility: Requires knowledge of CICS/VSAM mainframe constructs
triggers:
  - mainframe planning
  - cics replacement
  - cobol transformation guide
  - mainframe dependency

Create a comprehensive transformation guide that maps each mainframe dependency to its standard COBOL replacement.

This guide is a prerequisite for the actual transformation — DO NOT modify any code, only create the guide.

Output Format

Document each mainframe-specific construct with:

1. **Pattern**: The mainframe construct (e.g., `EXEC CICS READ FILE(...)`) 2. **Replacement**: The standard COBOL equivalent 3. **Error Handling**: How to replicate the mainframe's error behavior

  • Map CICS RESP/RESP2 codes to FILE STATUS equivalents
  • Specify which FILE STATUS values to check (e.g., 00=success, 23=not found, 35=file not exists)

4. **Resource Cleanup**: Any cleanup the replacement requires (CICS auto-manages resources; file I/O does not) 5. **Edge Cases**: Behavior differences between mainframe and standard COBOL

Constructs to Address

Data Operations (CICS/IMS/VSAM)

  • READ, WRITE, REWRITE, DELETE operations
  • STARTBR, READNEXT, READPREV (browse operations)
  • CICS error handling: HANDLE CONDITION, RESP/RESP2 options
  • VSAM → sequential or indexed file I/O

UI/Terminal Operations (BMS maps, screens)

  • SEND MAP, RECEIVE MAP → these can be MOCKED or stubbed
  • Screen I/O is not needed for business logic validation
  • Document how to replace with simple ACCEPT/DISPLAY or test harness stubs
  • Focus on preserving the data flow, not the UI interaction

Other Mainframe Constructs

  • Mainframe data types (COMP-3 packed decimal, etc.)
  • JCL-embedded constructs
  • IMS calls (if present)

Critical Requirements

  • Every CICS command that can fail MUST have an error handling replacement documented
  • UI operations should be clearly marked as "mock/stub" so the agent doesn't get stuck on them
  • Prefer: file-based I/O over mainframe I/O, standard data types over mainframe types

Common Mappings Reference

FILE STATUS Codes

| Code | Meaning | CICS Equivalent | |------|---------|-----------------| | 00 | Success | Normal completion | | 23 | Record not found | NOTFND condition | | 35 | File does not exist | NOTOPEN condition | | 22 | Duplicate key | DUPREC condition | | 3x | I/O errors | Various IOERR conditions |

CICS to Standard COBOL

| CICS Command | Standard COBOL | |--------------|----------------| | `EXEC CICS READ FILE(...)` | `READ filename INTO...` | | `EXEC CICS WRITE FILE(...)` | `WRITE record-name FROM...` | | `EXEC CICS REWRITE FILE(...)` | `REWRITE record-name FROM...` | | `EXEC CICS DELETE FILE(...)` | `DELETE filename RECORD` | | `EXEC CICS STARTBR FILE(...)` | `START filename KEY...` | | `EXEC CICS READNEXT FILE(...)` | `READ filename NEXT INTO...` |

Read more
@openhands
Ships withextensions

This repository is the public extensions registry for OpenHands. It contains reusable, shareable skills, plugins, and Agent Canvas Apps that customize agent behavior and interfaces. Skills overview docs: SDK skill guide:

Stars on GitHub

Momentum

stars in total
184
Star history of openhands/extensions on GitHub, a chart by star-history.com

Other skills on extensions.

build-setup

build-setup

Set up build environment and test fixtures for COBOL-to-Java migrations. Creates compilation infrastructure for both languages…

cobol-modernization

cobol-modernization

End-to-end COBOL to Java migration workflow. Handles build setup, mainframe dependency removal, and code migration with test…

mainframe-removal

mainframe-removal

Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide. Converts CICS/VSAM…

to-java-migration

to-java-migration

Migrate COBOL code to idiomatic Java, preserving business logic while following Java best practices. Use for COBOL modernization…

migration-mapping

migration-mapping

Create a mapping from source language files to target language files for code migrations. Use when evaluating or documenting a…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw4d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca2d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip3d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about mainframe-planning.

Which coding agents can use mainframe-planning?
mainframe-planning installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.