/oncall-kit:triagefrom On-Call Kit
Investigates alerts/incidents: classify symptom, load triage reference, check lessons.md for known causes, post grounded diagnosis with evidence links and proposed fix. Use when an alert fires or something breaks.
Ships in On-Call Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Standing rules in CLAUDE.md apply — especially: propose, don't act (rule
1); every claim carries a link (rule 4); data before theory (rule 5); log to
lessons.md without asking (rule 8).
Load context. Read ONCALL.md (policy + routing), STACK.md
(capability bindings), and lessons.md (known causes) from disk. Files
over memory (rule 7).
Classify the symptom. Match against the failure classes in
references/:
| Symptom looks like | Load |
|---|---|
| Tests failing, flaking, or silently not running | references/test-failures.md |
| PRs stuck, queue depth growing, merges slow | references/merge-queue.md |
| Jobs not starting, agents stuck, capacity errors | references/runner-infra.md |
| Bad deploy, rollout stuck, post-deploy regression | references/deploy-rollout.md |
| None of the above | No reference — say so explicitly, and investigate from first principles: timeline first (what changed around onset — deploys, flags, config), then blast radius, then narrow. |
(Classes are the CI defaults; your setup phase may have replaced them.
The table above must match the files actually present in references/ —
if they've diverged, trust the directory and flag the drift.)
Check the log first. Search lessons.md for this class's #tag and
read the matching entries — never ingest the whole file; it grows
unbounded by design. A matching past incident is your first
hypothesis — cheapest to confirm or kill.
3a. Correlate before you classify. Sweep the other alert channels (and
the incidents binding) for the same time window. Five alerts are often
one incident: if this symptom is downstream of something already broken —
a cluster problem, a shared dependency, another team's incident — say so
in the diagnosis ("correlates with X in #infra-alerts; likely one
incident, not five") and route to the upstream owner instead of
investigating the echo.
3b. Alert storms get ONE triage, not one each. If several alerts have landed in a short window — or new alerts arrive while you're already investigating — treat them as a batch: group by likely common cause, run a single investigation for the group, and post one diagnosis that lists every alert it accounts for ("these 14 alerts trace to one upstream: …"). If an incident record is already open for the cause, attach new alerts to it (post in its thread/record) instead of opening a parallel investigation. If the batch looks like a real incident and no record exists, propose declaring one per ONCALL.md — a human declares it (the incident-record invariant); you never do. Batching is for shared cause only: if the evidence says the batch contains genuinely unrelated failures, say so explicitly and treat them as distinct incidents — separate diagnoses, separate records, each with its own severity call. Never merge for tidiness.
STACK.md. Establish the timeline: when did the symptom start, and what
changed within the preceding window — deploys, flags change history,
config, merges?4a. Fan-out (page-severity only; sequential is the default below it).
Where the channel's platform supports spawning parallel subagents, you
are the orchestrator: spawn one investigator per bound source of truth
the reference's first checks touch — metrics, logs, code/deploys,
pager, alert-channels. Each investigator receives exactly four
things: the symptom sentence, the onset window, its binding line from
STACK.md, and the reference's first-check queries for its source —
nothing else, so a poisoned thread can't steer it (rule 9a applies
inside subagents too). Each returns the fixed shape:
Synthesis is yours alone: correlate, deconflict (two investigators dating onset differently is itself a finding), and write the one diagnosis. Fan-out multiplies token cost — worth it for a page, never for a morning-log item.
5a. Cross-check blame against "still happening" (CLAUDE.md rule 5a). A blame verdict — bisect, revert notice, "that PR broke it" — names the change that started the failure; before naming it as the live cause, confirm the symptom appears in the most recent completed run/window. Presence always confirms red; absence confirms green only on a completed run.
Post the diagnosis in this format, in-thread:
What's happening: one sentence, fresh-reader test applied. Root cause (confidence high/medium/low): the mechanism, with each claim linked to its evidence. Blast radius: who/what is affected, linked. Proposed fix: the action, why it's safe, and what to watch after. Ruled out: alternatives checked and the evidence that killed them. Would change my mind: the one observation that would.
6a. Updates on long-running incidents. Any update posted >30 min after your first diagnosis opens with a 2–4 sentence story so far a newcomer can land on cold: when it started and what broke → the current best understanding of cause (not the first guess) → what's been tried → where it stands, one sentence. Then the delta. Ruled-out hypotheses don't reappear unless load-bearing. Never post a "no change" update — silence is a valid state, and noise trains readers to skip your updates.
Route. If ONCALL.md's routing tree names an owner for this class,
mention them. Otherwise mention no one (rule 12).
On human questions or pushback ("could it be the schema change instead?"): treat it as a hypothesis to check, check it against the data, and report back with evidence either way. Never defend a diagnosis; re-derive it.
When a fix is deployed (by a human, or a permitted gated action): watch it land — bounded. Check the affected metrics at the reference's expected-resolution window (once at half, once at full, once at double — three checks, not a polling loop), post when they return to baseline, or escalate per the routing tree if the window blows. Do not mark resolved (rule 2). If a human wants tighter watching, they can ask — continuous polling is never the default. Verify through the same door the failure came in: re-run the original failing path, or re-check the exact signal that detected the incident — never a proxy. "Merges are flowing" proves the merge path, not the whole provider; if your check can't see the original symptom, say the verification is partial and name what it can't see.
Afterwards, append the incident to lessons.md in its entry format
(rule 8). If this incident exposed a gap in a reference file, propose
the amendment as a PR (rule 9) — you fix the playbook, not just the
incident. And ask the alerting question: would a rule have caught
this earlier? If detection was human or late, propose the rule in
the postmortem — paste-ready in the format ONCALL.md names, with
this incident as provenance. Install per ONCALL.md's install mode:
default is a human pastes it; under the alert-editor extension you may
create it yourself after explicit approval in the channel (additive
only, logged to lessons.md — CLAUDE.md rule 1a).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
triage, incident-response, on-call, alert-investigation, diagnosis
npx claudepluginhub anthropics/oncall-kit --plugin oncall-kit4 skills in this plugin
/handoffWrite the weekly on-call handoff: everything the incoming on-call needs, triage-ready, posted to the channel at shift boundary. Use when the weekly routine fires, or when someone asks for a handoff / shift summary / "catch the next on-call up".
/oncall-setupBootstrap a Claude-assisted on-call for this channel/repo: discover the available connectors, mine incident history into draft triage playbooks, interview the human for policy, validate against held-out incidents, and install the scheduled routines. Use when the user wants to "set up on-call", "bootstrap the on-call kit", "onboard this channel", or has just installed the oncall-kit plugin. Five gated phases — never run more than one phase per turn, and never activate anything before Phase 4 sign-off.
/weatherThe optional standing status report ("the weather"): compile open incidents, build health, merge-queue stats, and deploy lag into one always-current report page, and post to the channel only when a defined event fires. Use when the weather routine fires, or when someone asks to run/update the weather report.
Other plugins' skills for the same job