# 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](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 `version` in `data_model/domain.md` for any change a product could depend on, and tag the release. Engineering teams pin tags, not `main`. - Run `uv run md-ddl lint data_model` before 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/.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`.