mainframe-removal

mainframe-removal is a skill for Claude Code, Codex from OpenHands/extensions. It costs 33 tokens per session (461 once invoked), scanned A, original, MIT.

A transformation guide for converting COBOL programs that depend on mainframe technologies such as CICS and VSAM into standard COBOL code.

In plain words
What is it for?
Applying an existing transformation plan, replacing CICS and VSAM operations, adding file-status checks, closing files safely, and verifying that the result compiles.
Why use it?
It provides a planned way to replace mainframe-specific operations while preserving data flow and adding explicit file and error handling.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Applying an existing transformation plan, replacing CICS and VSAM operations, adding file-status checks, closing files safely, and verifying that the result compiles.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openhands/extensions/mainframe-removal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenHands/extensions --skill mainframe-removal
Clone the repo
git clone --depth 1 https://github.com/OpenHands/extensions

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mainframe-removal

README.md
[![agentmods](https://agentmods.dev/badge/skills/openhands/extensions/mainframe-removal/github.svg)](https://agentmods.dev/skills/openhands/extensions/mainframe-removal)
Your own site
<a href="https://agentmods.dev/skills/openhands/extensions/mainframe-removal"><img src="https://agentmods.dev/badge/skills/openhands/extensions/mainframe-removal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mainframe-removal

Your own site · 80×15
<a href="https://agentmods.dev/skills/openhands/extensions/mainframe-removal"><img src="https://agentmods.dev/badge/skills/openhands/extensions/mainframe-removal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 461 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00461
Opus 5.5 $0.00013 $0.00184
Sonnet 5.5 $0.00007 $0.00092
Haiku 4.5 $0.00003 $0.00046

Measured 3mo ago against content hash bf0c95e28074, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mainframe-removal scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/cobol-modernization/skills/mainframe-removal/SKILL.md · 63 lines

What it actually says

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 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
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 63 lines · 33 tokens per session scan A bf0c95e28074

Subscribe to this mod's changes

mainframe-removal is a skill published in the GitHub repository OpenHands/extensions (190 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 461 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mainframe-removal compared with skills from other repositories

mainframe-removal next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mainframe-removalOpenHands/extensionsSkill190todayMITA33Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill331k3d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15ktodayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code