/entropydata-dbt-demo-builder:dataproduct-bootstrapfrom entropydata-dbt-demo-builder
Bootstrap a brand-new data product folder in the Stackable + Entropy Data demo repo in one go: `dags/dataproducts/<id>/` with ODPS, output-port ODCS, and a Trino dbt project (dbt_project.yml, profiles.yml, sources + marts model layout, README). If the data product already exists in Entropy Data (designed in the web UI), starts from its ODPS and output-port ODCS. The generic Airflow DAG picks the folder up after a push to Forgejo. Trigger when the user asks to start a new data product, scaffold a new dbt project in the demo, or "create a data product from scratch."
Ships in entropydata-dbt-demo-builder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scaffold a Trino dbt data product as one folder in the entropydata-dbt-demo repo, following the demo's conventions. Demo-grade: one batched question, one platform, no audits, no migration logic. No CI workflow and no OpenLineage config: the generic Airflow DAG (dags/dataproduct_dags.py) publishes, builds, ships lineage, and tests every folder under dags/dataproducts/.
For populating the contract schema and dbt model bodies, use the dataproduct-implement skill after this one.
After running, the demo repo contains:
dags/dataproducts/<data-product-id>/
├── <data-product-id>.odps.yaml
├── <contract-id>.odcs.yaml
├── dbt_project.yml
├── profiles.yml
├── README.md
├── .gitignore
└── models/
├── _sources.yml
└── marts/
└── _marts.yml
The existing data products in the demo are good references: dags/dataproducts/tpch-source/ (source-aligned, ODPS + ODCS only, no dbt), dags/dataproducts/tpch-core/ (dbt project with the cleaned staging views stg_* in "hive-iceberg".demo, input port from tpch-source) and six mart data products such as dags/dataproducts/tpch-order-summary/ (dbt project with one mart table that reads tpch-core via source('tpch_core', ...) directly, no staging layer of its own; one output port and one data contract).
${PLUGIN_ROOT}below refers to the root of this plugin, the directory that containsskills/. On Claude Code it is set automatically as${CLAUDE_PLUGIN_ROOT}; use that. On any other agent (Codex, Copilot CLI, etc.) it is unset; resolve it as../..relative to thisSKILL.mdfile's directory (i.e. the grandparent ofskills/<this-skill>/).
Before running Step 1, print this plan to the user verbatim:
Running dataproduct-bootstrap. I'll:
- Pre-check: confirm this is a checkout of the demo repo and the Entropy Data connection works.
- If the data product already exists in Entropy Data, start from its ODPS and data contract; otherwise ask you for parameters in one batched question (id, name, purpose, team, input data product, schema, table).
- Scaffold
dags/dataproducts/<id>/: ODPS, output-port ODCS, dbt_project.yml, profiles.yml, model layout, README, .gitignore.- Summarize what was scaffolded and how to get it running in Airflow.
Then proceed.
dags/dataproducts/ exists. If not, stop and tell the user to clone it from Forgejo: git clone http://<node-ip>:30000/stackable/entropydata-dbt-demo.git (user stackable / stackable).entropy-data connection test succeeds. If not, stop and tell the user to create an API key in Entropy Data (http://<node-ip>:30808, log in as demo-admin, Organization Settings → API Keys) and run entropy-data connection add default --api-key <key> --host http://<node-ip>:30808.Always use the entropy-data CLI for any connection to Entropy Data. Do not use the Entropy Data MCP server.
If the user already named an id (or dataproduct-implement sent you here), run entropy-data dataproducts get <id> -o yaml first. If it succeeds, the data product was designed in Entropy Data: fetch its first output port's contract with entropy-data datacontracts get <contractId> -o yaml and derive every parameter you can from the two documents (EXISTING = true):
DATA_PRODUCT_NAME, PURPOSE (description.purpose), TEAM_NAME from the ODPSOUTPUT_PORT_NAME, CONTRACT_ID from outputPorts[0]TABLE from the contract's schema[0].physicalName // nameSCHEMA from the contract's servers[].schema (the trino server)Only ask for what is still missing (typically INPUT_DATA_PRODUCT_ID, sometimes SCHEMA).
Otherwise run entropy-data teams list so you can offer the existing team ids. Then ask the user for these in a single prompt. Do not generate any files until you have all of them.
| Parameter | Description | Example |
|---|---|---|
DATA_PRODUCT_ID | Stable id, kebab-case, also the folder name | customer-orders |
DATA_PRODUCT_NAME | Human-friendly name | Customer Orders |
PURPOSE | One sentence: why this data product exists | Order history per customer for customer success. |
TEAM_NAME | Owning team id, must exist in Entropy Data | analytics-engineering |
INPUT_DATA_PRODUCT_ID | Upstream data product to read from (default tpch-core) | tpch-core, tpch-source or a mart such as tpch-order-summary |
SCHEMA | Iceberg schema in the hive-iceberg catalog (default: DBT_PROJECT_NAME) | customer_orders |
TABLE | First output-port table name | customer_orders |
If dags/dataproducts/<DATA_PRODUCT_ID>/ already exists, stop: this skill only handles new folders. Point the user at dataproduct-implement to add models to an existing data product.
Derive:
DATA_PRODUCT_DIR = dags/dataproducts/<DATA_PRODUCT_ID>DBT_PROJECT_NAME = DATA_PRODUCT_ID with - replaced by _ (dbt project and profile name)DAG_ID = dataproduct_<DBT_PROJECT_NAME>OUTPUT_PORT_NAME = <TABLE> with _ replaced by - (one output port per data product, like the TPC-H marts), unless taken from Entropy DataCONTRACT_ID = <DATA_PRODUCT_ID> (the output port's data contract shares the data product's id), unless taken from Entropy DataCONTRACT_FILE = <CONTRACT_ID>.odcs.yamlDATA_PRODUCT_NAME_URLENCODED = DATA_PRODUCT_NAME URL-encoded (Customer%20Orders), for the Superset Open In link in the ODPSODPS_FILE = <DATA_PRODUCT_ID>.odps.yamlINPUT_SOURCE_NAME = INPUT_DATA_PRODUCT_ID with - replaced by _INPUT_CONTRACT_ID, INPUT_CATALOG, INPUT_SCHEMA from the upstream data product: read dags/dataproducts/<INPUT_DATA_PRODUCT_ID>/<INPUT_DATA_PRODUCT_ID>.odps.yaml → first output port's contractId, then that contract's servers[0].catalog / servers[0].schema (tpch-source → tpch-source, tpch / tiny; tpch-core → tpch-core, hive-iceberg / demo). If the upstream folder is not in the repo, use entropy-data dataproducts get <id> -o yaml and entropy-data datacontracts get <contract-id> -o yaml instead.Templates live under ${PLUGIN_ROOT}/skills/dataproduct-bootstrap/templates/. Copy each one into DATA_PRODUCT_DIR, substituting the {{UPPER_CASE}} placeholders. Leave dbt Jinja such as {{ env_var('TRINO_PASSWORD') }} and the ${SUPERSET_URL} placeholder in the ODPS untouched (the DAG fills it in when publishing).
| Template | Destination (under DATA_PRODUCT_DIR) |
|---|---|
data-product.odps.yaml | <ODPS_FILE> |
contract.odcs.yaml | <CONTRACT_FILE> |
dbt_project.yml | dbt_project.yml |
profiles.yml | profiles.yml |
README.md | README.md |
.gitignore | .gitignore |
models/_sources.yml | models/_sources.yml |
models/marts/_marts.yml | models/marts/_marts.yml |
If EXISTING = true, do not seed the ODPS and ODCS from the templates. Write the fetched Entropy Data versions to <ODPS_FILE> and <CONTRACT_FILE> instead and only add what is missing:
dataProductBuilder entry in customProperties, the inputPorts entry for INPUT_DATA_PRODUCT_ID (name, version, contractId), an output port description (Table "hive-iceberg".<SCHEMA>.<TABLE>, built by dbt.) and the tags consumer-aligned, dbt.servers entry trino (as in the template) if there is none.Keep every field authored in Entropy Data as it is. After writing any ODCS file, run datacontract lint <file> yourself (the lint hook only fires for Edit/Write tool calls of an installed plugin) and fix lint errors. If datacontract is not on PATH yet, lint after dataproduct-implement Step 5 creates the venv.
End with this two-part recap. Use the Status enum: created, already present, skipped.
Part 1: outcome table.
| Artifact | Status | Details |
|---|---|---|
| Folder | … | <DATA_PRODUCT_DIR> |
| ODPS | … | <ODPS_FILE> (from Entropy Data / template), team <TEAM_NAME>, input port <INPUT_DATA_PRODUCT_ID> |
| Output-port contract | … | <CONTRACT_FILE> (from Entropy Data, or seeded with id + updated_at; server trino) |
dbt_project.yml | … | profile = <DBT_PROJECT_NAME> |
profiles.yml | … | Trino, hive-iceberg.<SCHEMA>, credentials from env vars |
| Model layout | … | models/_sources.yml, models/marts/ |
README.md | … | written |
.gitignore | … | written |
Part 2: next steps. Bullet list:
git add <DATA_PRODUCT_DIR> && git commit -m "Add data product <DATA_PRODUCT_ID>" && git push (remote http://<node-ip>:30000/stackable/entropydata-dbt-demo.git, branch main).dags/ within a minute or two. Trigger the DAG <DAG_ID> in the Airflow UI. It publishes the ODPS and ODCS to Entropy Data, runs dbt-ol build (lineage shows up in Entropy Data), and runs the data contract test.http://<node-ip>:30808/myorga/dataproducts/<DATA_PRODUCT_ID> to see the data product.trino-coordinator:8443, catalog hive-iceberg). For Snowflake, Databricks, BigQuery or Postgres, point the user at https://github.com/entropy-data/dataproduct-builder-dbt.DATA_PRODUCT_DIR exists, stop.dbt init. Use the templates here.profiles.yml is committed and reads every credential from env vars; never write a password or API key into any file.templates/README.md (opens in a new tab)templates/contract.odcs.yaml (opens in a new tab)templates/data-product.odps.yaml (opens in a new tab)templates/dbt_project.yml (opens in a new tab)templates/models/_sources.yml (opens in a new tab)templates/models/marts/_marts.yml (opens in a new tab)templates/profiles.yml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub entropy-data/entropydata-dbt-demo-builder --plugin entropydata-dbt-demo-builder3 skills in this plugin
/datacontract-testRun `datacontract test` against the ODCS contracts of a data product in the Stackable demo to verify the live Trino data still conforms to schema, quality rules, and freshness. Handles two kinds of contracts with different semantics: output-port contracts in `dags/dataproducts/<id>/*.odcs.yaml` (tested against this data product's `hive-iceberg` schema: "am I still producing what I promised?") and input-port contracts referenced by the ODPS `inputPorts` (tested against the upstream server: "is upstream still producing what I trusted?"). Trigger when the user asks to "test the data contracts", "verify the data product matches its contract", "are we still contract-conformant", "check upstream drift", or "run the contract tests"./dataproduct-implementGiven an Entropy Data data product URL or id, merge its ODPS and ODCS into `dags/dataproducts/<id>/` of the Stackable demo repo, wire and request access to its input ports, implement the Trino dbt models the contract describes, run `dbt parse`, then get it running: either push to Forgejo and trigger the Airflow DAG (publish, `dbt-ol build` with OpenLineage, `datacontract test`), or run the same steps locally, and publish the result. Demo-grade. Trigger when the user asks to "implement the data product <url>", "implement the data product <id> with its data contract", "build the dbt pipeline for this data product", or "scaffold dbt models from a data contract".Other plugins' skills for the same job