grafana/gcx/agento11y-prod-setup

Claude Code and agent skill by grafana/gcx

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Sets up production evaluation for a deployed AI agent in Agent Observability: online eval rules and guards (redact PII, block tools), based on its code and live traffic. Applies via gcx after confirmation. Not for pre-ship tests (use agento11y-test-starter).

Install

npx vskill@latest install grafana/gcx/agento11y-prod-setup

SKILL.md

The same SKILL.md was published earlier as grafana/gcx/agento11y-prod-setup.

Agent Observability — production evals & guards setup

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:

  • Online eval rules — evaluators that score ingested live conversations, so regressions

surface without hand-reviewing every conversation.

  • Guards (hook-rules) — policies on the request path that warn (and can later be promoted to

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.

What this skill does that agento11y doesn't

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).

  1. 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:

  • Recommendation from evidence — agento11y starts once you know what to create; this decides.
  • Guards — agento11y documents evaluators and rules but not guards (hook-rules), even though

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.

Rules

  • Every connection to the stack goes through `gcx agento11y` — never raw HTTP, never a hand-held

token. gcx owns Cloud auth (via gcx login). Prerequisite: gcx installed and authenticated; if it isn't, say so and stop.

  • Confirm the target stack before any WRITE (Step 0 + Step 5). Reads run freely once you've

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.

  • Check before recommending. Always list what already exists first

(gcx agento11y evaluators list, rules list, guards list) and never recommend a duplicate. Compare by semantic equivalence, not just id/name — see Step 2.

  • This skill does create stack-level objects — that is its job, the one thing that separates

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.

  • New guards are always drafted `action_on_fail: "warn"` — even hard-policy ones. That is what

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.

  • New online rules start with a conservative `sample_rate` (e.g. 0.1), not 1.0 — an

llm_judge over 100% of traffic costs real money.

  • Prefer starting from an evaluator template (gcx agento11y templates list, then

gcx agento11y templates get) over authoring a new evaluator. Only write a fresh one when nothing fits.

  • Do not rewrite the agent's prompt, optimize, or redeploy. This skill configures observation and

guardrails around the agent, not the agent itself.

  • If a required input is missing (the agent's name as Agent Observability sees it, or gcx auth),

ask — don't guess.

Step 0 — Confirm the target stack

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 thresholds:

  • Before reads (traffic sampling, inventory): show the resolved context so the developer sees

where the discovery ran. A wrong stack here wastes effort but doesn't change anything.

  • Before any write (Step 5): require an explicit yes that this is the intended production

stack. Writes are what create stack-level objects, so this confirmation is the hard gate.

If it's wrong, stop — the developer switches with gcx config use-context <name>, or you pass --context <name> on every gcx call. (Watch for localhost / dev-looking servers — a strong sign the active context is not their prod stack.)

Step 1 — Read the code and sample real traffic

Two evidence sources. Do both; every later recommendation cites one of them.

Code (as agento11y-test-starter Step 1). Find and record file:line for: the entrypoint, the system prompt, the tool/function definitions, and how it handles user data. This tells you what could go wrong. The code is the authoritative source for the system prompt and tools — content capture is often off in production, so the ingested traffic frequently has an empty system_prompt and may omit tool definitions. Never conclude "this agent has no system prompt" from the traffic; read it from the code.

Traffic, via gcx — this tells you what does go wrong:

  1. Find the agent as Agent Observability sees it: gcx agento11y agents list (and agents get /

agents list-versions) to get the exact agent_name — this is the match.agent_name you'll target. (Tip: agents list prints a leading hint line before the JSON; set GCX_AGENT_MODE=true or skip that line if you parse it.)

  1. Sample recent conversations: gcx agento11y conversations search --filters 'agent = "<name>"'

(add status = "error", time windows, tool.name, eval.passed = false) and gcx agento11y generations get <id> for detail. Look for long tool loops, over-refusals, PII echoed back, off-topic drift, malformed outputs, error clusters.

  • Some agents have generations but no conversation (e.g. single-shot agents whose spans

aren't grouped into a conversation). If conversations search is empty but agents get shows a non-zero generation_count, don't stop and conclude "no traffic, wrong skill" — sample the generations directly (gcx agento11y generations get <id>); there's plenty to work from.

  • Pick the selector from how the agent produces generations, not by habit. The symptom to

recognize: a rule that matches traffic but whose scores stay at zero — it looks live but silently never fires. That happens when selector: user_visible_turn is used on an agent whose generations aren't user-facing turns: a multi-agent DAG / programmatic pipeline (fan-out/fan-in, internal nodes, one conversation per run), or a single-shot agent with no conversation. (The underlying reason is that those generations carry no user-visible-turn flag, but there's no gcx command to inspect that directly — diagnose from the zero-score symptom, not by hunting for the field.) For these agents use `selector: all_assistant_generations` and scope with match.agent_name to the node you care about. Reserve user_visible_turn for genuine chat/assistant agents where a turn is what the user sees. To confirm a selector is working, score over enough sampled traffic — either wait for the rule's sample_rate to accumulate hits, or temporarily bump it (and drop it back afterward; sample_rate: 1.0 costs real judge money, see the rule rules below) — then check conversations search. A run that scored nothing shows `eval_summary` absent or `total_scores: 0` (the field is omitted when nothing scored, not returned as 0); persistent zero on a matching agent almost always means the selector is wrong for this agent shape.

Minimum evidence bar. Aim for ≥20 recent conversations over ≥7 days before drafting anything. Fewer than that and you risk overfitting one odd conversation into a production rule or guard: if the window is thin, either stop and say so, or proceed but mark every recommendation low-confidence and lean on non-intervening setups (guards in warn, low sample_rate) rather than anything that blocks. A recommendation from a single conversation is a hypothesis, not a rule. If the agent has essentially no traffic, stop — this is the wrong skill; agento11y-test-starter (offline suite) is the right one until traffic exists.

Step 2 — Inventory what already exists

Before proposing anything: gcx agento11y evaluators list, gcx agento11y rules list, gcx agento11y guards list (add -o yaml to see full definitions). For each concern you're about to raise, decide whether something already covers it — by semantic equivalence, not id or name. Two objects are effectively the same when they share:

  • the same surface (both rules, or both guards),
  • the same target (overlapping match, especially agent_name / selector),
  • the same intent (evaluator kind + what it checks, or the guard's policy),
  • the same action (rule scoring vs. guard warn/deny/transform/tool_filter).

If an existing object matches on those, don't create a second one — say it's covered and stop, or propose an update to the existing one. A different id over identical intent+target+action is a duplicate, and duplicate guards/rules double cost and can conflict.

Step 3 — Recommend rules and guards

Map each observation to the surface that fits. Online rules observe (score, detect regressions, no user impact, no agent code change — the eval worker scores ingested traffic asynchronously); guards intervene (block/redact on the live request path, and require a code change in the agent to call them — see Step 5.5). Pick the surface by whether you want to watch or to stop — and remember a guard is dead config until the agent is wired to it.

For every online rule row below, pick the selector per Step 1 (agent shape), not by the template's default — user_visible_turn for a genuine chat agent, all_assistant_generations for a DAG/pipeline node or single-shot agent.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
531
Repository forks
42
7-day trend score
31

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/grafana/gcx/agento11y-prod-setup/badge)](https://verified-skill.com/skills/grafana/gcx/agento11y-prod-setup)

Something wrong with this skill or its page? Tell us.