agentleFS
cdfarkascdfarkas/cdfarkas-skills/skills/sentry-triage/SKILL.md

sentry-triage

Skill0 starsChanged 10 days agoApache-2.0View on GitHub

Rank the unresolved Sentry issues of a project by impact and decide what to fix first: a deterministic severity score, the trend, the innermost in-app frame, the failure origin (app / vendor / network / browser), the clusters sharing one root cause, then a complexity call per issue. Use when someone asks which Sentry errors to fix first, what is hurting users in production, to triage or prioritize the error backlog, or pastes a Sentry issue-stream URL. Needs a Sentry API token, curl and jq.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When the project context lets you resolve Where to a file in the working tree, open that file at the line before assigning S/M/L — a …

    line 78

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sentry triage

Two steps. The script ranks by severity — it is deterministic, do not re-derive it. You add complexity, which needs reading frames and, when the project tells you where its code lives, the code itself.

Step 1 — run the script

bash <skill-dir>/scripts/sentry-triage.sh [<sentry issues url>] [--org o --project p --env e --period 14d --query 'is:unresolved'] [--format md|slack]
bash <skill-dir>/scripts/sentry-triage.sh --issue <SHORT-ID> [--tags release,browser,url]
bash <skill-dir>/scripts/sentry-triage.sh --doctor [<url> | --org o --project p --env e]

<skill-dir> is the directory holding this file. Map what the caller said to flags:

Caller saysFlag
pastes a Sentry URL (https://<org>.sentry.io/issues/?...)pass it as the first argument, verbatim; org, project, environment, query and period come from it
an org, project, environment or period--org, --project (slug or id), --env, --period
nothing about the projectrely on SENTRY_ORG / SENTRY_PROJECT / SENTRY_ENVIRONMENT, or on what the project context declares (below); ask only if neither exists
"for Slack"--format slack
a specific issue, or you need the stack of a top issue--issue <SHORT-ID>
"is it set up", "check my token", or the first run on a machine--doctor — tools, token, scopes, org and project access, one ok/FAIL/skip line each

Auth is SENTRY_AUTH_TOKEN or the token= line of ~/.sentryclirc. A project with 100 issues takes about 10 seconds. Do not parallelize or paginate it yourself. On Windows run it from Git Bash exactly as above (never PowerShell); curl ships with Git for Windows, jq comes from winget install jqlang.jq — --doctor says which one is missing.

The answer starts with the script's first line — the Sentry triage · … header, or its bold Slack form — and shows the table and the Clusters block verbatim. No sentence before it, no restatement after it: a Slack message is pasted as-is, and anything you write above the header is what the reader has to delete first. Column semantics, the score formula and the origin rules: reference.md.

Step 2 — add the complexity call and the priority order

Severity alone puts noise first (a browser / CustomEvent cluster hit by 30 users is severe and worthless). Priority is severity and cost, so after the table produce a short ranked list, top 5 to 10, with one line per entry:

1. [SHORT-ID or cluster] — severity <sev> · complexity <S|M|L|noise> — <what to do, one clause>

severity is the table's Sev value; complexity is exactly one of S, M, L, noise — a closed vocabulary, so two triages of the same project read the same way. An issue that is already gone (last seen days ago, zero events since a release) is still one of the four: noise, with "resolve it" as the action.

Complexity rubric — decide from Origin, Where, the cluster and, for the top entries, --issue output (frames innermost first, release / browser / url breakdown):

SignalComplexityTypical action
app, one in-app file, single release in tagsSregression from that release — read the frame, guard or revert
app, one file, several releasesMreal defect, local fix
a cluster of N app issues on the same file, or network / API Error: 401 × NM, fix onceone root cause: auth/session handling, a shared hook
vendor package, no in-app frameM–Lupgrade, pin, or wrap the call; check the package changelog
browser (CustomEvent, [object Event], chunk / script load)noise unless users cannot proceeddrop via SDK ignoreErrors / beforeSend, or fix the asset path if it is a deploy artefact
network 5xx / timeoutsnot front-endroute to the backend owner, link the issue
single browser or single user in tagsS or noisebrowser-specific; decide by user count

When the project context lets you resolve Where to a file in the working tree, open that file at the line before assigning S/M/L — a one-line guard is S, a missing provider in a routing tree is M. Never guess a fix from the title alone.

Project context

This skill assumes nothing about a company, a stack or a repository. Anything the host project declares — in its CLAUDE.md, AGENTS.md or equivalent — wins over the defaults here. Useful declarations:

## Sentry
- org `acme`, project `web` (id 123), environment `prod`
- `Where` paths are relative to `packages/<app>/src`; `dist/client/proxy-client.js` is the shared API client in `packages/lib-api`
- known noise, do not rank: `[object HTMLLinkElement]`, `ResizeObserver loop`
- 401 clusters belong to the auth team; open a ticket in AUTH instead of fixing
- tickets: one Jira per cluster, key prefix WEB-

Apply such rules silently: filter what it calls noise out of the ranked list (keep it in the raw table), map paths to files, name the owner it names.

Failures

The script exits non-zero with the cause on its last stderr line: no token, token rejected, unknown org / project / issue, an HTTP error from Sentry. That line is the whole answer: relay it verbatim, alone, and stop. It already names what to fix (the slug, the token, the scope); rerun commands and --doctor suggestions are for you to act on if asked, not lines to add — the caller asked for a triage, not a tutorial. Never produce a ranking from a partial table or from memory of the Sentry UI.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.