/mainframe-natural-adabas:adabas-postgresql-migrationfrom mainframe-natural-adabas
Models Adabas files, DDM/FDT definitions, MU/PE structures, and packed numerics as PostgreSQL schemas, then proves equivalence with reconciliation numbers. Use when designing or reviewing Adabas-to-PostgreSQL data migrations.
Ships in mainframe-natural-adabas. 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.
Turn inspected Adabas structure into a relational schema that preserves precision, occurrence semantics, and access paths, and prove the result with reconciliation numbers instead of assertions.
| Adabas format | PostgreSQL | Rule |
|---|---|---|
A alphanumeric, fixed | char(n) or varchar(n) | Decide whether trailing blanks are significant before choosing. Legacy comparisons often depend on them. |
W wide | text | Confirm the source encoding; do not assume UTF-8. |
P packed decimal | numeric(p,s) | Precision and scale come from the DDM or FDT, never from a sample value. |
U unpacked, zoned | numeric(p,s) | Same rule as P. Check the sign representation in the trailing byte. |
B binary | bytea, integer, or bigint | Choose an integer type only when the field is a documented number, not a bit field. |
F floating | real or double precision | Never use it for money, quantities, or anything that is summed and compared. |
L logical | boolean | Map the legacy true value explicitly; blank is not automatically false. |
Date as N8 or A8 | date | Confirm the stored pattern, usually YYYYMMDD, and reject impossible values instead of coercing them. |
| Time as numeric | time or timestamp | State the time zone assumption, or store local time with a documented rule. |
Natural D and T | date, timestamp | Natural date arithmetic uses a day origin; verify the epoch before converting. |
Monetary and quantity fields keep exact decimal types end to end: numeric in PostgreSQL, BigDecimal
in Java, and a string in JSON. A single conversion through a binary floating type is enough to break a
reconciliation.
| Adabas structure | Default PostgreSQL shape | Use an alternative only when |
|---|---|---|
| File | Table | Never merge two files into one table without a recorded decision. |
| Elementary field | Column | The field is a documented composite that programs always split. |
| MU multiple-value field | Child table with (parent_id, occurrence) | Order and cardinality are bounded, values are never queried or joined individually, and an array is a recorded decision. |
| PE periodic group | Child table with (parent_id, occurrence) plus one column per group member | Never flatten a PE into numbered columns; occurrence count is data, not schema. |
| MU inside PE | Grandchild table with both ordinals | Never. Both occurrence dimensions are meaningful. |
| Descriptor | Index on the mapped column | The descriptor is unused by every inspected program. |
| Superdescriptor | Composite index, or an index on a generated column when the source concatenates or shortens parts | The parts are already covered by an equivalent composite index. |
| Subdescriptor | Expression index on the same substring | The substring is not an access path in any inspected program. |
| ISN | Surrogate key plus a retained legacy_isn column | Never expose ISN as business identity; it is a physical address. |
Store the occurrence ordinal explicitly. Adabas occurrence position is often load-bearing in reports, control breaks, and "first occurrence wins" logic.
legacy_isn and the legacy file identity for the life of the reconciliation, then decide
explicitly whether to retain or drop them.NULL mapping changes behavior.varchar changes equality results.Equivalence is a measurement, not a claim. Run these against the same input and record actual numbers.
count, count of non-null, sum, min, and max, compared at
full precision.Report every number that was produced and every check that could not run. A reconciliation reported without numbers is not evidence.
## Adabas to PostgreSQL mapping
**Status:** proposed | reviewed | reconciled | blocked
**Scope:** <Adabas file or DDM>
### Column mapping
| Adabas field | Format | Target column | Type | Rule or risk | Evidence |
| --- | --- | --- | --- | --- | --- |
### Structure mapping
| Structure | Target shape | Rationale | Evidence |
| --- | --- | --- | --- |
### Access paths
| Descriptor | Target index | Uniqueness proven | Evidence |
| --- | --- | --- | --- |
### Reconciliation
| Check | Legacy value | Target value | Match | Evidence |
| --- | --- | --- | --- | --- |
### Open questions and accepted deviations
- <question or deviation, owner, decision reference>
What SKILL.md sets; muted values are Claude Code's defaults
26 skills in this plugin
/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./github-actions-hardeningReview, audit, author, and harden GitHub Actions workflows against Actions-specific threats: untrusted-input script injection, privileged trigger escalation, mutable action references, over-scoped GITHUB_TOKEN permissions, unsafe GITHUB_ENV/GITHUB_OUTPUT writes, secret exposure, OIDC misuse, and self-hosted runner risk. Use for .github/workflows/*.yml, secure my CI, pull_request_target danger, SHA pinning, or permissions lockdown./java-junitApply JUnit 5 best practices for Java tests, including Maven or Gradle setup, standard and parameterized tests, lifecycle hooks, assertions, Mockito isolation, tags, nested tests, and test commands. Use when asked for JUnit 5+ guidance or to write Java unit tests./java-springbootApply Spring Boot best practices for project structure, dependency injection, configuration, REST controllers, DTO validation, services, transactions, Spring Data JPA, logging, testing, and security. Use when asked for Spring Boot guidance or to implement Java backend code./legacy-business-rule-extractionExtract cited business-rule cards from legacy code, batch jobs, database definitions, screens, and process documents while separating observed behavior from inferred intent. Use when requirements, target design, or behavior-preserving modernization need an evidence-backed rule catalog.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin mainframe-natural-adabasOther plugins' skills for the same job