# semprini-data-product-templates — Claude Instructions ## What this is Data product templates, one folder per product class, owned by the data product engineering teams. Each template is a contract (its `README.md`), a set of `{{placeholder}}` files, a worked `example/`, and a generation agent. See [README.md](README.md) for the catalogue and how the templates sit between the modelling teams and the data platform team. ## Rules - A template's `README.md` is its contract. Change the files and the contract together. - Every template's `example/` must deploy and pass `uv run data-domain test` on the current domain platform. Run it from a domain repository after any change, and record the date and result in the template README. - Products are not stored here. They are generated into the domain repository that runs them. - Templates meet the domain platform's product contract (semprini-data-domain `README.md`, *The product contract*). Do not work around it here: raise the need with the data platform team. - Model gaps go to the modelling team's repository, not into a template. - Templates never carry credentials. Use the variables the platform substitutes (`${ODS_PASSWORD}`, `${DOMAIN}`). ## Agents | Command | Agent | Purpose | |---|---|---| | `/agent-canonical-product` | `.claude/agents/agent-canonical-product.md` | Generate, deploy and test a canonical (`domain-aligned`) product from a model declaration | The MD-DDL modelling agents (`/agent-ontology`, `/agent-architect`, ...) live in each domain's model repository. ## Layout ``` canonical_data_product/ Canonical template: README.md contract, template files, example/ .claude/agents/ One generation agent per template .claude/commands/ Command wrappers for those agents ``` ## Setup layout During setup this repository is a submodule of semprini-data, next to `semprini-data-domain` (the domain platform) and `semprini-domain-digital-datamodel` (the Digital Core model). From a domain repository beside semprini-data, the canonical example is at `../semprini-data/semprini-data-product-templates/canonical_data_product/example`.