Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

slo-investigate

Skill by grafana

Diagnoses a breaching Grafana SLO using gcx commands. It covers root cause, dimensional breakdown, alert rule correlation and runbook access, for operators who are investigating an SLO that is breaching or burning its error budget.

  • Score 77
  • 843 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install slo-investigate

Built from the published package, never by AI.

git clone --depth 1 https://github.com/grafana/gcx /tmp/gcx && mkdir -p ~/.claude/skills && cp -r /tmp/gcx/claude-plugin/skills/slo-investigate ~/.claude/skills/slo-investigate

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install slo-investigate in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The slo-investigate skill diagnoses a Grafana SLO that is breaching or burning its error budget. It uses gcx commands to read the SLO definition and status, render a timeline, and break the SLI down by dimension with PromQL queries against the destination datasource. It also finds related alert rules and extracts runbook and dashboard URLs. If a runbook is hosted on GitHub and gh is available, it can fetch the runbook content.

The workflow stops early with a short health report when the SLO status is OK. It branches to a NODATA diagnosis when recording rule metrics are missing. The output lists the target, SLI, error budget, burn rate, worst dimension, related alerts and next actions. It is written for experienced operators who want the root cause without extra explanation. The source points to slo-check-status for status overviews and slo-optimize for tuning.

Written from the project's SKILL.md and checked against it.

What it can do

  • Retrieve SLO definitionReads the SLO query type, objective, window and annotations with gcx slo definitions get.
  • Check statusShows SLI, error budget, burn rate and status with gcx slo definitions status.
  • Render timelineShows a graph of the SLO over one hour or 24 hours to find when the breach started.
  • Dimensional breakdownRuns PromQL queries grouped by labels to find which dimension drives the error rate.
  • Alert rule correlationFinds alert rules related to the SLO by name or by the SLO UUID label.
  • Runbook accessExtracts runbook and dashboard URLs and can fetch GitHub runbook content with gh.
  • NODATA diagnosisLists likely causes and checks when recording rule metrics are unavailable.

What you need

  • gcx CLI
  • An SLO defined in Grafana
  • A Prometheus datasource for metric queries
  • gh CLI, optional, for fetching GitHub runbooks

Try asking

  • Investigate why my checkout latency SLO is breaching
  • Show the error budget timeline for SLO abc123 over 24 hours
  • Which cluster drives the error rate on my API availability SLO?

Good to know

  • Remote-write stacks have no scrape targets, so up-based checks return nothing.
  • Recording rules can take 1 to 2 minutes to evaluate after an SLO is created.
  • Runbook content is fetched only if gh is authenticated; otherwise only the URL is reported.
  • A known issue can leave the datasource type blank in list payloads.

Security check

B
  • Allowed to use Bash without limitsIn SKILL.md

Checked automatically: claude-plugin/skills/slo-investigate/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Bash

Alternatives to slo-investigate

All alternatives →
deploy-release-testvercel
94

Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.

AAA Skill 144k
deepeval-tracingconfident-ai
94

Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.

AAA Skill 20k
azure-container-registry-cligithub
94

Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.

AAA Skill 42k
crabbox-appsopenclaw
94

Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.

AAA Skill 395k
gke-batch-hpcgoogle
94

Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.

AAA Skill 25k
gke-cost-analysisgoogle
94

Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.

AAA Skill 25k

Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli

slo-investigate: common questions

When should I use slo-investigate?

Use it when an SLO is breaching or burning its error budget. The source says to use slo-check-status for a status overview and slo-optimize for tuning.

What does it report when an SLO status is OK?

It reports the SLI, error budget remaining, burn rate, and 1 hour and 1 day SLI values, then says no action is needed.

What happens if an SLO has no groupByLabels?

It tries common dimensions such as cluster, namespace, service, endpoint and status_code, and reports which ones return data.

How do I install slo-investigate?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is slo-investigate free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is slo-investigate safe to use?

It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use bash without limits). Review the code before you install. How grades work.

What are alternatives to slo-investigate?

Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.

slo-investigate Install

Add to stack

Loading.