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…
Sets up production evaluation and guardrails for a DEPLOYED AI agent in Grafana Agent Observability, grounded in the agent's own code and its real ingested traffic. The judgment layer on top of the `agento11y` skill: it reads the agent's source (system prompt, tools, entrypoint)
$ npx -y skills add grafana/gcx --skill agento11y-prod-setup --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/agento11y-prod-setupContext preview
The summary Claude sees to decide when to auto-load this skill.
Sets up production evaluation and guardrails for a DEPLOYED AI agent in Grafana Agent Observability, grounded in the agent's own code and its real ingested traffic. The judgment layer on top of the `agento11y` skill: it reads the agent's source (system prompt, tools, entrypoint)
name: agento11y-prod-setup description: > Sets up production evaluation and guardrails for a DEPLOYED AI agent in Grafana Agent Observability, grounded in the agent's own code and its real ingested traffic. The judgment layer on top of the `agento11y` skill: it reads the agent's source (system prompt, tools, entrypoint) AND samples its live traffic via gcx, checks what evaluators/rules/guards already exist, then recommends only what's missing — online eval rules (score live conversations for regressions) and guards (warn-first request-path policies that redact / tool-filter and may later be promoted to deny). It drafts reviewable YAML and, only with explicit confirmation, applies via `gcx agento11y`. New guards are drafted in warn mode (safe on live traffic — warn records but never blocks). It DOES create stack-level objects — that is the point — but every write is confirmed. It never rewrites or redeploys the agent. Trigger on phrases like "set up production evaluation", "my agent is in prod what should I evaluate", "catch quality regressions", "add guardrails to my agent", "redact PII from my agent", "block dangerous tools", "set up online evals and guards". allowed-tools: Bash, Read, Write, Edit
The production counterpart to `agento11y-test-starter` (which runs pre-ship, on code alone, producing an offline test suite). This skill runs **after** ship, when the agent has real traffic, and sets up the two production surfaces the starter deliberately leaves out:
surface without hand-reviewing every conversation.
`deny`) in real time. A guard decides via one of three shapes: `evaluator_ids` (an evaluator judges), `redact` (regex redaction), or `tool_filter` (block tool calls). See Step 4.
The sibling `agento11y` skill is the **mechanics** layer: exact CLI flags, evaluator/rule YAML shapes, create-or-update semantics, the online-eval setup steps. It assumes you already know *what* to create.
This skill is the **judgment** layer. It answers *which* rules and guards this specific agent needs, by grounding in two evidence sources a generic checklist can't use:
1. **The agent's code** — its system prompt, tools, and how it handles user data. Half the value is here; read and cite it (`file:line`). 2. **The agent's real traffic** — because it's deployed, you can see what it actually does in prod, not just what the code says it might.
Two gaps this skill fills beyond `agento11y`:
`gcx agento11y guards` exists. This skill carries the guard shapes (`evaluator_ids` / `redact` / `tool_filter`, plus `action_on_fail`) itself.
For any mechanical detail — exact flags, evaluator/rule YAML fields, the setup flow — defer to the `agento11y` skill and to `gcx agento11y <sub> --help` rather than restating it here.
token. `gcx` owns Cloud auth (via `gcx login`). Prerequisite: `gcx` installed and authenticated; if it isn't, say so and stop.
shown the context; writes (upsert evaluators, create/update rules and guards) need an explicit yes on the target stack. `gcx` may be pointed at the wrong stack, and this skill creates stack-level objects.
(`gcx agento11y evaluators list`, `rules list`, `guards list`) and never recommend a duplicate. Compare by **semantic equivalence**, not just id/name — see Step 2.
it from `agento11y-test-starter`. But every creation is **explicit and confirmed**: show the exact YAML, get a yes, then create it with the matching `gcx agento11y` command. A yes for one object is not a yes for the next.
makes a new guard safe: a `warn` guard only records the outcome, it never blocks a request, so it is harmless even while it is live. Never draft a first-time `deny` guard. The developer switches to `deny` themselves, later, after watching it in warn mode (Step 6). Draft `enabled: false` if you can, but don't build extra steps around it — the server may store the guard `enabled: true` regardless (see Step 5), and that is fine, because `warn` carries the safety, not `enabled`.
`llm_judge` over 100% of traffic costs real money.
`gcx agento11y templates get`) over authoring a new evaluator. Only write a fresh one when nothing fits.
guardrails around the agent, not the agent itself.
ask — don't guess.
Before reading traffic or writing anything, show the developer where `gcx` is pointed. The active context may not be the stack they think:
gcx config current-context # the active context name gcx config view # its server URL, org-id, auth method
Display the resolved **context name, server URL, and org-id**. Two t
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…