grafana/gcx/import-dashboards
Claude Code and agent skill by grafana/gcx
- community
Checking that the SKILL.md file is still in the repository.
Converts existing Grafana dashboards to Go builder code via gcx (dashboards as code). Use to import, migrate, or reverse-engineer a live dashboard into code. For YAML/JSON resource files, use manage-dashboards.
Install
npx vskill@latest install grafana/gcx/import-dashboardsSKILL.md
The same SKILL.md was published earlier as grafana/gcx/import-dashboards.
Import Dashboards as Code
Import existing dashboards from a Grafana instance and convert them to Go builder code using gcx dev import.
Prerequisites
- gcx installed and configured with a Grafana connection
(gcx config check should show a valid context)
- The target Grafana instance must be reachable
Import Commands
Import All Dashboards
Writes Go files to imported/ (default). Each dashboard becomes a function returning *resource.ManifestBuilder.
Import a Specific Dashboard
Import to a Custom Directory
Import Multiple Resource Types
How It Works
The converter produces Go code using the grafana-foundation-sdk builder pattern — the same pattern used by dev generate and dev scaffold.
Output Format
Each imported file looks like:
Workflow: Import → Edit → Push
Common Issues
| Issue | Fix | |
|---|---|---|
| "no converter found" | The resource's API version has no converter; the error message names the unsupported version | |
| Auth error (401/403) | Run gcx config check to verify credentials | |
| Empty import | The selector matched no resources; check UID with gcx resources get dashboards | |
Build fails with undefined: cog (or another lowercase SDK identifier) | Older gcx versions omit SDK imports from generated files. Add the missing import github.com/grafana/grafana-foundation-sdk/go/<pkg> for each undefined identifier — variants is nested at go/cog/variants. Newer gcx emits complete imports | |
| Imported code doesn't compile for other reasons | Complex dashboards can produce converter output that needs manual fixup: build, read the first error, fix, repeat |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude-plugin/skills/import-dashboards/SKILL.md
Popularity
- Repository stars
- 830
- Repository forks
- 69
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/grafana/gcx/import-dashboards)