/mainframe-cobol-db2-classic:cobol-classic-contextfrom mainframe-cobol-db2-classic
Establishes shared ground rules for COBOL/DB2 modernization: corpus layout, member conventions, target stack boundaries, evidence precedence, and security rules. Invoke before any analysis, design, or implementation task.
Ships in mainframe-cobol-db2-classic. 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.
Establish the shared ground rules for a COBOL/DB2 modernization engagement so every stage reads the same corpus layout, evidence precedence, and safety boundaries.
The engagement repository is expected to hold these paths. Inspect before assuming any of them exists; a missing path is a blocker for claims about its content, not permission to invent a replacement.
| Area | Expected path | Contract |
|---|---|---|
| COBOL programs | 01-archaeology/legacy/cobol/ | Read-only evidence by default. |
| Copybooks | 01-archaeology/legacy/copybooks/ | Read-only layout evidence. |
| DB2 DDL and DCLGEN | 01-archaeology/legacy/db2/ | Read-only schema evidence. |
| JCL and procedures | 01-archaeology/legacy/jcl/ | Read-only runtime evidence. |
| Archaeology outputs | 01-archaeology/ outside legacy/ | Stage 1 artifacts. |
| Specifications | specs/<NNN>-<feature>/ | Requirements, plan, tasks, and test strategy. |
| Architecture outputs | 02-modern-spec/ | Scope and architecture artifacts. |
| Implementation reports | 03-implementation/ | Implementation review artifacts. |
| Quality outputs | 04-evolution/reports/ | Verification reports, migration mappings, reconciliation evidence. |
| Operations outputs | 04-evolution/reviews/ | Issues, delegations, reviews, runbooks, and retrospective. |
COBOL sites differ. Infer a member type from repository evidence and the installed compiler options rather than from an extension alone, and record the convention actually found.
| Artifact | Common extensions |
|---|---|
| Program | .cbl, .cob, .CBL, .COB |
| Copybook | .cpy, .CPY |
| JCL job or procedure | .jcl, .JCL, .prc |
| DB2 DDL | .sql, .ddl |
| DCLGEN output | .cpy, .dclgen |
Reserve judgment when a file mixes conventions, when a copybook is included with REPLACING, or when a
CALL uses an identifier instead of a literal. Those are unresolved references, not silent omissions.
The target stack is an engagement decision, not a property of this skill. Record it once in an approved decision record and treat it as a compatibility baseline rather than a latest-version claim. Until that record exists, do not assume a language, framework, database version, runtime, or cloud provider.
What this skill does fix: exact decimal types for money and quantities end to end, explicit empty-result behavior, preserved occurrence semantics, and no behavior change without a recorded decision.
Distinguish observed behavior, inferred intent, approved requirement, and greenfield decision in every report. Read the cited source before describing what it does. A compile or bind result proves structure, not preserved business behavior.
| Stage | Outcome | Gate before handoff |
|---|---|---|
| 1. Archaeology | Inventory, dependency map, rule candidates, open questions | Every recognized corpus file is mapped and claims cite inspected evidence. |
| 2. Architecture | Approved scope, REQ-NNN requirements, decision records, module plan | Every requirement has a valid source and testable acceptance criteria. |
| 3. Build | Bounded implementation slices and behavior-equivalence tests | Relevant tests and builds pass; intentional behavior changes are recorded. |
| 4. Quality | Requirement verification, DB2-to-target mapping, reconciliation numbers | Every requirement is verified and every in-scope table reconciles or is explicitly excluded. |
| 5. Operations | Hardened delivery, reviewed delegation, IaC, runbook, retrospective | No blind merge or deployment; evidence and human approvals are recorded. |
Stage agents own decisions and handoffs. Reusable procedures live in skills, and the loop skill runs a stage as a bounded correction loop with an observable gate.
## COBOL/DB2 context check
**Task:** <what is about to happen>
**Stage:** archaeology | architecture | build | quality | operations
### Corpus paths confirmed
| Area | Path | Present |
| --- | --- | --- |
### Constraints that apply
- <stack, evidence, or security rule relevant to this task>
### Blockers
- <missing path, undecided baseline, or absent approval, or `None`>
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin mainframe-cobol-db2-classic16 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-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./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./db2-schemaApplies 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.Other plugins' skills for the same job