/open-dashboard:create-chartfrom open-dashboard
Creates custom SVG charts (radar, gauge, domain-specific) under charts/ for reuse in dashboards when built-in panels don't fit. Also fixes or restyles existing custom charts.
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.
A custom chart is one folder:
charts/<id>/
index.tsx default-exports defineChart({ … })
sample.sql optional: a named query the Custom charts page previews it with
It is used in a dashboard like a built-in panel, and gets the same frame for free: loading and error states, the inspector, notes for the agent, PNG/SVG download, edit-mode resize and move, and the dashboard's theme.
There are forty-one built-in panels, and the workspace may already have custom ones. List them all first:
pnpm exec open-dashboard charts # built-in + charts/, with the dashboards using each
Read dashboard-authoring → Choosing a panel for which form fits which job. A custom chart is for a form that is genuinely missing — not for a
restyled bar chart. If the user only wants other colours or fonts, that is a
theme (themes/<id>.json, edited on the Themes page), not a chart.
// charts/radar/index.tsx
import { defineChart } from '@open-dashboard/core'
interface RadarProps {
axis: string // a column: one spoke per distinct value
value: string // a column: the length along the spoke
series?: string // a column: one outline per distinct value
}
export default defineChart<RadarProps>({
name: 'Radar',
columns: ['axis', 'value', 'series'],
sample: { query: 'sample', props: { axis: 'category', value: 'revenue' } },
height: 340,
render: ({ rows, props, width, height, color, format }) => (
<svg width={width} height={height} role="img" aria-label={props.title}>
{/* draw from rows, sized to width × height */}
</svg>
),
})
The contract:
name — shown in the inspector and on the Custom charts page.columns — every prop whose value is a result column name. check reads
this list and fails when a dashboard names a column the query does not
return. Leave a column prop out and it goes unchecked.sample — a query in this folder's .sql files and props for it; the
Custom charts page previews the chart with it. Write sample.sql against the
real database, like any dashboard query — never invented rows.render receives rows, columns, run, props (title and query
included), width / height of the plot in px, color(i) and
format(value, format?). Return SVG (preferred: it exports as vectors) or HTML.defineChart is a literal object — check reads name, columns and sample
without running the file, so no spreads or computed values there.
The built-in panels follow these; a custom chart must too, or it will look wrong next to them:
color(i) (the dashboard theme's
palette, max 8 — fold the rest into "Other"). Text: var(--odd-ink),
var(--odd-ink-2), var(--odd-tick). Grid: var(--odd-grid). Up / down:
var(--odd-good) / var(--odd-bad). Never a hex code.format ('currency', 'percent', 'integer',
'currencyCompact' …) so the dashboard's locale and currency apply.-- description:.width × height. Nothing fixed-size; the panel is resizable.ChartTooltip from @open-dashboard/core is the one the
built-ins use. seriesColor, sequential, diverging, niceDomain,
linear and tickFormatter are exported too.import Radar from '../../charts/radar'
<Radar title="Revenue by category" query="category_revenue" axis="category" value="revenue" span={4} />
Import it with a default import from a relative path into charts/ — that
is how check finds its columns. title and query are required, like any
panel; span, height, drill and description work as usual.
pnpm exec open-dashboard check <dashboard-id>
Then open /charts/<id> in the viewer to see the sample, and the dashboard to
see it with real data. Check light and dark mode (the settings menu at the
sidebar foot) — a colour that only works on white is a hex code that slipped in.
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-dashboardUse this skill when the user wants a new dashboard, report, KPI board, or set of charts over their data in this open-dashboard workspace — "build me a sales dashboard", "I want to see signups per week and churn", "make a Grafana-style board for orders", "show me revenue by region", or anything that should land under `dashboards/`. Also use it to add several panels to an existing dashboard. Do NOT use for connecting a database (that is `connect-database`) or for editing the framework itself./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