shepherdjerred/monorepo/grafana-helper
Claude Code and agent skill by shepherdjerred/monorepo
- community
Checking that the SKILL.md file is still in the repository.
Use Grafana's GCX CLI for dashboards, datasources, Prometheus metrics, Loki logs, Tempo traces, alert rules, and Grafana resource operations. Trigger for Grafana, GCX, dashboards, PromQL, LogQL, metrics, logs, traces, Tempo, alert rules, or observability investigations.
Install
npx vskill@latest install shepherdjerred/monorepo/grafana-helperSKILL.md
Grafana with GCX
Use Grafana's native gcx CLI. Inside shepherdjerred/monorepo, invoke it through toolkit so the tracked homelab context is selected consistently:
Use native gcx directly outside the monorepo or when explicitly requested. Do not recreate routine GCX capabilities with handwritten REST calls.
Discover before operating
GCX evolves quickly. Read help on the exact command instead of guessing flags:
Prefer --agent or -o json for machine-readable evidence. Use --json list where offered to discover selectable fields. Never enable --insecure-log-http-payload; it can expose authorization material.
Toolkit resolves GRAFANA_API_KEY automatically from the environment, a toolkit config locator, or its registered 1Password service-account backend. The tracked GCX configuration owns the homelab context; credential setup is documented in packages/toolkit/README.md. Do not run gcx login, print tokens, add credentials to arguments, or create another config store during normal repository work.
Query observability data
Toolkit exposes focused aliases for the three signal backends:
Start broad enough to establish scope, then narrow by service, namespace, deployment, endpoint, trace ID, and time window. Correlate signals rather than claiming a root cause from one log line or one metric spike. Record the exact query and time window in incident evidence.
For active alerts, distinguish the layers:
toolkit prom query 'ALERTS{alertstate="firing"}'shows firing Prometheus
series.
toolkit grafana alert rules listinspects Grafana-managed rule definitions
and evaluation state.
toolkit alerts list --state openshows the monorepo's durable alert
occurrence ledger.
An empty Grafana-managed rule list is not an outage when Kubernetes PrometheusRule resources and Alertmanager own alerting.
Inspect Grafana resources
Discover the command-specific flags first, then use native groups:
Use toolkit grafana api only when GCX has no typed command for a required read. Confirm the endpoint through current Grafana documentation or command help, keep credentials inside GCX, and validate returned data before drawing a conclusion.
Mutation boundary
Dashboard, datasource, alert-rule, and other resource changes are external mutations. Require explicit user authorization and identify the exact context, resource, and intended diff before writing.
GCX's resource workflow is the preferred mutation surface:
Pull and inspect current state first. Validate generated files and the target context, then apply only the authorized resource set. After a write, read the resource back and verify the relevant runtime signal separately; a successful API response does not prove a dashboard query, alert evaluation, or telemetry pipeline works end to end.
Failure handling
- A missing context or credential is a setup failure; repair the tracked
dotfiles path rather than bypassing it with an ad hoc token.
- A query error is evidence, not an empty result. Preserve stderr and the exit
code.
- If GCX lacks a capability, state the gap before using
grafana api; do not
silently fall back to an unvalidated curl recipe.
- Keep reads and writes distinct. Investigation does not authorize dashboard,
alert, annotation, or datasource changes.
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 repositoryCheckingpackages/dotfiles/dot_agents/skills/grafana-helper/SKILL.md
Popularity
- Repository stars
- 105
- Repository forks
- 8
- 7-day trend score
- 5
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/shepherdjerred/monorepo/grafana-helper)