No slash command · from mainframe-cobol-db2
Applies DB2 DDL, DCLGEN, cursor, and migration-script conventions for precision, nullability, access paths, and reconciliation evidence. Use when reading or writing DB2 schema and migration artifacts.
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.
These conventions apply to DB2 DDL, DCLGEN output, and migration scripts matched by the applyTo globs. They are authoritative for how this repository states DB2 structure and proves migrated data. The installed DB2 catalog wins for actual definitions; record the divergence when a script and the catalog disagree.
A target column definition cites the DB2 DDL, the DCLGEN structure, or the PIC clause it came from. A definition derived from sampled data is a hypothesis and must be labeled as one.
Nullability, defaults, and key constraints are behavior. NOT NULL WITH DEFAULT and a nullable column with an application-supplied default are different systems; map each explicitly.
| Rule | Rationale |
|---|---|
Map DECIMAL(p,s) and COMP-3 to exact decimal types end to end. | One pass through binary floating point breaks reconciliation. |
State the fractional precision when mapping TIMESTAMP. | Source precision often exceeds the target default and rounds silently. |
| Keep the legacy key column alongside a new surrogate key. | Reconciliation needs the original identity until sign-off. |
| Justify every foreign key with DDL or cited program behavior. | A relationship enforced only in COBOL is a hypothesis. |
| Prove uniqueness against real data before adding a unique constraint. | A failing unique index on load means the assumption was wrong. |
| Add a constraint only when the legacy system rejects the value. | A new constraint turns a load into silent data loss. |
Preserve the ordinal for every OCCURS group mapped to a child table. | Occurrence position drives reports and first-entry logic. |
Record the cursor ORDER BY, or state that order is not guaranteed. | Legacy output can look ordered without an ordering clause. |
Reproduce SQLCODE +100 as an empty result, not an error. | Empty-result branches are business behavior. |
Migration scripts are re-runnable against an empty target and never mutate the legacy source. Credentials come from the environment or a managed identity, never from a script or a connection string in version control. A destructive step requires an explicit flag and a recorded approval.
A migration is reconciled when the numbers exist, not when the script succeeds. Record row counts, occurrence totals, per-column aggregates at full precision, null counts, distinct counts for key columns, and a deterministic sampled diff. Report every check that could not run, with the blocking reason.
| Do | Do not |
|---|---|
Cite DDL, DCLGEN, or PIC for every mapped column. | Infer a type from a sample value. |
| Decide null, blank, and default meaning per column. | Apply one blanket null mapping to a table. |
| Store occurrence groups as child tables with ordinals. | Flatten OCCURS into numbered columns. |
| Report reconciliation with actual numbers. | Write "counts match" without values. |
| Use synthetic fixtures. | Copy production extracts into tests. |
PIC clause.SQLCODE +100 paths.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./code-modernizationUse this skill when the user asks to modernize legacy code with a disciplined GitHub Copilot workflow: brief, assess, map, extract business rules, reimagine architecture, transform modules, and harden with tests and security review. Trigger for COBOL, JCL, legacy Java, .NET, C++, classic ASP, monolith modernization, behavior-preserving rewrite, business-rule extraction, modernization assessment, or legacy-to-modern transformation./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.Other plugins' skills for the same job