grafanalisted
Install: claude install-skill chenwei791129/agent-skills
# Grafana (via gcx CLI)
Operate Grafana with [`gcx`](https://github.com/grafana/gcx), the official CLI:
dashboards, datasources, alerts, metrics/logs/traces. It replaces a Grafana MCP
server.
**Do NOT** use raw `curl` against the Grafana HTTP API, and **do NOT** use
`grafana-backup-tool` / `grizzly`. Those are pre-skill fallbacks. gcx gives you
structured output, pagination, error handling, and token-efficient output, and
its commands evolve with the Grafana version.
> **Environment assumption**: this skill targets **self-hosted (OSS /
> Enterprise)**. Auth uses a service account token + `org-id`. Grafana
> Cloud-only features (SLO, Synthetic Monitoring, IRM, k6) **do not apply** —
> when asked for those, say so and propose a self-hosted-viable alternative.
## 🔑 Core: discover before you act (the key to replacing MCP)
gcx has many commands and they evolve, so **never memorize or guess commands**.
Discover them with progressive disclosure to save tokens:
```bash
gcx help-tree --depth 1 -o text # Step 1: list all top-level groups (~30 lines)
gcx help-tree <group> -o text # Step 2: expand one group's subtree
gcx <group> <subcommand> --help # Step 3: see exact flags and args
```
When unsure of syntax, run those three steps. Do **not** web-search grafana.com
docs, and do not guess API paths.
## Prerequisite check
```bash
gcx --version
```
If missing, download a pre-built binary from the
[GitHub releases](https://github.com/grafana/gcx/releases) (no Go toolchain