alert-triage

alert-triage is a skill for Claude Code, Codex from Staffbase/gq. It costs 48 tokens per session (1,955 once invoked), scanned A, original, Apache-2.0.

A procedure for investigating active Grafana alerts, which are warnings generated from monitored systems and services. It filters alerts by names, teams, namespaces, services, clusters, environments, or severity and uses connected tools to inspect them.

In plain words
What is it for?
Use it to triage one alert, all alerts, or alerts for a particular service, team, namespace, cluster, environment, or severity.
Why use it?
It turns broad alert requests into precise searches and stops when the required Grafana connection is unavailable. This helps separate the alerts that need investigation from the rest.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to triage one alert, all alerts, or alerts for a particular service, team, namespace, cluster, environment, or severity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/staffbase/gq/alert-triage
View source ↗ Staffbase/gq
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Staffbase/gq --skill alert-triage
Clone the repo
git clone --depth 1 https://github.com/Staffbase/gq

Made for: Claude Code, Codex.

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 alert-triage

README.md
[![agentmods](https://agentmods.dev/badge/skills/staffbase/gq/alert-triage/github.svg)](https://agentmods.dev/skills/staffbase/gq/alert-triage)
Your own site
<a href="https://agentmods.dev/skills/staffbase/gq/alert-triage"><img src="https://agentmods.dev/badge/skills/staffbase/gq/alert-triage/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 alert-triage

Your own site · 80×15
<a href="https://agentmods.dev/skills/staffbase/gq/alert-triage"><img src="https://agentmods.dev/badge/skills/staffbase/gq/alert-triage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,955 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.
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.00048 $0.01955
Opus 5.5 $0.00019 $0.00782
Sonnet 5.5 $0.00010 $0.00391
Haiku 4.5 $0.00005 $0.00196

Measured 12d ago against content hash e01af4b694b6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

alert-triage 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 12d 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.

skills/alert-triage/SKILL.md · 162 lines

How it starts

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

Alert triage

This skill needs the gq MCP server (tools list_alerts and get_alert, next to the query tools). When those tools are missing, tell the user to register it, e.g. claude mcp add gq --env GRAFANA_CONFIG=<config> -- gq mcp, and stop.

The investigating subagents use the sre-analyze-alert skill. Its helper sre-grafana is not needed (the gq tools replace it), and sre-kubernetes only when no Kubernetes MCP server, such as flux-operator-mcp or similar, is connected or it cannot reach the alert's cluster. When sre-analyze-alert is not installed, mention the link to the user once; the subagents still run without it.

1. Scope

Turn the user's words into list_alerts arguments. Grafana does the filtering, so put every restriction into the call; several combine (AND):

The user says Argument
one alert by name matchers: ["alertname=\"<name>\""]
a team matchers: ["team=\"<team>\""] (the label your rules use for the owning team)
namespace, service, severity, any other label matchers, e.g. ["namespace=\"shop\""]; =~ for patterns
a cluster or environment instance when a Grafana instance carries that name; otherwise the label that names it (see below)
silenced or inhibited alerts / every state state: "suppressed" / state: "all"

state defaults to active, also for "all alerts": silenced alerts are already acknowledged by someone.

When you don't know which label names a cluster or environment, call list_alerts once with limit: 20 and read the label names in commonLabels and labels; then filter with the label you found.

Instances under errors could not be asked: name them to the user, their alerts are missing from this triage. When more is above 0, the list was cut: narrow the filter or raise limit before you go on.

Done when you hold the complete alert list and the failed instances. An empty list ends the triage: say so.

Read the full file on GitHub · 162 lines

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. 12d ago First seen · 162 lines · 48 tokens per session scan A e01af4b694b6

Subscribe to this mod's changes

alert-triage is a skill published in the GitHub repository Staffbase/gq (5 stars, last pushed 3d ago), licensed Apache-2.0. It adds 48 tokens to every session and 1,955 once invoked, about $0.0002 per session on Opus 5.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-11-18.

Related

alert-triage compared with skills from other repositories

alert-triage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
alert-triageStaffbase/gqSkill53d agoApache-2.0A48Claude Code, Codex
repair-github-ciTracer-Cloud/opensreSkill17ktodayApache-2.0A40Claude Code, Codex
investigating-incidents-with-runbooksTracer-Cloud/opensreSkill17ktodayApache-2.0A35Claude Code, Codex
operating-github-ci-fixerTracer-Cloud/opensreSkill17ktodayApache-2.0A48Claude Code, Codex
summarizing-sentry-issuesTracer-Cloud/opensreSkill17ktodayApache-2.0A35Claude Code, Codex
claw-adminx-cmd/x-cmdSkill4.8k6d agoApache-2.0A48Claude Code, Codex
optimizex-cmd/x-cmdSkill4.8k6d agoApache-2.0A29Claude Code, Codex