triage-errors
Triages the top production error for Copper Kettle and fixes its cause. Use when asked to "triage errors", "what is breaking in prod", or "fix the top error".
Files1
View on GitHubSKILL.mdskills/agents-md/evals/fixtures/shared-triage-skill/base/skills/triage-errors/SKILL.md
GitHubTriage Errors
Find the error hurting the most customers right now, trace it to source, and fix the cause.
Steps
- Fetch the top unresolved error from the last 24 hours. Call
mcp__posthog__list_errorswithstatus: "active",orderBy: "occurrences",dateFrom: "-24h", and take the first result. - Call
mcp__posthog__error_detailswith that issue id to get the stack trace. - Find the first frame under
src/. Open that file and thecaptureError()call site that reported it, and read theareatag to see which team owns it. - Reproduce locally with
npm run devif the error has a request path. - Fix the cause, not the capture call. Do not wrap the failing line in a try/catch that swallows the error.
- Reply with the error title, occurrence count, owning area, and the fix or the reason it needs a person.
Gotchas
ChunkLoadErrorafter a deploy is customers on a stale tab, not a bug. Report it and move to the next error.- Errors tagged
area: billingare never fixed without a person from billing reading the diff, because a wrong retry double-charges.