Skip to content
Agent Orchestration
Skill

/mainframe-removal

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

From plugin
extensions
18489 skills4 commands

Claude Code

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

SKILL.md

mainframe-removal.SKILL.md
name: mainframe-removal
description: Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide. Converts CICS/VSAM constructs to standard COBOL.
license: MIT
compatibility: Requires GnuCOBOL (cobc) for verification
triggers:
  - remove mainframe
  - cobol transformation
  - cics removal
  - standard cobol

Apply the transformations from a transformation guide to convert mainframe-specific COBOL to standard COBOL.

**Prerequisite**: A transformation guide must exist (see `cobol-mainframe-planning` skill).

Transformation Requirements

Data Operations

  • Replace each CICS/VSAM construct with its standard COBOL equivalent per the plan
  • Add FILE STATUS checks after EVERY file operation:
  • Check for success (00) before proceeding
  • Handle "not found" (23) distinctly from I/O errors (3x)
  • Handle "file not exists" (35) at OPEN time
  • Add explicit CLOSE statements in all code paths (including error paths)

UI/Terminal Operations (BMS maps, SEND/RECEIVE)

  • Replace with simple stubs or ACCEPT/DISPLAY statements
  • Do NOT spend time replicating screen layouts
  • Focus on preserving data flow, not UI fidelity

Error Handling

  • Replace CICS RESP/RESP2 checks with equivalent FILE STATUS logic
  • Replace HANDLE CONDITION with explicit status checking after operations
  • Ensure error paths don't leave files open

See [references/cics-transformation-examples.md](references/cics-transformation-examples.md) for before/after code examples.

Verification

After transformation:

  • Code MUST compile without errors
  • Test with valid input → should execute core business logic
  • Test with missing/invalid files → should fail gracefully, not crash

Preserve

  • All original business logic
  • Data transformations and calculations
  • Validation rules

Checklist

  • [ ] All EXEC CICS commands replaced
  • [ ] FILE STATUS declared for all files
  • [ ] FILE STATUS checked after every I/O operation
  • [ ] CLOSE statements in all code paths
  • [ ] Code compiles successfully
  • [ ] Basic test execution passes
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-planning

mainframe-planning

Create a transformation guide for replacing mainframe-specific COBOL constructs with standard COBOL equivalents. Use when…

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-removal.

Which coding agents can use mainframe-removal?
mainframe-removal 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.