Grafana Dashboard Builder — Claude Code plugin
A Claude Code plugin to design, generate, preview, and quality-grade Grafana dashboards as
code using the Grafana Foundation SDK
(TypeScript, Go, or Python) and Playwright for
rendering — both the Playwright MCP and the Playwright CLI are supported: the bundled MCP is
preferred, and the plugin falls back to the CLI scripts when MCP isn't available. It includes a
rubric-based quality-and-taste critic so dashboards are judged consistently, not by vibes.
What it does
describe what to monitor
→ pick the right panels (panel-selection-advisor skill)
→ build it as code (grafana-foundation-sdk skill — TS / Go / Python)
→ provision + screenshot (dashboard-preview skill — Playwright MCP or CLI)
→ yes/no quality check (dashboard-quality-rubric skill — renders + checks code)
→ apply the "what to improve" fixes and repeat until the verdict is PASS
Already have a dashboard? Bring it into the as-code workflow:
existing dashboard JSON / URL
→ reverse it into SDK code (dashboard-to-code skill — TS / Go / Python)
→ verify the round-trip (regenerate JSON, diff against the original)
→ edit, preview, and grade (from here it's the same loop as above)
Components
| Type | Name | Purpose |
|---|
| Skill | grafana-foundation-sdk | Build dashboards as code in TypeScript, Go, or Python; scaffold + provision scripts. |
| Skill | dashboard-to-code | Convert an existing dashboard JSON → Foundation SDK code (TS / Go / Python), with a round-trip check. |
| Skill | panel-selection-advisor | Map the metrics you want to track to the right visualization. |
| Skill | dashboard-preview | Provision to Grafana and screenshot with Playwright MCP/CLI. |
| Skill | dashboard-sync | Fetch an existing dashboard from a Grafana URL and push one back — via Playwright. |
| Skill | grafana-admin | Folders & dashboard lifecycle (create/move/delete) — Grafana MCP/CLI for token auth, Playwright for SSO. |
| Skill | dashboard-quality-rubric | Yes/no rubric: renders with Playwright + checks code, returns PASS/FAIL + what to improve. |
| Agent | grafana-dashboard-architect | End-to-end: design → build → preview → self-grade. |
| Agent | dashboard-taste-critic | Independent, honest review against the rubric. |
| Command | /create-dashboard <what to monitor> | Run the full build-and-verify loop. |
| Command | /update-dashboard <url or file> — <change> | Fetch (Playwright), edit, push back, re-check. |
| Command | /convert-dashboard <json / url / uid> [language] | Reverse an existing dashboard JSON into Foundation SDK code, verified by round-trip. |
| Command | /review-dashboard <url / json / uid> | Grade an existing dashboard (fetches from a URL via Playwright). |
| Command | /provision-dashboard <json> [url] [api|playwright] | Push a dashboard to Grafana via Playwright or the API. |
| Command | /grafana-admin <action> <args> | Create/delete folders, move/delete dashboards. |
| MCP | playwright | Browser automation for rendering, fetching, pushing, and screenshots. Bundled MCP is preferred; the bundled Playwright CLI scripts (scripts/) are the fallback when MCP is unavailable. |
| MCP | grafana | Official Grafana MCP for token-auth management (starts only when grafana_token is set). |
| Example | examples/observability-stack | Grafana + Prometheus + synthetic metrics to test against. |
| Example | examples/checkout-dashboard | A complete golden-signals dashboard built for that stack. |
Install
This repo is both a plugin and a single-plugin marketplace.
# In Claude Code:
/plugin marketplace add neelneelpurk/grafana-dashboard-developement-plugin
/plugin install grafana-dashboard-builder@grafana-dashboard-marketplace
Or load it directly for a session: claude --plugin-dir /path/to/this/repo.
Install just the skills (without the plugin)
Every skill under skills/ is a self-contained Agent Skill
(SKILL.md + its own scripts/) and can be installed on its own with the
skills CLI, no plugin install required:
# Install every skill in this repo
npx skills add neelneelpurk/grafana-dashboard-developement-plugin
# Or install just one, e.g. only the Foundation SDK builder skill
npx skills add neelneelpurk/grafana-dashboard-developement-plugin/skills/grafana-foundation-sdk