AGENT SKILL

triage

Respond to a production incident, outage, or regression in the wild: establish the timeline, assess blast radius, and reconstruct what happened with cited evidence. Use this when something is failing in production and you need to understand it before fixing it.

License 许可
MIT
最近更新
2026-06-08
Stars
★ 3
Forks
0

01 前言 Front Matter

name
triage
description
Respond to a production incident, outage, or regression in the wild: establish the timeline, assess blast radius, and reconstruct what happened with cited evidence. Use this when something is failing in production and you need to understand it before fixing it.
user-invocable
true

02 资源文件 1

03 SKILL.md 正文

Incident Triage

Respond to a live production incident — an outage, a regression, or unexpected behavior reported from the field. Establish what happened and how bad it is BEFORE touching code. This skill triages; it does not write the fix.


Auto Mode

Auto Mode suppresses confirmation prompts and proceed-pauses — not the one clarifying question that can matter here: when it started, when it was last known-good, or who reported it is unknown, don't ask blank — lead with your best-inferred answer to override (e.g. "I'll take the incident start as the first error at 14:02 UTC — correct me if it began earlier"), since triaging the wrong incident wastes the whole effort. This clarifying question follows the shared recommendation convention (godmode:recommend-convention) defined in rules/godmode-recommend.md. Once the symptom is anchored, proceed: reconstruct the timeline, assess blast radius, and route the fix without pausing. Treat course-corrections as normal input.


The Job

  1. Establish the timeline
  2. Assess blast radius
  3. Reconstruct with cited evidence via @incident-responder
  4. Route the confirmed fix

Do NOT skip to the fix. Understand the incident first.


Step 1: TIMELINE

  • What is the first observed symptom? (error, alert, user report)
  • When did it start? When was the system last known-good?
  • What changed in that window? (deploys, config, dependency, traffic)

Output: "Symptom [X] first seen at [time]. Last known-good [time]. Changed in window: [Y]."


Step 2: BLAST RADIUS

  • Who and what is affected? (users, endpoints, regions, downstream systems)
  • How severe is it? (full outage, degraded, single feature, cosmetic)
  • Is it still ongoing or self-resolved?

Output: "Affected: [scope]. Severity: [level]. Status: [ongoing/resolved]."


Step 3: RECONSTRUCT (spawn @incident-responder)

Spawn @incident-responder (read-only) to reconstruct the timeline against the code and recommend remediation with cited evidence. It investigates; it does not change code.

  • It correlates the symptom and the change window with the codebase
  • It returns a reconstructed timeline and remediation options with file:line evidence

Output: "Root cause hypothesis: [cause] at [file:line]. Remediation: [options]."


Step 4: ROUTE THE FIX

The triage itself does not write the fix. Once a code fix is confirmed:

  • Route a small, well-understood defect to @debugger for a minimal targeted fix plus regression test.
  • Route a larger or isolated change to @writer.

Output: "Routed [fix] to [@debugger / @writer]."


Rules

  • Triage before fixing. Anchor the symptom and blast radius first.
  • @incident-responder is read-only — it reconstructs and recommends, it never edits code.
  • The skill never writes the fix itself; it routes to @debugger or @writer.
  • Every root-cause claim must carry file:line evidence.

Agent Routing

Step Agent Purpose
RECONSTRUCT MUST spawn @incident-responder (subagent_type: claude-godmode:incident-responder) Read-only reconstruction of the timeline + remediation with cited evidence
ROUTE @debugger (small defect) or @writer (larger change) Apply the confirmed code fix — the triage skill never writes it inline

Rule: Never reconstruct the incident inline when @incident-responder can do it read-only with cited evidence. Never write the fix from this skill.


On-Demand Helper

This is an on-demand helper, invoked when an incident lands. It is not part of the routine spine and records no workflow state — run it, route the fix, and hand off to @debugger or @writer.


Output

<!-- Output follows the in-skill output convention: godmode:output-convention — see rules/godmode-output.md -->

Close the run with one consolidated result block. The per-step **Output:** lines above narrate timeline → blast radius → reconstruct → route as you go; this block is the single legible summary the user reads at the end — it leads with the terminal state, summarizes the incident, and names one next move:

  • Status — incident triaged; the root-cause hypothesis is established and the fix is routed.
  • Timeline — first symptom and time, last known-good, and what changed in the window.
  • Blast radius — who and what is affected, severity, and whether it is ongoing or resolved.
  • Remediation — the routes considered, each with file:line evidence.
  • Next — the single onward pointer:

"Incident triaged. Root-cause hypothesis: [cause] at [file:line]. Affected [scope], severity [level], [ongoing/resolved]. Routed the fix to @debugger. Run /debug to verify the fix, then /brief N if it warrants a tracked work unit."


Related

  • @incident-responder — read-only reconstruction and remediation advice
  • @debugger — minimal targeted fix plus regression test for a confirmed defect
  • @writer — larger or isolated fix
  • /debug — once the fix is in hand, the debugging protocol verifies it

Spine: off-spine helper — triage the incident and route the fix, then resume the spine at /brief N if the fix warrants a tracked work unit.

04 同仓库更多 Skills

SyloRei
SyloRei/claude-godmode

{{name=null}=null}

{{description=null}=null}

★ 3
SyloRei
SyloRei/claude-godmode

verify

Check a built unit goal-backward: classify every brief acceptance criterion COVERED / PARTIAL / MISSING with concrete evidence, so you know what is truly done. Use when: verify N, check whether unit N is done, confirm the goals for roadmap unit N are met.

★ 3
SyloRei
SyloRei/claude-godmode

tdd

Build new behavior test-first using strict Red-Green-Refactor cycles. Use this when you want to drive a new feature or behavior from failing tests before writing the implementation.

代码审查Skill与智能体开发
★ 3
SyloRei
SyloRei/claude-godmode

ship

Run every canonical quality gate, push the branch, and open a pull request — release in one command. Use when: ship it, ready to ship, create the PR, push and open a PR.

★ 3
SyloRei
SyloRei/claude-godmode

refine

Mid-mission gap analysis: read the active mission's roadmap and briefs, surface what's missing or underspecified, converge on one gap, and append a NEW numbered work unit plus its full brief — strictly additive. Use when: refine, what are we missing, find gaps in the current mission, add the next unit. Never edits an existing brief or roadmap unit in place — that is /brief N's job.

产品经理
★ 3
SyloRei
SyloRei/claude-godmode

refactor

Improve code structure without changing behavior, verifying with tests at every step. Use this when you want to restructure, extract, rename, or simplify existing code that already works.

开发工程师代码审查Skill与智能体开发
★ 3