Authoring Data Model

Use when authoring a data model document — the persistence/domain model of stored data: typed entities, relationships + cardinality, keys/constraints, indexes, normalization, the storage choice, and lifecycle. Guides the producer through the METHOD, not the outline: deriving entities from the feature-spec's nouns + access patterns, detecting the paradigm and modeling in it (relational, document/NoSQL access-pattern-first, graph, wide-column, key-value), making integrity rules explicit (keys, constraints, cardinality + referential rule), justifying each index by an access pattern, and amending an approved model as a versioned, migration- planned delta — so an engineer can build + query the schema. Composes with a data-model template tool + a deep-research capability. Assumes the upstream feature-spec (+ architecture-doc) — never a blank page. Not the API wire contract (the api-spec references these entities downstream, one-directional), not the implementation/DDL, and not reviewing a finished data model.

bm629 ed5466a 4 files · 38.6 KB Updated

File contents

bm629/agent-skills/tree/main/skills/authoring-data-model commit ed5466a131

Frequently asked questions

npx skillmds@latest add bm629/authoring-data-model