The MD-DDL model (domain, entities, enums, the Canonical Party product declaration) moves into its own repository, owned by the domain's modelling team. Engineering teams consume its product declarations and generate products from semprini-data-product-templates. Adds the MD-DDL agent wrappers (md-ddl init), pyproject with md-ddl, and README/CLAUDE.md describing the team split and the handoff interface. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2.7 KiB
semprini-domain-digital-datamodel — Claude Instructions
What this is
The MD-DDL model of the Digital Core domain, owned by the domain's modelling team. It
holds meaning only: entities, relationships, enums, governance posture and data product
declarations. Physical artifacts (DDL, schemas, jobs, products) are generated elsewhere, by
data product engineering teams, from the templates in semprini-data-product-templates.
See README.md for the team split and what engineering teams consume.
Rules for this repository
- Edit only
data_model/,handoffs/, and the docs. Never add physical artifacts here. - A model gap found while generating a product is raised against this repository and fixed
with
/agent-ontology; engineering teams do not patch around it in a product. - Bump
versionindata_model/domain.mdfor any change a product could depend on, and tag the release. Engineering teams pin tags, notmain. - Run
uv run md-ddl lint data_modelbefore committing; it must report no findings.
MD-DDL agents
MD-DDL is installed from PyPI (md-ddl, a dependency in pyproject.toml) and unpacked into
.md-ddl/ by uv run md-ddl init --no-instructions. The wrappers in .claude/commands/ and
.github/agents/ are committed; .md-ddl/ is not.
| Command | Agent | Purpose |
|---|---|---|
/agent-guide |
Agent Guide | Learning, navigation, concept explanation. Start here. |
/agent-ontology |
Agent Ontology | Domain discovery, entity modelling, source mapping. |
/agent-architect |
Agent Architect | Data product declarations, architecture discussion, ODPS manifests. |
/agent-governance |
Agent Governance | Standards conformance, compliance auditing, governance assurance. |
/agent-artifact |
Agent Artifact | Generic physical schema generation. Use it here only to explore; products are generated by the engineering teams' template agents, which override its choices. |
Scope every agent to data_model/.
Handoffs to engineering
When a product declaration is ready for generation, write handoffs/<product-slug>.md in the
MD-DDL handoff format (from, to, domain, domain_path, created, status: pending),
recording the scope and the decisions the template cannot derive from the model. The
engineering team's generation agent consumes it.
Key references
- MD-DDL specification:
.md-ddl/md-ddl-specification/(single file:MD-DDL-Complete.md) - Data product classes: specification section 2, Domains (
source-aligned,domain-aligned,consumer-aligned) - Examples:
.md-ddl/examples/ - Validation beyond syntax:
.md-ddl/guides/validation-tooling.md
Upgrade the standard with uv lock --upgrade-package md-ddl && uv run md-ddl init --no-instructions --force.