gcx: Skill for Claude Code

.claude/skills/add-provider/SKILL.md

add-provider is a skill for Claude Code from grafana/gcx. It costs 106 tokens per session (4,265 once invoked), scanned A, original, Apache-2.0.

An implementation workflow for adding a new Grafana Cloud product provider to a command-line tool. A provider is the code that connects the tool to one Grafana product, such as SLO, OnCall, Synthetic Monitoring, k6, or ML.

In plain words
What is it for?
Use it to discover a Grafana product's API and add its package, commands, configuration keys, and optional resource adapters.
Why use it?
It helps determine whether a product needs its own command support or can use the tool's existing generic resource handling, then guides the implementation when a provider is appropriate.

Skill for Claude Code ✓ vendor

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

This is grafana/gcx's own configuration. It tells Claude Code how to work on gcx itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything gcx configures →

About the project

gcx is a command-line tool that lets people and AI coding agents manage and inspect Grafana Cloud, Enterprise, and open-source instances. It provides access to dashboards, alerts, SLOs, metrics, logs, and traces, with workflows for alert investigation, dashboard management, GitOps, and observability setup. Its catalogue entries provide agent instructions and extensions for using gcx.

grafana/gcx · 590 stars · on GitHub · grafana.com

Reuse

Borrowing it

Nothing to install: this file belongs to grafana/gcx. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/grafana/gcx/main/.claude/skills/add-provider/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/grafana/gcx

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for add-provider

README.md
[![agentmods](https://agentmods.dev/badge/skills/grafana/gcx/add-provider/github.svg)](https://agentmods.dev/skills/grafana/gcx/add-provider)
Your own site
<a href="https://agentmods.dev/skills/grafana/gcx/add-provider"><img src="https://agentmods.dev/badge/skills/grafana/gcx/add-provider/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for add-provider

Your own site · 80×15
<a href="https://agentmods.dev/skills/grafana/gcx/add-provider"><img src="https://agentmods.dev/badge/skills/grafana/gcx/add-provider.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 116
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 117
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
  • medium Excessive Agency · line 269
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00106 $0.04265
Opus 5 $0.00053 $0.02132
Sonnet 5 $0.00021 $0.00853
Haiku 4.5 $0.00011 $0.00426

Measured 9d ago against content hash 4282ef747aec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-provider scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/add-provider/SKILL.md · 386 lines

How it starts

The opening of the file, as written. The whole thing — 386 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add Provider

Orchestrates adding a new Grafana product provider — from API discovery through verified implementation. Four stages, worked autonomously: the stage boundaries are checkpoints you satisfy, not approvals you wait for.

When to Use

  • User wants to add CLI support for a Grafana Cloud product
  • User says "add provider", "new provider", "integrate [product]"
  • A bead task references provider implementation

When NOT to use: if all you need is standard CRUD on a type that is externally accessible and discoverable on /apisgcx resources already covers that through dynamic discovery.

That test is about CRUD, not about the whole command surface. gcx dashboards and gcx alert are dedicated command trees over products that are on /apis, because their real operations (restore a version, export a policy tree) are not CRUD verbs. So a K8s-backed product can still warrant commands; run the placement analysis rather than stopping at "it's on /apis".

If the answer is a commands-only provider calling the K8s dynamic client, note that CONSTITUTION.md § Architecture Invariants makes internal/providers/dashboards/ the one documented exception (ADR 016) — a second requires explicit human approval and a CONSTITUTION change.

Entry paths

Invoked from integrate-with-gcx (the placement section already exists — necessity, command path, backend evidence, wiring, readiness). Then:

  • Skip Stage 1 entirely if the placement section carries the API surface, auth model and readiness verdict. Record those findings and move on; do not re-research or re-classify what is already settled, and do not ask for approval of decisions that were made with evidence.
  • Skip the Stage 2 decisions it already answers (tier, command surface, and whether the resource belongs in the resources pipeline). Answer only what is genuinely still open.
  • The Stage 1 and Stage 2 blocking approvals do not apply on this path: you do not wait for sign-off before implementing. Build autonomously. If something is genuinely unsettled, discover it, or ask one targeted question carrying the evidence and a recommendation — never fall back to a blanket approval gate.
  • Write documents only where they earn their keep. The Stage 2 artifacts are conditional on real architectural risk or a repository requirement, not mandatory paperwork:
    • ADR — only for a decision that is contested, hard to reverse, or departs from precedent: a new auth model, a client type the repo has not used, an adapter registration, a cross-cutting config change. "Reuse the stack token, hand-rolled HTTP client, commands-only" is the documented default across existing providers — record it in the PR body and move on.
    • Spec / per-stage documents — only when the work is genuinely staged across multiple PRs, which is what they exist to make resumable. A provider shipping in one change does not need them.
    • Smoke-test plan — always, because Stage 4 executes it and the repo requires real-instance verification. Keep it to the commands you actually implemented. This is a short command list in your working notes, not a standalone document and not a human gate.
  • So: do Stage 2d (the smoke-command list) first, then Stage 3, then Stage 4 verification as written. Skipping straight to Stage 3 leaves Stage 4a with no plan to execute.

Read the full file on GitHub · 386 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 386 lines · 106 tokens per session scan A 4282ef747aec

Subscribe to this mod's changes

add-provider is a skill published in the GitHub repository grafana/gcx (590 stars, last pushed today), licensed Apache-2.0. It adds 106 tokens to every session and 4,265 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

stripe-projects

Provision SaaS services + sync creds via Stripe Projects.

NousResearch/hermes-agent · 15 tokens

azure-eventhub-dotnet

Azure Event Hubs SDK for .NET. Use for high-throughput event streaming: sending events (EventHubProducerClient, EventHubBufferedProducerClient), receiving events (EventProcessorClient with checkpointing), partition management, and real-time data ingestion. Triggers: "Event Hubs", "event streaming"…

microsoft/skills · 94 tokens

azure-mgmt-botservice-dotnet

Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".

microsoft/skills · 78 tokens

django-storages-s3

Use when configuring Django to store static and media files on AWS S3 with django-storages. Invoke when working with the STORAGES setting, S3 buckets, presigned URLs, CloudFront, or boto3-backed file storage in settings.py. Configures the Django 4.2+ STORAGES dict, public/private custom backends, presigned GET/POST…

Jeffallan/claude-skills · 138 tokens

wikipedia

Search and read Wikipedia via x wkp — MediaWiki API, no API key, zero install; query, extract, suggest, and DDG route in one module. Load for wiki, wikipedia, encyclopedia lookup, article summary.

x-cmd/x-cmd · 49 tokens

cve

Look up CVE records via x cve — cached, zero-API-key, daily xz TSV. Load for cve, vulnerability id, kev, epss, nvd, cvelist, or security advisory.

x-cmd/x-cmd · 49 tokens