# Building Data Products with AI

> Source: <https://www.dataproduct.com/>
> Published: 2026-11-23 07:35:16+00:00

**Recommendation:** Define the data contract first — schema, quality checks and SLA — then give the coding agent that contract plus convention skills and marketplace access so it can build and test the pipeline end to end.
More in the playbook "Designing agent systems": <https://wpnews.pro/playbooks/agent-architecture>

[2:38](https://www.youtube.com/watch?v=np_U1lowwoc&list=PLGYsBO9R57z4)Episode 2

### Data Contracts and Data Products

Answers “What is a data product, and how does it relate to data contracts?”

A coding agent builds it. You give it three inputs: a **data contract** (what), [**skills**](https://www.dataproduct.com/skill-hub/) (how), and a **data marketplace** (the data to build on).

Building Data Products with AI: a coding agent builds the data product contract-first, from three inputs. A data contract as the what, defined together in a workshop, skills with your conventions as the how, and a data marketplace as the data to build on. One prompt, and the agent builds and tests the data product.

Then scroll on, and follow every step yourself.

Maxi (category manager) needs to know which brands barely sell. John owns the sales data. Each answer becomes part of the contract.

```
apiVersion: v3.1.0
kind: DataContract
id: slow-selling-brands
name: Slow Selling Brands
version: 1.0.0
status: draft
description:
  purpose: Find brands that barely sell
  usage: Brand talks, campaigns, assortment decisions
  limitations: Not for rating individual buyers
schema:
  - name: slow_selling_brands
    physicalType: table
    properties:
      - name: brand
        logicalType: string
        required: true
        authoritativeDefinitions:
          - type: semantics
            url: ontology/brand#brand-name
      - name: slow_selling_products
        logicalType: integer
        required: true
        description: No sale in the last 6 months, returns are not sales
      - name: latest_sold_date
        logicalType: date
        description: When a product of the brand last sold
    quality:
      - type: sql
        description: One row per brand
        query: SELECT COUNT(*) - COUNT(DISTINCT brand) FROM slow_selling_brands
        mustBe: 0
slaProperties:
  - property: freshness
    value: 1
    unit: d
team:
  name: sales
servers:
  - server: production
    type: snowflake
    account: acme-eu1
    database: SALES_PROD
    schema: slow_selling_brands_v1
```

Open skill libraries with skills, templates, and hooks that any coding agent reads. Pick one from the [skill hub](https://www.dataproduct.com/skill-hub/), then adapt it to your conventions.

Turns a data product from Entropy Data into a working dbt pipeline, and proves it works.

`entropy-data`` dbt``dbt-ol`` datacontract``entropy-data connection test` succeeds.`entropy-data dataproducts get`: name, owner, output ports.` entropy-data datacontracts get`, saved under `models/output_ports/v1/`.` dbt parse``dbt-ol run`` dbt test``datacontract test`
The agent searches the [data marketplace](https://www.entropy-data.com) for data products to build on, reads their contracts, and requests access. Search like the agent does.

Current articles with brand, category, and list price.

| sku | string | → SKU | 
| brand_name | string | → Brand name | 
| category | string |  | 
| list_price | decimal |  | 

Articles without a sale in the last six months.

| sku | string | → SKU | 
| last_sold_date | date |  | 
| stock | integer |  | 

All orders and line items, updated hourly.

Customer master data. Contains personal data.

Daily stock per article and warehouse.

Returned items with reason codes.

Sessions and page views from the web shop.

List price changes per article.

Illustrative marketplace. The two highlighted data products are the ones the agent builds on below. Hover them to preview their data contracts.

One prompt. The agent uses the contract, the skills from [`dataproduct-builder-demo`](https://github.com/entropy-data/dataproduct-builder-demo) (one of the libraries in the [skill hub](https://www.dataproduct.com/skill-hub/)), and the marketplace, then runs the pipeline and publishes the result.

The agent produced a complete dbt project, built on **articles-latest** and **shelf-warmers**: 41 brands in Snowflake, 3/3 dbt tests and 11/11 contract tests green.

```
with shelf_warmers as (select * from {{ ref('shelf_warmers') }}),
     articles      as (select * from {{ ref('articles_latest') }})

select
  a.brand_name::varchar         as brand,
  count(*)::integer            as slow_selling_products,
  max(sw.last_sold_date)::date as latest_sold_date
from shelf_warmers sw
join articles a on sw.sku = a.sku   -- same concept in the semantics
group by a.brand_name
```

`datacontract test --publish`, results published to Entropy Data
| Result | Check | Field | Type | 
|---|---|---|---|
| ✓ passed | Table exists | slow_selling_brands | schema | 
| ✓ passed | Field is present | brand | schema | 
| ✓ passed | Field is present | slow_selling_products | schema | 
| ✓ passed | Field is present | latest_sold_date | schema | 
| ✓ passed | Type is string | brand | schema | 
| ✓ passed | Type is integer | slow_selling_products | schema | 
| ✓ passed | Type is date | latest_sold_date | schema | 
| ✓ passed | Required: no null values | brand | schema | 
| ✓ passed | Required: no null values | slow_selling_products | schema | 
| ✓ passed | One row per brand | slow_selling_brands | quality | 
| ✓ passed | Freshness: within 1 day | latest_sold_date | SLA | 

`sku` in articles-latest and shelf-warmers links to the same SKU concept, so the agent joins on it. `brand` in the new contract links to the same Brand name as `brand_name` upstream.
Three steps, all open source or free. Then every new data product starts the same way: with a data contract.

The free Community Edition runs anywhere Docker runs. Register your existing data products, so the agent can find them, read their contracts, and request access.

```
docker compose up --detach
```

Fork a skill library from the hub as a base. Point Claude Code at one of your exemplary data products and let it adapt the skills to your platform, conventions, and policies.

```
> Adapt these skills to how we build data products. Use <our best data product repo> as the reference.
```

Write down what the data product must deliver, together with business, producers, and consumers, in the Data Contract Editor. Then tell your agent to implement it.

```
Implement.
```

Animated explainer videos by Entropy Data. Each episode answers one question about data products, data contracts, and semantics.

Answers “What is a data contract, and why do you need one?”

Answers “How do you put an existing table under a data contract?”

Answers “How do you use data contracts in a dbt project?”

Answers “How do AI agents know what your data means?”

A data product is a unit of data, code, and metadata, owned by one team, that offers its data to others through output ports. Each output port is described by a data contract. Data products are defined in the [Open Data Product Standard (ODPS)](https://www.entropy-data.com/learn/open-data-product-standard).

A data contract is a YAML document in the [Open Data Contract Standard (ODCS)](https://bitol-io.github.io/open-data-contract-standard/) that states everything guaranteed about a dataset: schema, semantics, data quality rules, SLAs, owner, terms of use, and where the data lives. The open-source [Data Contract CLI](https://cli.datacontract.com) tests real data against it.

Give a coding agent such as Claude Code three inputs: a data contract that says what to build, a skill library that says how to build it (pick one from the [skill hub](https://www.dataproduct.com/skill-hub/)), and a data marketplace with the data to build on. Then prompt it to implement the data product. The agent requests access to input data products, generates a dbt project, runs the pipeline, tests the data against the contract, and publishes the data product with test results and lineage.

Contract-first means agreeing on the data contract with the business and the consumers before any data is extracted or any pipeline is written. The contract becomes the specification the coding agent implements and the test the result must pass.

The [Open Data Contract Standard (ODCS)](https://bitol-io.github.io/open-data-contract-standard/) and the [Open Data Product Standard (ODPS)](https://www.entropy-data.com/learn/open-data-product-standard) from the Linux Foundation, [Apache Ossie](https://www.entropy-data.com/learn/what-is-apache-ossie) for semantics, [dbt](https://www.getdbt.com) and [Snowflake](https://www.snowflake.com) for the pipeline, the [Data Contract CLI](https://cli.datacontract.com) and [Data Product CLI](https://github.com/datacontract/dataproduct-cli) for testing and publishing, and [Entropy Data](https://www.entropy-data.com) as the data marketplace.
