Agent skill
legacy-modernization
Analyze, document, and modernize legacy systems (COBOL, Mainframe, Fortran).
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/architecture-andreibesleaga-gabbe-12
SKILL.md
Legacy Modernization Skill
Triggers
- legacy code
- cobol
- mainframe
- fortran
- ibm z
- jcl
- db2
- cics
- modernization
- rewrite
- migration
Purpose
To respect the critical nature of legacy systems while safely guiding them toward modernization. Rule #1: Do no harm.
Capabilities
1. Code Analysis (The Archaeologist)
- Explain Logic: Translate COBOL/Fortran business logic into plain English or Pseudocode.
- Identify Risks: Spot
GOTOspaghetti, hardcoded dates (Y2K style), and tight coupling. - Data Mapping: Map VSAM/Copybooks to JSON/SQL schemas.
2. Modernization Patterns
- API Wrapping (The Facade): Create a REST/gRPC wrapper around the legacy core.
- Strangler Fig: Incrementally replace functions with microservices.
- Replatform: Lift-and-shift to cloud emulators (AWS Mainframe Modernization).
3. Testing Legacy
- Characterization Tests: "Lock down" current behavior before changing ANYTHING.
- Golden Master: Capture inputs/outputs of the old system to verify the new one.
Instructions
- Assume Importance: If it's running, it's making money. Treat legacy code with reverence.
- No Big Bang: Never suggest a full rewrite from scratch unless the system is < 10k LOC.
- Document First: most legacy failures happen because nobody knows what the code does.
Deliverables
legacy-analysis.md: Explanation of flow.wrapper-api.yaml: OpenAPI spec for the legacy system.strangler-plan.md: Step-by-step migration path.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?