From pentaphase-structural-architect
Executes phase 4 of the pentaphase structural-overhaul protocol: purges redundancies, aligns legacy entities to a new schema, ingests into the new environment, and audits integrity.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pentaphase-structural-architect:systemic-ingestion-normalization <working-directory containing phase-3 environment spec><working-directory containing phase-3 environment spec>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are migrating legacy entities into the configured environment. The
You are migrating legacy entities into the configured environment. The
phase-3-environment-spec.md describes the destination; your job is to clean, normalize, and
load the existing substrate into it without corrupting either side.
<working-dir>/substrate-context.md exists.<working-dir>/phase-1-landscape-report.md exists (for the source-side asset inventory).<working-dir>/phase-2-taxonomy-model.md exists (for the target schema).<working-dir>/phase-3-environment-spec.md exists and has passed gate 3.Filter out duplicate, obsolete, or non-standard system inputs from the legacy substrate.
For each pass:
Always preserve a record of what was purged. Append-only purge logs prevent unrecoverable mistakes; never hard-delete without an archive.
Apply the mandatory attributes to all legacy entities before migration.
For each enrichment pass:
Critical enrichments that almost always need attention:
owner if
the legacy substrate didn't track ownership)For every enrichment that touches data, retain a "before/after" record so the audit can verify no value was changed silently.
Transfer items into the new environment using structured, phased batches.
Phase the ingestion explicitly:
For each batch, log:
Ingestion runs MUST be idempotent — if a batch fails halfway, re-running it must not duplicate already-ingested items.
Run automated and manual checks to ensure zero data corruption.
Automated checks:
Manual checks:
substrate-context.md review a
small sample and confirm fidelityIntegrity audit must produce a verdict: PASS / PASS-WITH-CAVEATS / FAIL. A FAIL verdict means ingestion is rolled back to the pre-ingestion snapshot.
Combine the four streams into a single file at <working-dir>/phase-4-ingestion-report.md.
Structure:
# Phase 4 — Ingestion Report
**Substrate:** <name>
**Date range:** YYYY-MM-DD to YYYY-MM-DD
**Preconditions:** Read substrate-context.md, phase-1, phase-2, phase-3
**Postconditions:** Ready for Phase 5 (governance-evolution-protocol)
## 1. Purge passes
[per-pass summaries with counts]
## 2. Enrichment passes
[per-pass summaries with coverage]
## 3. Ingestion batches
### 3.1 Pilot
[batch log]
### 3.2 Bulk
[per-batch logs]
### 3.3 Tail / edge cases
[per-item or per-category log]
## 4. Integrity audit
### 4.1 Automated checks
[results table]
### 4.2 Manual checks
[stakeholder sign-offs, edge-case reviews]
### 4.3 Verdict
PASS | PASS-WITH-CAVEATS | FAIL — with reasoning
## 5. Open questions for Phase 5
[explicit list of operational concerns or governance gaps surfaced during ingestion]
The report passes Phase 4's gate iff:
references/deduplication-strategies.md — exact, fuzzy, and semantic duplicate detectionreferences/integrity-audits.md — count parity, mapping completeness, sample fidelity patternsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub organvm/a-i--skills --plugin pentaphase-structural-architect