/open-dashboard:document-databasefrom open-dashboard
Writes or updates database.md files that document SQL datasources: table/column meanings, filter values, units, time zones, and traps. Activates on phrases like 'document this database' or after connecting a new source.
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.
databases/<source>/database.mdOne file per datasource, named after its key in open-dashboard.config.ts.
It is to a database what AGENTS.md is to a codebase: what a newcomer — you,
next time — needs before writing a query. The Data sources page shows it beside
the schema: table notes on each table's card, column notes under each column.
# shop
What this database is, where the data comes from, how fresh it is, the time
zone of its timestamps. A few sentences.
## Notes
- **Revenue** = SUM(order_items.quantity * order_items.unit_price) over
`orders.status = 'paid'`. Shipping is not revenue.
- Refunded and cancelled orders stay in `orders`; filter on `status`.
## Tables
### orders
One row per order.
- `status` — `paid`, `refunded`, `cancelled`.
- `ordered_at` — local wall-clock time as text, no zone.
What the page reads from it — everything else is plain Markdown:
# <name> is the title; the text before the first ## is the overview.## section is shown as written, in the panel beside the tables —
except ## Tables (or 資料表 / 数据表 / テーブル / 테이블).## Tables, each ### <table> (schema.table where there are schemas)
goes on that table's card. In its lists, an item that starts with a
`column` becomes that column's note; other text describes the table.code, bold, links. No HTML,
no images.pnpm exec open-dashboard schema <source>
pnpm exec open-dashboard query --source <source> "SELECT status, count(*) FROM orders GROUP BY 1"
pnpm exec open-dashboard query --source <source> "SELECT min(created_at), max(created_at) FROM orders"
Look for what a query writer gets wrong without being told:
orders.channel vs customers.acquisition_channel).Write only what the data shows or the user told you. When a meaning is a guess,
ask — or mark it (unconfirmed) and say so in your reply. Never invent a value.
Keep it short: a note per column that needs one, not one per column. Columns
whose names say everything (id, created_at in UTC) need nothing.
When writing a dashboard teaches you something about the data that the file does not say, add it. The page reloads it live.
Say what you wrote, and list anything marked unconfirmed for the user to check.
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-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.Other plugins' skills for the same job