"Digital Core" is to be the name of a canonical data product the domain will run, so the domain itself is Digital: its title, description and owner address in domain.md, the back-link heading of every entity, enum and product file, and the README, CLAUDE.md, Copilot instructions and package description. A breaking change by MD-DDL's test: a product generated from 1.0.0, such as Canonical Party, names its domain, and would come out different now. So version 2.0.0. v1.0.0 is tagged on the commit Canonical Party was generated from, which was never tagged. Lint: no findings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.7 KiB
semprini-domain-digital-datamodel — Claude Instructions
What this is
The MD-DDL model of the Digital 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.