entropydata-dbt-demo-builder
Demo-grade coding-agent plugin for building Trino dbt data products in the Stackable + Entropy Data demo (repo entropydata-dbt-demo: Trino, Airflow, dbt-ol, Entropy Data Community Edition).
This is the Stackable sibling of dataproduct-builder-demo (Snowflake + GitHub Actions). Same three skills and one batched question, but a data product is a folder in the demo repo and a generic Airflow DAG does the publishing, building, lineage, and testing. No CI workflow, no OpenLineage config, no secrets in the repo.
How a data product runs
dags/dataproducts/<id>/
├── <id>.odps.yaml # data product (ODPS)
├── <contract-id>.odcs.yaml # one data contract (ODCS) per output port
├── dbt_project.yml # optional dbt project on Trino
├── profiles.yml # credentials from env vars
└── models/
Push the folder to the in-cluster Forgejo repo (http://<node-ip>:30000/stackable/entropydata-dbt-demo, branch main). Airflow git-syncs dags/ and creates the DAG dataproduct_<id with - replaced by _>, which:
- publishes the ODPS and all ODCS files to Entropy Data,
- runs
dbt-ol build against Trino and ships OpenLineage to Entropy Data,
- runs
datacontract test --server trino --publish for each output-port contract.
The demo ships reference data products: tpch-source (raw TPC-H tables in tpch.tiny, ODPS + ODCS only), tpch-core (dbt staging views stg_* in "hive-iceberg".demo) and six marts such as tpch-order-summary (one dbt mart table that reads tpch-core via source(...) directly, one output port and data contract each). New data products typically read from tpch-core. Airflow chains the DAGs along the ODPS input ports, so a new data product runs right after its upstream data product.
Skills
- dataproduct-bootstrap scaffolds a new data product folder: ODPS, output-port ODCS,
dbt_project.yml, profiles.yml for Trino, sources + marts model layout, README. If the data product already exists in Entropy Data, it starts from that ODPS and contract.
- dataproduct-implement merges a data product and its contract with Entropy Data, adds input ports and requests access to them, implements the dbt models the ODCS contract describes, runs
dbt parse, then hands the folder to the Airflow DAG (push to Forgejo, trigger the DAG) or runs the same steps locally, and publishes the result.
- datacontract-test runs
datacontract test against output-port and input-port ODCS files to verify the live Trino data still matches the contract.
Install
The skills are plain markdown; any coding agent that can read instruction files can run them.
Claude Code
/plugin marketplace add https://github.com/entropy-data/entropydata-dbt-demo-builder
/plugin install entropydata-dbt-demo-builder@entropydata-dbt-demo-builder
OpenAI Codex
codex plugin marketplace add https://github.com/entropy-data/entropydata-dbt-demo-builder
Then open Codex, run /plugins, and pick entropydata-dbt-demo-builder.
GitHub Copilot CLI
/plugin marketplace add https://github.com/entropy-data/entropydata-dbt-demo-builder
/plugin install entropydata-dbt-demo-builder@entropydata-dbt-demo-builder
Other agents (Cursor, Aider, etc.)
Any agent that reads AGENTS.md picks up the routing manifest. Or copy the skills/ directory into the path your coding agent expects.
Connect
The skills talk to Entropy Data through a connection registered with the entropy-data CLI (requires uv).
Open Entropy Data at http://<node-ip>:30808, log in as demo-admin, create an API key (Organization Settings → API Keys → Create new API key), and add the connection:
uv tool install --upgrade entropy-data
entropy-data connection add default --api-key <your-api-key> --host http://<node-ip>:30808
Clone the demo repo from Forgejo (user stackable / stackable) and run the agent in its root:
git clone http://<node-ip>:30000/stackable/entropydata-dbt-demo.git
cd entropydata-dbt-demo
Use
Ask the agent:
Implement the data product url or id with its data contract.
Typical demo flow: create the data contract and the data product (one output port) in the Entropy Data web UI first. The implement skill bootstraps the folder from them, adds the input ports, implements the models, checks them with dbt parse, and gets the data product running: commit and push to Forgejo, then trigger the DAG in Airflow. The data product, its lineage, and its test results show up in Entropy Data. Running locally works too, with a kubectl port-forward to Trino and TRINO_HOST / DATACONTRACT_TRINO_HOST pointing at it.