/mainframe-cobol-db2:code-modernizationfrom mainframe-cobol-db2
Guides behavior-preserving modernization of legacy code (COBOL, JCL, Java, .NET, C++, classic ASP) through stages: brief, assess, extract business rules, map, reimagine architecture, transform modules, and harden with tests and security review.
Ships in mainframe-cobol-db2. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guide behavior-preserving modernization by moving from evidence gathering to rule extraction, target design, incremental transformation, and hardening instead of rewriting legacy systems from assumptions.
| Stage | Output | Required evidence |
|---|---|---|
| Brief | Scope, why now, constraints, non-goals, and success criteria. | User goals and repository facts; assumptions clearly marked. |
| Assess | Inventory of languages, modules, integrations, build, tests, complexity, and risk. | Measured values from available tools such as scc, cloc, or language-specific analyzers when present. |
| Extract rules | Business rule cards that separate observed behavior from inferred intent. | Legacy source citations with line numbers when available. |
| Map | Legacy-to-target module map, target domains, packages, services, and migration sequence. | Dependency and risk relationships from assessment. |
| Reimagine | Target API, data model, runtime, operational model, and deployment shape. | Constraints, quality attributes, and integration boundaries. |
| Transform | Module-by-module rewrite under modernized/**. | Characterization tests pinning legacy behavior before intentional changes. |
| Harden | Security, tests, error handling, observability, and deployment readiness report. | Test results and severity-ranked remediation. |
| Folder | Contract |
|---|---|
legacy/** | Source evidence and legacy behavior; read-only by default. Do not edit unless the user explicitly asks to patch legacy code. |
analysis/** | Briefs, assessments, maps, rule catalogs, designs, risk registers, and reports. |
modernized/** | Transformed or replacement implementation and tests. |
| Need | Primitive |
|---|---|
| Modernization leadership and evidence synthesis | modernization agent |
| Natural and Adabas source discovery | natural-adabas-analysis skill |
| Business rule extraction | legacy-business-rule-extraction skill |
| Target design pressure-testing | critical-thinking agent |
| Security hardening | se-security-reviewer agent |
| Characterization tests | legacy-characterization-testing skill |
| Repeatable workflow entry points | /modernize-* prompts |
| Folder safety rules | code-modernization.instructions.md |
legacy-business-rule-extraction and citations from legacy/**; label inferred intent separately from observed behavior.modernized/**, using legacy-characterization-testing to preserve observable behavior.legacy/** as cleanup: the legacy tree is evidence unless the user explicitly requests a legacy patch.### Modernization result
**Status:** assessed | planned | transformed | blocked
**Scope:** `<legacy area or module>`
**Target area:** `modernized/<path>` | not selected
| Stage | Artifact | Evidence |
| --- | --- | --- |
| Brief | `<path or summary>` | `<source>` |
| Assess | `<path or summary>` | `<tools/files>` |
| Extract rules | `<path or summary>` | `<legacy citations>` |
| Map | `<path or summary>` | `<dependency/risk evidence>` |
| Reimagine | `<path or summary>` | `<constraints>` |
| Transform | `<path or summary>` | `<tests>` |
| Harden | `<path or summary>` | `<validation>` |
**Validation**
- `<inventory/test/security command>`: pass | fail | not available
legacy/**, analysis/**, and modernized/** folder contracts were respected.scc, cloc, or language-specific analyzers were used when present.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin mainframe-cobol-db215 skills in this plugin
/cobol-db2-analysisAnalyze COBOL programs, copybooks, PERFORM and CALL structure, file and VSAM access, embedded EXEC SQL and EXEC CICS, DB2 DDL, DCLGEN structures, cursors, and JCL job steps with source citations. Use when reading or inventorying a COBOL/DB2 legacy system before modernization./cobol-db2-contextSupply COBOL, DB2, VSAM, and JCL modernization context: corpus layout, member conventions, target stack boundaries, evidence precedence, stage flow, and security rules. Use when starting any COBOL/DB2 modernization task, before analysis, design, implementation, verification, or delivery./cobol-db2-loopRun each COBOL/DB2 modernization phase as a bounded correction loop with observable exit gates, an iteration ledger, upstream defect escalation, and an engineering graph extracted from COBOL, copybooks, JCL, and DB2 DDL. Use when opening or closing a COBOL/DB2 phase loop, deciding whether a gate passes, routing a defect to the phase that owns its root cause, or building and querying the modernization graph./cobol-legacyApplies COBOL, copybook, and JCL reading conventions for evidence, precision, occurrence semantics, and legacy immutability. Use when inspecting or citing COBOL/DB2 legacy source./create-architectural-decision-recordCreate an Architectural Decision Record (ADR) as a structured Markdown document with front matter, coded consequences, alternatives, implementation notes, and references. Use when the user asks to document an architecture decision, create an ADR, capture alternatives and trade-offs, or save a decision under docs/adr./db2-postgresql-migrationModel DB2 for z/OS tables, DDL, DCLGEN structures, COBOL record layouts, OCCURS and REDEFINES groups, packed decimal fields, cursors, and VSAM datasets as a PostgreSQL schema, then prove equivalence with recorded reconciliation numbers. Use when designing or reviewing a DB2 to PostgreSQL migration, mapping legacy types to column types, deciding child-table versus array storage, or verifying that migrated data matches the legacy source.Other plugins' skills for the same job