DEDUPED Hot AI repos, turned into use cases Get 5 a day

How to build a KPI dashboard from warehouse SQL with an agent with DBT Charts

Have a coding agent turn your SQL queries into a validated, live-previewed YAML dashboard.

Who it is forAn analyst or data lead who has SQL for key metrics and wants a shareable dashboard without hand-building charts in a BI tool.

The problemVibe-coded dashboards pile up artifacts, frameworks, and transformations, which makes them hard to audit.

The outcomeA board YAML file under charts/ that validates, renders in a live preview, and shows the metrics from your SQL.

What you need first

  • Python 3.11 to 3.13
  • uv (or pip) to install the dbt-charts package
  • A warehouse adapter extra such as dbt-charts[snowflake] or dbt-charts[bigquery] if you want to run queries against your own warehouse
  • Warehouse credentials for your own data, or the Playground demo data at play.dbtcharts.com

Steps

  1. Run uv tool install dbt-charts to install the CLI.
  2. Run dct skills intro and follow the printed guidance so the agent knows the board format.
  3. Run dct init to bootstrap a project with charts/guide.yml.
  4. Run dct validate charts/guide.yml to check the board YAML before you preview it.
  5. Run dct serve and open the live preview to review the dashboard.

Prompt for your agent

Using the dbt-charts repo, install the CLI, run `dct skills intro`, and write a KPI board for the metrics described in <placeholder> as YAML under charts/. Run `dct validate` on the file and report any errors. Verify that the board renders in `dct serve`.

Caveat. dbt Charts is pre-1.0 and beta, and the README requires Python 3.11 to 3.13, so check your Python version before you start.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page