julianobarbosa/claude-code-skills/grafana
Claude Code and agent skill by julianobarbosa/claude-code-skills
- community
Checking that the SKILL.md file is still in the repository.
Comprehensive skill for interacting with Grafana's HTTP API to manage dashboards, data sources, folders, alerting, annotations, users, teams, and organizations. Use when Claude needs to (1) Create, read, update, or delete Grafana dashboards, (2) Manage data sources and connections, (3) Configure alerting rules, contact points, and notification policies, (4) Work with folders and permissions, (5) Manage users, teams, and service accounts, (6) Create or query annotations, (7) Execute queries against data sources, or any other Grafana automation task via API.
Install
npx vskill@latest install julianobarbosa/claude-code-skills/grafanaSKILL.md
grafana-skill
Programmatically manage Grafana resources using TypeScript tools and HTTP API workflows.
Workflow Routing
| Workflow | Trigger | File | |
|---|---|---|---|
| DashboardCrud | "create dashboard", "update dashboard", "delete dashboard", "list dashboards", "export dashboard" | Tools/DashboardCrud.ts | |
| GrafanaClient | "grafana API", "grafana client", "TypeScript grafana" | Tools/GrafanaClient.ts | |
| ApiReference | "grafana API reference", "grafana endpoints" | References/ |
Tools
DashboardCrud CLI
GrafanaClient TypeScript Library
Authentication
Quick API Reference
| Resource | List | Get | Create | Update | Delete | |
|---|---|---|---|---|---|---|
| Dashboards | GET /api/search | GET /api/dashboards/uid/:uid | POST /api/dashboards/db | POST /api/dashboards/db | DELETE /api/dashboards/uid/:uid | |
| Folders | GET /api/folders | GET /api/folders/:uid | POST /api/folders | PUT /api/folders/:uid | DELETE /api/folders/:uid | |
| Data Sources | GET /api/datasources | GET /api/datasources/uid/:uid | POST /api/datasources | PUT /api/datasources/uid/:uid | DELETE /api/datasources/uid/:uid | |
| Alert Rules | GET /api/v1/provisioning/alert-rules | GET /api/v1/provisioning/alert-rules/:uid | POST /api/v1/provisioning/alert-rules | PUT /api/v1/provisioning/alert-rules/:uid | DELETE /api/v1/provisioning/alert-rules/:uid |
Reference Documentation
- [Dashboards](References/Dashboards.md): Complete dashboard CRUD, versions, permissions
- [DataSources](References/DataSources.md): Data source management, queries, health checks
- [Alerting](References/Alerting.md): Alert rules, contact points, notification policies
- [Folders](References/Folders.md): Folder management and permissions
- [Annotations](References/Annotations.md): Create, query, update annotations
- [UsersTeams](References/UsersTeams.md): User management, team operations
- [CommonPatterns](References/CommonPatterns.md): Error handling, pagination, utilities
Examples
Example 1: List and export dashboards
Example 2: Create dashboard from JSON
Example 3: Clone dashboard to another folder
Example 4: Restore dashboard version
Example 5: Programmatic bulk update
Error Handling
| Code | Description | |
|---|---|---|
| 200 | Success | |
| 400 | Bad request (invalid JSON, missing required fields) | |
| 401 | Unauthorized (invalid/missing token) | |
| 403 | Forbidden (insufficient permissions) | |
| 404 | Not found | |
| 409 | Conflict (resource already exists) | |
| 412 | Precondition failed (version mismatch) |
Tips
- Use UIDs over IDs: UIDs are portable across Grafana instances
- Include version for updates: Prevents overwriting concurrent changes
- Use `overwrite: true` carefully: Only when you want to force-update
- Service accounts over API keys: API keys are deprecated in newer Grafana versions
Gotchas
- Datasource permission: viewers can see the panel but get "query forbidden" if the datasource has explicit per-team permissions — confusing for non-admin users.
- Variable interpolation:
$__intervaland$__nameare interpreted differently in legacy vs newer query backends; same dashboard JSON behaves differently. - Provisioning datasources via YAML under
/etc/grafana/provisioning: edits via UI are silently reverted on file re-read; pick one source of truth. - API tokens are per-org — multi-org Grafana setups need separate tokens; a global "admin" token doesn't span orgs.
- Annotation queries with missing time-field return zero annotations without error — debug by checking the raw query response, not the panel.
- Alert rule state lives in the Grafana DB, not in Prometheus — rolling Grafana back loses alert state history.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/grafana/SKILL.md
Popularity
- Repository stars
- 84
- Repository forks
- 18
- 7-day trend score
- 22
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/julianobarbosa/claude-code-skills/grafana)