Agent skill

Mainframe Removal

by OpenHands in OpenHands/extensions

Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide.

MITAuto-check passed

Install Mainframe Removal

skills CLI
$ npx skills add OpenHands/extensions --skill mainframe-removal -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OpenHands/extensions mainframe-removal --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OpenHands/extensions.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/cobol-modernization/skills/mainframe-removal .claude/skills/mainframe-removal && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mainframe-removal
GitHub stars
158
Token cost
~520 tokens
SKILL.md length
210 words
Files
2 (incl. references)
Skills in repo
78
Repo updated
First seen
Licence
MIT

At a glance

Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide.

  • SKILL.md covers Transformation Requirements, Verification, Preserve and Checklist
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Mainframe Removal is an agent skill from OpenHands/extensions. Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide. Converts CICS/VSAM constructs to standard COBOL.

Its SKILL.md is about 520 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/cics-transformation-examples.md`). Compatibility notes: Requires GnuCOBOL (cobc) for verification

The repository describes itself as: Public registry for OpenHands extensions. The licence is MIT.

Example prompts

  • “/mainframe-removal”

Requirements

  • Compatibility (from SKILL.md): Requires GnuCOBOL (cobc) for verification

What it can do on your machine

Read from SKILL.md and the folder at commit d008b81. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires GnuCOBOL (cobc) for verification

    From compatibility in the SKILL.md frontmatter.

Context cost

Mainframe Removal loads about 520 tokens when it runs, and up to ~722 if it reads all its reference files. Until then it costs about 42 tokens; SKILL.md has 210 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~520
With references · SKILL.md plus every file in references/, read only if the agent opens them
~722

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from OpenHands/extensions at commit d008b81, republished under its MIT licence (© OpenHands). 210 words, ~520 tokens.

Download SKILL.mdSave it as .claude/skills/mainframe-removal/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
mainframe-removal
description
Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide. Converts CICS/VSAM constructs to standard COBOL.
compatibility
Requires GnuCOBOL (cobc) for verification
license
MIT
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 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

© OpenHands, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in plugins/cobol-modernization/skills/mainframe-removal of OpenHands/extensions.

  • SKILL.md
  • references/cics-transformation-examples.md

Open the folder on GitHubat commit d008b81

Compare with similar skills

Mainframe Removal next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mainframe Removal compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mainframe Removal this skillOpenHands/extensions158—~520Automated safety check: PassMIT
TransformersK-Dense-AI/scientific-agent-skills48k1 repos~2.8kAutomated safety check: NotesApache-2.0
Dependency Scanningsickn33/agentic-awesome-skills47k1 repos~2.4kAutomated safety check: PassMIT
Dependency Checkruvnet/ruflo74k—~258Automated safety check: PassMIT
Dependency Updatecodewhale-hq/Codewhale41k—~142Automated safety check: PassMIT
Bump Sentry Dependencygetsentry/sentry46k—~815Automated safety check: PassCustom licence

Similar skills

  • Transformers

    K-Dense-AI/scientific-agent-skills

    Hugging Face Transformers for loading Hub models, running pipeline inference, text generation, and Trainer fine-tuning on NLP, vision, audio, and multimodal tasks.

    48k GitHub starsUsed in 1 repo~2.8k tokens
    AI & LLM EngineeringAuto-check: notes
  • Dependency Scanning

    sickn33/agentic-awesome-skills

    Scan package dependencies for known vulnerabilities using Snyk, Dependabot, and OWASP Dependency-Check.

    47k GitHub starsUsed in 1 repo~2.4k tokens
    SecurityAuto-check passed
  • Dependency Check

    ruvnet/ruflo

    Scan project dependencies for known vulnerabilities and CVEs.

    74k GitHub stars~258 tokensUpdated today
    SecurityAuto-check passed
  • Dependency Update

    codewhale-hq/Codewhale

    Read release notes/changelogs, update a defined dependency scope, handle breaking changes, and verify.

    41k GitHub stars~142 tokensUpdated today
    DevelopmentAuto-check passed
  • Bump Sentry Dependency

    getsentry/sentry

    Official

    Bumps an existing Python dependency in getsentry/sentry through the repository's self-serve GitHub Actions workflow.

    46k GitHub stars~815 tokensUpdated today
    DevOps & CloudAuto-check passed
  • Audit, plan, and refresh dependency upgrades for the Logseq repository by scanning every non-gitignored package.json, deps.edn, bb.edn and nbb.edn manifest, checking latest upstream versions…

    45k GitHub stars~1.1k tokensUpdated today
    Knowledge ManagementAuto-check passed

More from OpenHands/extensions

All 78 skills in this repo
  • GitHub

    OpenHands/extensions

    Interact with GitHub repositories, pull requests, issues, and workflows using the GITHUBTOKEN environment variable and GitHub CLI.

    158 GitHub starsUsed in 1 repo~1.7k tokens
    Auto-check passed
  • Agent Readiness Report

    OpenHands/extensions

    Evaluate how well a codebase supports autonomous AI-assisted development.

    158 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Discord

    OpenHands/extensions

    Build and automate Discord integrations (bots, webhooks, slash commands, and REST API workflows).

    158 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • GitHub Issue To PR

    OpenHands/extensions

    Create an automation that implements GitHub issues when a configurable trigger label is applied.

    158 GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • GitHub Repo Monitor

    OpenHands/extensions

    This skill should be used when the user asks to "monitor a GitHub repository", "watch GitHub for issues or PRs", "respond to @OpenHands mentions on GitHub", "set up an OpenHands GitHub integration"…

    158 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • GitLab Issue To Mr

    OpenHands/extensions

    Create an automation that implements GitLab issues when a configurable trigger label is applied.

    158 GitHub stars~4.9k tokensUpdated today
    Auto-check passed

Questions about Mainframe Removal

What does Mainframe Removal do?

Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide. Mainframe Removal is an agent skill from OpenHands/extensions. Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide.

How do I install Mainframe Removal in Claude Code?

Run `npx skills add OpenHands/extensions --skill mainframe-removal -a claude-code`. Or copy the skill folder (plugins/cobol-modernization/skills/mainframe-removal in OpenHands/extensions) into .claude/skills/mainframe-removal in your project. Claude Code loads it when a task matches its description.

How do I install Mainframe Removal in Codex?

Run `npx skills add OpenHands/extensions --skill mainframe-removal -a codex`. Or copy the skill folder (plugins/cobol-modernization/skills/mainframe-removal in OpenHands/extensions) into .agents/skills/mainframe-removal in your project. Codex loads it when a task matches its description.

Can I use Mainframe Removal in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OpenHands/extensions --skill mainframe-removal -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mainframe-removal, .gemini/skills/mainframe-removal, .github/skills/mainframe-removal and .opencode/skills/mainframe-removal in your project.

What does Mainframe Removal need to run?

SKILL.md names no scripts, command-line tools or credentials: Mainframe Removal is instructions for the agent only. Compatibility (from SKILL.md): Requires GnuCOBOL (cobc) for verification.

Does Mainframe Removal access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Mainframe Removal safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Mainframe Removal use?

Mainframe Removal is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mainframe Removal use?

About 520 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 202 tokens, read only when the agent opens those files.

What are the alternatives to Mainframe Removal?

Skills that share tags, products or a category with Mainframe Removal: Transformers (K-Dense-AI/scientific-agent-skills, 48k stars), Dependency Scanning (sickn33/agentic-awesome-skills, 47k stars), Dependency Check (ruvnet/ruflo, 74k stars) and Dependency Update (codewhale-hq/Codewhale, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mainframe Removal?

OpenHands (a GitHub organization) maintains it in OpenHands/extensions, which has 158 GitHub stars. The repository holds 78 skills in this directory. The repository was last updated on October 7, 2026.

Source: OpenHands/extensions on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.