add-datasource
Use for the implementation workflow that adds gcx CLI support for a datasource type not registered in internal/datasources/providers — query client, command…
Run a narrated, read-only demo tour of gcx for customer or colleague presentations. Showcases the breadth of gcx across every Grafana Cloud product area — resources, datasources, metrics, logs, traces, SLOs, alerts, synthetic monitoring, IRM, k6, fleet, and more. All commands
$ npx -y skills add grafana/gcx --skill gcx-demo --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/gcx-demoContext preview
The summary Claude sees to decide when to auto-load this skill.
Run a narrated, read-only demo tour of gcx for customer or colleague presentations. Showcases the breadth of gcx across every Grafana Cloud product area — resources, datasources, metrics, logs, traces, SLOs, alerts, synthetic monitoring, IRM, k6, fleet, and more. All commands
name: gcx-demo description: > Run a narrated, read-only demo tour of gcx for customer or colleague presentations. Showcases the breadth of gcx across every Grafana Cloud product area — resources, datasources, metrics, logs, traces, SLOs, alerts, synthetic monitoring, IRM, k6, fleet, and more. All commands are strictly read-only. Trigger when the user says "demo gcx", "show off gcx", "customer demo", "gcx tour", or "/gcx-demo". user-invocable: true argument-hint: "[--context <name>]" allowed-tools: Bash, AskUserQuestion
Deliver a narrated, read-only showcase of gcx across Grafana Cloud product areas. All commands are `list`, `get`, `query`, or `status` — nothing is created, modified, or deleted.
or `pull` with local paths. If a command requires write scope, skip it and note why.
what's interesting. Let actual output guide emphasis — don't recite a script.
on what's actually on the stack. Cover what's present; skip what isn't.
---
Always run this first. If `$ARGUMENTS` contains `--context <name>`, use that context for all commands. Otherwise use the active context.
gcx config current-context gcx config check
Announce the target stack before running anything else. If `config check` fails, stop and ask the user to fix the context.
---
Cover the following areas in an order that builds a coherent story. Run independent commands in parallel. Let what you find guide what you emphasize and how much time you spend on each area.
Good opening — shows breadth at a glance.
gcx providers list
gcx resources get dashboards -o wide --no-truncate gcx resources get folders --no-truncate gcx resources list-types
Dashboards are K8s resources — listable, pushable, validateable. The `URL` column in `-o wide` gives a direct deep link for every dashboard. `gcx resources list-types` reveals the full type catalog including any plugin-installed types (e.g. Adaptive Logs `DropRule`). `gcx resources list-examples <Kind>` produces a ready-to-push template for provider-registered kinds (try `slos` or `DropRule`) — core kinds like dashboards and folders don't ship examples, so don't demo it on those.
gcx datasources list
Every connected datasource — cloud, PDC-tunneled, third-party. All queryable from the CLI.
Discover datasource UIDs first (`gcx datasources list -o json`), then query whichever signal types are present — skip any that aren't on the stack.
gcx metrics query 'topk(5, count by (job) (up))' -d <PROM_UID>
gcx logs query '{service_name=~".+"}' --limit 5 -d <LOKI_UID>
gcx traces query '{}' --limit 5 -d <TEMPO_UID>Adapt the queries to what's interesting on this stack — pick label selectors, metric names, or trace filters that will return meaningful output. Mention `--open` (jump to Grafana Explore) and `--share-link` (shareable URL) as natural follow-ons.
Cloud-only. Requires `gcx login` (OAuth). Show the commands; run live only if the stack is healthy and the presenter has time — streaming output has variable latency.
gcx assistant prompt "What alerts are firing right now and why?" gcx assistant prompt "Which service owns checkout-latency?" --continue gcx assistant prompt "Summarize CPU on prod" --json gcx assistant investigations list gcx assistant investigations get <id> gcx assistant investigations get-narrative <id>
`prompt` runs natural language against the stack's live data — the Assistant already has context for dashboards, datasources, and alerts. `--continue` threads follow-ups via a stored context ID. `--json` emits a structured event stream for agent tools (Claude Code, Cursor) or scripts.
Investigations are autonomous multi-step LLM runs. The read-only views show lifecycle state (`get`) and the assistant's findings as prose (`get-narrative`). `--open` on `investigations get` deep-links into the Grafana UI.
If `investigations list` is empty, note it and skip the per-investigation views. Do not create one during the demo.
gcx slo definitions status gcx alert instances list --state firing gcx alert rules list --no-truncate
SLOs return SLI, error budget, and status in one command (add `-o wide` for burn rate) — scriptable for release gates. Firing alerts include labels, annotations, and runbook URLs. The rules list shows state and health at a glance; drill into a single rule with `gcx alert rules get <uid> -o json` when the audience wants the full PromQL, evaluation timing, or datasource UIDs — the list table doesn't carry those.
gcx synth checks list gcx synth probes list
HTTP and browser checks from a global probe network — the probes table shows each probe's region and online status; `-o json` adds coordinates and capabilities if the audience asks.
gcx irm oncall schedules list
Who's on-call right now. Pipeable into runbooks and automation.
Require cloud auth (a `cloud:` entry bound to the context via `gcx cloud login`, or `GRAFANA_CLOUD_TOKEN`) and a resolvable stack slug. Skip gracefully if not configured, and note what's needed.
gcx k6 load-tests list --no-truncate gcx fleet pipelines list --no-truncate
k6: load test catalog alongside the Grafana stack — correlate test timing with live metrics. Fleet
Grafana — in your terminal and your agentic coding environment. gcx works with Grafana Cloud, Enterprise, and OSS (Grafana 12+). See the compatibility matrix for details. Query production. Investigate alerts. Let the Assistant root-cause issues.
Repo: grafana/gcx
Use for the implementation workflow that adds gcx CLI support for a datasource type not registered in internal/datasources/providers — query client, command…
Use for the implementation workflow once a capability is already classified as a Grafana Cloud product provider (SLO, OnCall, Synthetic Monitoring, k6, ML,…
Regenerate the gcx marketing bento-box slide (slide.html) with verified commands from the current codebase. Builds a fresh binary and reflects against the…
Guides a contributor and their coding agent through adding or extending a capability in the grafana/gcx codebase: deciding whether a new command is needed and…
Reference for porting a Grafana Cloud product from the legacy grafana-cloud-cli into a gcx provider — adapter, schema/example registration, CRUD redirect…