# dbt Charts

> Instructions for an AI agent asked to build a dashboard, a chart, or a report from a dbt project. dbt Charts is an open, dbt-native language for dashboards: one YAML file holds a board's query, charts, and layout, versioned in git, validated in CI, and rendered by the open-source `dct` CLI.

## Do this first

    uv tool install dbt-charts && dct skills chart

`dct skills chart` is the whole hand-off. It teaches the board and chart grammar and the build-render-fix loop. Read it before you write any YAML.

## The CLI is the reference, not this site

It ships inside the version you just installed, so it can never describe a release you do not have.

- `dct init` bootstraps a project against a dbt profile, along with its AI and editor config.
- `dct skills chart` is the YAML reference; `dct examples` prints working boards.
- `dct validate` checks a board's schema and cross-references without touching the warehouse.
- `dct render` renders to SVG, HTML, PNG or PDF; `dct serve` serves the project with live reload.
- `dct cloud login` signs in to dbtCharts.com through the browser, and `dct cloud project connect <host>` (`github`, `gitlab`, `bitbucket`, or `git`) puts a repository's boards there. Connect prints the step that follows: usually `dct cloud connection create` and `dct cloud source map`, and only then `dct cloud project sync`, because a project synced before its sources are mapped renders every board against nothing.

## What the language expects of you

- A board is one YAML file. The query owns the data, including its grain, its aggregation and its ordering; a chart owns visual encoding only.
- Nothing is guessed. Handed data a chart cannot honestly draw, `dct` raises instead of picking a column or quietly aggregating, so read the error rather than working around it.
- Boards belong in Git beside the dbt models they read, and they review like the rest of the project.

## Elsewhere

- [/llms.txt](https://dbtcharts.com/llms.txt): this site's index, page by page
- [The docs index](https://docs.dbtcharts.com/llms.txt), and [the whole reference in one fetch](https://docs.dbtcharts.com/llms-full.txt)
- [dbt-labs/dbt-charts](https://github.com/dbt-labs/dbt-charts): the open-source engine and CLI
