Appearance
Building dashboards with Claude Code
The Diver CLI comes with a skill for Claude Code. It teaches Claude how to write *.diver.yml files, lay out a dashboard and choose visualizations, and to check its work with diver validate and diver preview.
To build dashboards in Claude without a project or the CLI, connect Claude to Diver instead.
Install the skill
Run this in your project, for example your dbt project:
bash
diver skill installThe skill is saved in .claude/skills/diver/SKILL.md at the root of the git repository. Commit it, so everyone on your team who uses Claude Code in the project gets it.
To use the skill in all your projects instead, install it in your home directory:
bash
diver skill install --globalAsk for a dashboard
Start Claude Code in the project and describe what you need:
text
Build a dashboard for the sales team with this month's revenue, orders and
average order value, and revenue per week by channel.Claude reads your models to find the right tables, writes the file, validates it and previews it. It gives you the preview links, so you can review the dashboard privately. Claude doesn't publish unless you ask it to.
Claude can't see the charts it previews. If a chart shows an error or unexpected data, tell Claude which one.
Keeping the skill up to date
The skill is written for the version of the CLI that installed it. When you upgrade the CLI, the next diver preview, diver publish or diver validate updates the skill and tells you:
text
Updated the Diver skill in .claude/skills/diver/SKILL.md to diver 0.4.0. Commit it to share it with your team.You can add your own guidance to the skill, such as your team's naming conventions. The CLI then leaves it alone and tells you when a newer skill is available. Run diver skill install --force to replace it, and add your changes again.
The CLI never replaces a skill with an older one. If a teammate installed the skill with a newer CLI, the CLI asks you to upgrade instead.