/dpf-platform:dpf-data-architecture-stewardfrom dpf-platform
Maintains and explains the DPF data model via Prisma schema extraction, ERD mirroring in EA tool, drift detection, and lifecycle stewardship (retention, table growth).
Ships in dpf-platform. 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.
The Data Architect (AGT-BUILD-DA) owns the self-maintaining data architecture (EP-DATA-ARCH): the Prisma data model is mirrored into the EA tool as a live ERD that stays current as the schema evolves, and drift is surfaced as governed conformance findings.
Use this skill when someone — in Build Studio or on-demand in chat — asks to see, explain, or refresh the data architecture.
parsePrismaSchema reads schema.prisma into models, fields, relations, cardinality, and FK-index facts (apps/web/lib/build/code-graph/extractors/prisma-schema-adapter.ts).reconcileDataModelMirror projects those facts into the EA substrate as data_object elements + associated_with relationships, idempotently, under the system-owned Data Model view; it writes an EaSnapshot on material change and stops (with a conformance issue) on duplicate identity (apps/web/lib/ea/data-model-mirror-apply.ts)./ea/data-model (and the generic /ea/views/[id] renderer) with an evolution timeline.runDataArchitectureSteward runs deterministic drift detectors (FK-without-index, missing-inverse-relation, orphan-model, ignored-model) and reconciles them into self-healing EaConformanceIssue rows (apps/web/lib/ea/data-architecture-steward-apply.ts).runDataModelMirror composes all of this; it runs nightly (scheduled task data-model-mirror-nightly) and on demand (the "Generate data model now" action / this skill).
describe_model for fields, query_ontology_graph / explain_blast_radius for relationships and impact.EaConformanceIssue rows of the relevant issueType; cite the specific models.properties.sourceKey). Your enrichment — domain grouping, relationship naming — goes in coworker-owned annotation fields (EaViewElement.proposedProperties), never by editing mirror rows.principle_decide) and are recorded — they are not silently applied.The steward owns more than structure. Every night the same run also:
TableGrowthSample rows per table (heap / index / TOAST, live + dead tuples, rows in the last 24 h on the model's declared time axis).growth-without-disposition (a growing table with no /// @dpf declaration, or one whose disposition never removes rows) and payload-anatomy (TOAST dominates the relation — blobs living in a JSON column). Findings land in EaConformanceIssue beside the structural ones; a finding open for three consecutive nights files one fingerprinted backlog item (source data-growth)./// @dpf tag above each Prisma model and converged into the Postgres catalog as COMMENT ON TABLE at every portal boot (packages/db/src/model-metadata.ts, packages/db/scripts/apply-model-metadata-comments.ts). The retention sweep builds its policies from those comments (apps/web/lib/operate/retention/declarations.ts).EaConformanceIssue rows of type growth-without-disposition; cite table, rows/day and the 12-month projection from detailsJson.SELECT obj_description('"X"'::regclass, 'pg_class') on the install, or the /// @dpf line above the model. Never quote a TypeScript list./// @dpf lifecycle=… retention=… line before the migration. scripts/check-model-metadata-tags.mjs fails CI otherwise; the untagged baseline only shrinks.--update on the baseline once they merge.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dpf, prisma-schema, erd-mirror, data-model, schema-drift, data-architecture
npx claudepluginhub opendigitalproductfactory/opendigitalproductfactory --plugin dpf-platform88 skills in this plugin
/acquisition-brief-refreshKeep the acquisition brief current./ai-platform-posture-refreshReport AI platform and host health./architecture-alignment-sweepCompare delivered against recorded architecture./asset-inventory-reconciliationReconcile recorded against observed assets./books-period-advanceAdvance the open books period./build-sensitive-domain-requirementsBound sensitive-domain build requirements.Other plugins' skills for the same job