/open-dashboard:create-dashboardfrom open-dashboard
Creates dashboards, reports, KPI boards, and chart panels in an open-dashboard workspace. Walks through schema inspection, metric definition, and file generation under dashboards/.
Ships in open-dashboard. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill owns the workflow. The technical reference — file contract,
components, filters, formats, SQL per dialect — is the dashboard-authoring
skill. Read it before writing code.
You write files under dashboards/<id>/ only: index.tsx and one or more
.sql files. Never edit open-dashboard.config.ts here; if there is no working
datasource, switch to connect-database first.
pnpm exec open-dashboard sources
Every source should show ✓. If one fails, fix that first.
Read databases/<source>/database.md first if it exists: it says what the
tables mean, which values to filter on, units and time zones. Trust it over
guesses from column names.
pnpm exec open-dashboard schema # default source; add a name for another
Then look at real rows of the tables that matter:
pnpm exec open-dashboard query "SELECT * FROM orders ORDER BY created_at DESC LIMIT 5"
pnpm exec open-dashboard query "SELECT status, count(*) FROM orders GROUP BY 1"
pnpm exec open-dashboard query "SELECT min(created_at), max(created_at) FROM orders"
You are looking for: the time column of each fact table and its format (DATE, TIMESTAMP, ISO text, epoch integer); the money columns and their unit (cents?); status values that change what counts (refunded, cancelled, test, deleted); how the tables join; and the date range the data covers — a "last 30 days" default on data that ends last year shows nothing.
If you learn something here the file does not say (a status value, a unit),
add it to database.md — see document-database.
A dashboard is judged on whether its numbers are right, and most wrong numbers
come from an unasked question. One AskUserQuestion call, skipping what the
user already said, covering what the schema leaves open:
<Select>; two or three is plenty.If the user said "just make something useful", choose sensible definitions,
build it, put each definition in the query's -- description: line (the
inspector shows it), and list them in your reply so they can correct you.
Do not write them onto the page.
Never invent a number. Every figure on a dashboard comes from a query against the user's database. No hard-coded targets, benchmarks, "typical conversion rates", or placeholder values dressed up as data. If a target is wanted and does not exist in the database, ask for it.
kebab-case, short: sales-overview, signup-funnel, support-queue. Check
dashboards/ for collisions.
Write the plan as a short list before code — one line per panel: title, form, query. The usual shape, top to bottom:
<TimeRange> and at most a few <Select>s.<Stat>s: the numbers the reader checks first, each with
a comparison to the previous period when that means something.<LineChart>/<AreaChart> of the main measure over time.<BarChart>s (horizontal for rankings and long names), a
<PieChart> only for a part-of-whole with ≤ 6 slices.<Table> for top-N lists or recent records.Pick the form by the data's job (see dashboard-authoring → Choosing a panel).
Then list what this workspace already has — the built-in panels and any custom
charts under charts/, with the dashboards that use each:
pnpm exec open-dashboard charts # --json for machine-readable output
A custom chart in that list is used like a built-in. Only when nothing fits,
write one with the create-chart skill.
Six to ten panels is a good dashboard; twenty is a wall nobody reads.
dashboards/<id>/queries.sql, one -- name: block per query. Then run every
one before writing any JSX:
pnpm exec open-dashboard query --dashboard <id> --name revenue_by_month \
--param from=2026-01-01 --param to=2026-10-01 --param region=null
Look at the output: right columns, right types (types: line — numbers must
be number, not string), plausible magnitudes, sensible row count. A chart
needs the aggregation done in SQL — return tens or hundreds of rows, not raw
events.
What you just checked by eye, write down as -- expect: lines on the query —
rows > 0, unique month, share between 0 and 1, amount >= 0 — so the next
change is checked the same way without anyone looking. SQL another dashboard
already has belongs in queries/*.sql, named from both, not copied.
dashboards/<id>/index.tsxFollow dashboard-authoring. Name columns explicitly on every panel (x, y,
column, label, value) so check can verify them.
pnpm exec open-dashboard check <id> --all-params
It runs every query over every filter combination a build would store and
verifies every query a panel names exists, every column a panel names is in
that query's result, and every -- expect: rule holds. It must pass with no
errors. Treat "returns no rows", "defined but no panel uses it" and slow-query
warnings as things to fix or explain, then run open-dashboard lint <id>.
Then look at what you drew — check cannot see a cut-off label or a chart
that hides the point:
pnpm exec open-dashboard render <id> # the whole page → a PNG path
pnpm exec open-dashboard render <id> --panel "<title>" # one panel, larger
Read the PNG it prints. Fix what a reader would trip on — overlapping or
truncated labels, a flat or empty chart, a pie with too many slices, colours
too close to tell apart — and render again. Without Playwright it says how to
install it; if the user does not want it, open http://localhost:5473/d/<id>
and ask them to look.
Tell the user: the URL, one line per panel, every definition you assumed,
and anything that looked odd in the data (gaps, a partial current period,
outliers). Mention they can leave notes on any panel with the inspector and ask
you to /apply-comments.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub simonliu-ai-product/open-dashboard --plugin open-dashboard9 skills in this plugin
/apply-commentsUse this skill when the user has left notes on panels in the open-dashboard viewer and wants them applied — "apply my comments", "do the notes I left", "I marked up the dashboard". Walks every `@dashboard-comment` marker, makes the change each asks for, verifies it, and removes the marker./connect-databaseUse this skill when the user wants to connect this open-dashboard workspace to a database or data warehouse — "connect to our Postgres", "use this SQLite file", "here is the SQL Server connection string", "hook up BigQuery / Snowflake / ClickHouse / Oracle", "query these Parquet files", "add a datasource", or when `open-dashboard sources` reports a failure. Covers SQLite, PostgreSQL (and Supabase, Neon, RDS, Redshift, CockroachDB…), MySQL (and MariaDB, PlanetScale, TiDB…), SQL Server / Azure SQL, Oracle, DuckDB / Parquet / CSV, ClickHouse, BigQuery and Snowflake. Do NOT use for writing dashboards — that is `create-dashboard`./create-chartUse this skill when a dashboard needs a chart that none of the built-in panels draws — a radar, a bespoke gauge, a domain-specific diagram — and the user wants it written once under `charts/` and reused in dashboards. Also use it to fix or restyle an existing custom chart under `charts/`. Do NOT use it when a built-in panel fits (check `dashboard-authoring` → *Choosing a panel* first), for dashboards themselves (`create-dashboard`), or for colours and fonts across a dashboard (that is a theme in `themes/`)./create-themeUse this skill when the user wants dashboards to look different — brand colours, a company font, "red for up and green for down", softer corners, a darker page, "make the marketing dashboard match our deck" — or to change, rename or apply an existing theme under `themes/`. Covers writing `themes/<id>.json`, choosing which dashboards use it (`meta.theme`) and the workspace default (`theme` in the config). Do NOT use it for a chart that does not exist yet (`create-chart`), for a panel's layout or chart type (`dashboard-authoring`), or for what a chart shows./current-dashboardUse this skill to find out which dashboard, panel, and filter values the user is looking at in the open-dashboard viewer, so "this chart", "this dashboard", "the one I'm looking at", or an instruction with no dashboard named resolves without asking./dashboard-authoringTechnical reference for writing open-dashboard dashboards — the file contract, the named-query .sql format, parameters and filters, every panel component and its props, number formats, layout, and chart-choice rules. Use whenever writing or editing anything under `dashboards/<id>/` (index.tsx or .sql). The workflow for drafting a new dashboard from scratch is the `create-dashboard` skill.Other plugins' skills for the same job