/grafana-dashboard-builder:convert-dashboard <path to dashboard JSON, exported model, or Grafana URL / uid> [typescript | go | python]from Grafana Dashboard Builder
Convert an existing Grafana dashboard JSON into Foundation SDK code (TypeScript, Go, or Python), then verify the round-trip.
Ships in Grafana Dashboard Builder. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Convert the dashboard into Foundation SDK code. Input: $ARGUMENTS (a dashboard JSON file, an
exported model, or a Grafana URL / uid, with an optional target language).
Get the dashboard JSON.
{ "dashboard": {...}, "meta": {...} } export envelope, unwrap to the inner dashboard.uid: use the dashboard-sync skill to fetch the current JSON model via
Playwright (the browser session authorizes the read — no token needed).Convert to code with the dashboard-to-code skill, in the requested language (or the
sdk_language plugin option; default TypeScript). Map every dashboard-level setting, panel,
query, variable, threshold, and the row/grid layout to the builder API — read the
grafana-foundation-sdk skill's reference.md so method names and import paths are exact.
Preserve the original uid. Scaffold a project first if none exists
(skills/grafana-foundation-sdk/scripts/scaffold.sh <dir> <language>).
Verify the round-trip. Run the generated program to emit JSON and diff it against the
original model. Ignore benign differences (key order, SDK defaults, a dropped top-level id);
fix the code for any semantic gap — a missing panel, changed query, or lost threshold.
(Optional) Preview with the dashboard-preview skill to confirm the rebuilt dashboard
renders identically to the original.
Deliver: the generated SDK source, the regenerated JSON, and a note on any differences from the original model — including anything that had no builder equivalent and couldn't be mapped.
7-day visitors to each command page
6 commands in this plugin
/create-dashboardCreate DashboardBuild a Grafana dashboard as code (Foundation SDK) from a description, then preview and grade it./grafana-adminGrafana AdminManage Grafana folders and dashboards — create/delete a folder, move a dashboard, delete a dashboard./provision-dashboardProvision DashboardPush a dashboard JSON to Grafana — via Playwright (browser session / Import UI) or the HTTP API script./review-dashboardReview DashboardRun the yes/no quality & taste check on a Grafana dashboard and return a PASS/FAIL verdict plus what to improve./update-dashboardUpdate DashboardUpdate an existing Grafana dashboard — fetch it (from a Grafana URL via Playwright, or a local file), apply changes, push it back, and re-check.Claude Code refuses to install this plugin
.claude-plugin/plugin.json: userConfig.sdk_language: Unrecognized key: "enum"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.