tiendungwork/agent-harness/mainframe-planning

Claude Code and agent skill by tiendungwork/agent-harness

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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

Install

npx vskill@latest install tiendungwork/agent-harness/mainframe-planning

SKILL.md

The same SKILL.md was published earlier as openhands/extensions/mainframe-planning.

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)
  1. Resource Cleanup: Any cleanup the replacement requires (CICS auto-manages resources; file I/O does not)
  2. 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
CodeMeaningCICS Equivalent
00SuccessNormal completion
23Record not foundNOTFND condition
35File does not existNOTOPEN condition
22Duplicate keyDUPREC condition
3xI/O errorsVarious IOERR conditions
CICS to Standard COBOL
CICS CommandStandard 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...

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/tiendungwork/agent-harness/mainframe-planning/badge)](https://verified-skill.com/skills/tiendungwork/agent-harness/mainframe-planning)

Something wrong with this skill or its page? Tell us.