Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
Grafana Labs avatar

Gcx

  • 524 repo stars
  • Updated August 4, 2026
  • grafana/gcx

gcx Claude Code Plugin

About

gcx Claude Code Plugin. Covers setup, configuration, and when-to-use guidance from upstream documentation for claude-plugin.

  • [Claude Code](https://claude.ai/claude-code) installed
  • Grafana 12+ instance with API access
  • `.claude-plugin/` - plugin manifest and marketplace metadata
  • `agents/` - Claude-facing specialist personas
  • **Debugging a production incident:**

Gcx by the numbers

  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

gcx capabilities & compatibility

Capabilities
claude plugin quick start · claude plugin when to use guidance · claude plugin integration patterns
/plugin marketplace add grafana/gcx
/plugin install gcx@gcx-marketplace

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars524
Last updatedAugust 4, 2026
Repositorygrafana/gcx

How do I use claude-plugin correctly?

gcx Claude Code Plugin

Who is it for?

Teams implementing claude-plugin workflows from the catalog.

Skip if: Skip when requirements clearly match a different specialized stack.

When should I use this skill?

User asks about claude-plugin, gcx claude code plugin.

What you get

Working claude-plugin setup with validated configuration and next steps.

README.md

gcx Claude Code Plugin

A Claude Code plugin that gives AI agents deep knowledge of gcx — the kubectl-style CLI for managing Grafana resources. With this plugin, Claude can set up gcx, scaffold resources-as-code projects, generate and import Grafana resources, manage dashboards, explore datasources, investigate alerts, debug live systems, work with SLOs and Synthetic Monitoring, and drive full GitOps workflows without hand-holding.

Prerequisites

  • Claude Code installed
  • Grafana 12+ instance with API access

gcx will be installed by the setup-gcx skill if not already present (requires Go v1.24+).

Installation

Run these two commands inside Claude Code:

/plugin marketplace add grafana/gcx
/plugin install gcx@gcx-marketplace

The first command registers this repository as a marketplace. The second installs the plugin from it. Claude Code will pick it up immediately — no restart needed.

To update the plugin later:

/plugin marketplace update gcx-marketplace
/plugin install gcx@gcx-marketplace

Quick Setup

Once the plugin is installed, ask Claude to configure gcx:

/setup-gcx

This skill walks through creating a named context pointing at your Grafana instance, verifying connectivity, and confirming your credentials are working.

Skills

claude-plugin/skills/ is the current canonical portable Agent Skills bundle for gcx. The Claude plugin consumes that tree directly today, and the generic .agents installer exposed by gcx skills install reads from the same source.

Claude-specific packaging remains under:

  • .claude-plugin/ — plugin manifest and marketplace metadata
  • agents/ — Claude-facing specialist personas

Do not add distributable gcx skills under repo-local .agents/skills/. Tools that follow the .agents convention treat that path as repo-context guidance for working on this repository, not as a globally installable skill bundle.

Skills are triggered automatically when you describe what you want. You do not need to invoke them by name. The table below is the current inventory of the canonical portable skill bundle.

Skill Purpose
setup-gcx Install gcx if needed, configure authentication, and verify connectivity to Grafana
gcx Use gcx as the default control plane for Grafana resources and queries
scaffold-project Scaffold a new gcx resources-as-code project
generate-resource-stubs Generate typed Grafana resource stubs as Go code
import-dashboards Import existing Grafana dashboards into Go builder code
create-dashboard Design and create dashboards with datasource discovery and snapshot-based visual iteration
manage-dashboards Operate existing dashboards: list, search, pull, push, validate, promote, restore, delete, and snapshot
explore-datasources Discover datasources, metrics, labels, and log streams
investigate-alert Investigate why a Grafana alert is firing and what it impacts
debug-with-grafana Run a structured diagnostic workflow across metrics, logs, and dashboards
diagnose-entity-graph Diagnose Knowledge Graph problems: missing entities, missing edges, broken trace context propagation, service-name collisions
slo-check-status Check SLO health and summarize current status
slo-investigate Diagnose why a specific SLO is breaching or alerting
slo-manage Create, update, pull, push, and delete SLO definitions
slo-optimize Analyze SLO trends and recommend objective or alerting improvements
aio11y Browse conversations, manage evaluators and rules, set up online evaluation for LLM quality scoring (AI Observability)
synth-check-status Check Synthetic Monitoring health, status, and trends
synth-investigate-check Diagnose why a Synthetic Monitoring check is failing
synth-manage-checks Create, update, pull, push, and delete Synthetic Monitoring checks
gcx-observability Roll out end-to-end observability: instrumentation, SLOs, alerts, synth, k6, IRM, dashboards, and cost optimization
gcx-demo Run a narrated, read-only demo tour of gcx across every Grafana Cloud product area — for customer or colleague presentations

Agents

Agents are specialist personas invoked automatically for multi-step tasks.

Agent Purpose
grafana-debugger Autonomous debugging specialist — runs the full diagnostic workflow, correlates signals across datasources, and produces a root-cause report

Plugin Structure

claude-plugin/
├── .claude-plugin/
│   └── plugin.json           # Plugin manifest
├── agents/
│   └── grafana-debugger.md   # Claude-specific specialist agent
└── skills/
    ├── <skill-name>/
    │   ├── SKILL.md
    │   └── references/...    # Optional skill-specific docs
    └── ...                   # Canonical portable gcx skill bundle

Example Conversations

Debugging a production incident:

"Latency on the checkout service spiked 10 minutes ago. Debug it."

Claude will invoke grafana-debugger, run the debug-with-grafana skill, query Prometheus for latency metrics, correlate with Loki error logs, and return a root-cause analysis with the exact query commands used.

Dashboard creation workflow:

"Create a checkout service triage dashboard in the SRE folder."

Claude will invoke create-dashboard, verify the target context/folder, discover datasources and metric labels, author the dashboard, push it, render a PNG with gcx dashboards snapshot, inspect the image, and iterate on layout or queries before reporting the result.

Dashboard GitOps workflow:

"Pull all dashboards from staging, validate them, and push to production."

Claude will invoke manage-dashboards, pull from the staging context, run gcx resources validate, dry-run the push, and then apply to production — with folder ordering handled automatically.

Exploring what data exists:

"What Prometheus metrics are available for the payments service?"

Claude will use explore-datasources to list metrics, filter by relevant label selectors, and return sample queries you can use immediately.

Related skills

FAQ

What does claude-plugin do?

gcx Claude Code Plugin

When should I use claude-plugin?

User asks about claude-plugin, gcx claude code plugin.

Is this skill safe to install?

Review the Security Audits panel on this page before installing in production.

DevOps & CI/CDmonitoring

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.