sentry
Skill4 starsChanged 23 days agoMITView on GitHub
Fetch, understand, and resolve issues on the self-hosted Sentry (host from SENTRY_URL, org from SENTRY_ORG, both in the secrets file) for any project the org holds. The agent-home secrets env supplies SENTRY_URL, SENTRY_AUTH_TOKEN, and SENTRY_ORG; curl/jq against /api/0 is the backbone, the toolkit sentry CLI an optional accelerator. Use for 'triage sentry', 'list sentry issues', 'resolve issue X'. Not for client-side DSN/instrumentation setup.
- Reads credentials
- Sends data out
41 other projects use a version of this.
Adopted by
Most recently taken up by
- Masih-0x3/agent-skillstheir own version, first seen Nov 29, 2026
- Ghost7802/awesome-api-skillstheir own version, first seen Nov 29, 2026
- Manram/esc-skillstheir own version, first seen Nov 29, 2026
- DobroslavRadosavljevic/cabrakantheir own version, first seen Nov 29, 2026
- STIFLEUR390/agent-skillstheir own version, first seen Nov 27, 2026
- Kangentic/kangentictheir own version, first seen Nov 24, 2026
Used with
Projects with it also use ghidra, digitalocean and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
mitsuhikoSkillghidra
Reverse engineer binaries using Ghidra's headless analyzer. Decompile executables, extract functions, strings, symbols, and analyze call graphs without GUI.
Also in 3 projects that use this
alanalvestechSkilldigitalocean
Manage DigitalOcean droplets, domains, databases, apps and volumes via API v2
Also in 3 projects that use this
SentrySkilldatadog
Query live Datadog telemetry (logs, metrics, traces, spans, monitors, incidents, dashboards, services, hosts) through Datadog's Pup CLI. Use when users ask to investigate production behavior in Datadog, including searching logs, checking monitor status, inspecting traces or spans, looking up incidents, finding services, or correlating metrics. Do not use it for Sentry issues, repository/source-code work, or ticketing.
Also in 4 projects that use this
xfstudioSkillfirebase
Firebase gives you a complete backend in minutes - auth, database, storage, functions, hosting. But the ease of setup hides real complexity. Security rules are your last line of defense, and they're often wrong. Firestore queries are limited, and you learn this after you've designed your data model. This skill covers Firebase Authentication, Firestore, Realtime Database, Cloud Functions, Cloud Storage, and Firebase Hosting. Key insight: Firebase is optimized for read-heavy, denormalized data. I
Also in 4 projects that use this
OpenAISkillposthog
Analyze product data and manage product tooling in PostHog. Use when the user wants product analytics or insights, HogQL/SQL queries, feature flags, experiments and A/B tests, error tracking, session replay, surveys, LLM analytics, dashboards, data warehouse, or PostHog documentation.
Also in 3 projects that use this
mitsuhikoSkillopenscad
Create and render OpenSCAD 3D models. Generate preview images from multiple angles, extract customizable parameters, validate syntax, and export STL files for 3D printing platforms like MakerWorld.
Also in 3 projects that use this
- +1 more from mitsuhiko
Other versions41 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 41
- openai/skills★ 27ksame name
- anthropics/claude-quickstarts★ 19ksame name
- openai/plugins★ 8.4ksame name
- Expensify/App★ 5.1ksame name
- mitsuhiko/agent-commands★ 3.2ksame name
- mitsuhiko/agent-stuff★ 3.2ksame name
- chrisdoc/hevy-mcp★ 554same name
- wnzzer/rank-analysis★ 481same name
- getsentry/junior★ 425same name
- JetBrains/skills★ 386same name
31 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- api-performanceSkill
- archifySkill
- authSkill
- brainstormingSkill
- browser-toolsSkill
- code-reviewerSkill
- documentation-writerSkill
- fallow-auditSkill
- frontend-designSkill
- github-actionsSkill
- grill-meSkill
- harness-engineerSkill
- impeccableSkill
- map-integrationSkill
- pidocSkill
- playwright-testerSkill
- ponytailSkill
- puppeteerSkill
- refactoring-uiSkill
- rust-skillsSkill
- sdk-developmentSkill
- security-auditSkill
- self-learnSkill
- session-auditSkill
- skillevaluatorSkill
- skill-managerSkill
- systematic-debuggingSkill
- test-suite-hygieneSkill
- tmux-panesSkill
- web-searchSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 39 edited versions we read keep these.
2
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
- Very specific: line 19
No checkout → read-only triage for that project: analyze the event, report findings and a suggested fix, record skipped with reason no …
- Distinctive: line 53
Always pipe through jq and keep only what is needed:
- Distinctive: line 71
Read the mapped file plus its callers before concluding anything — behavior claims need the consumption site.
“Common” is measured: kept by at least 6 in 10 of the 39 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.
Files
<skill-dir> = this skill's directory. All paths below are absolute; checkout root comes from SENTRY_CHECKOUTS in the secrets env (default ~).
Sentry triage — self-hosted Sentry only, no MCP
Constraints: self-hosted instance, hosted side unchangeable; read-mostly token — a 403 on a mutating call is the expected mode, not an error (section 1); curl + jq is the only engine. No MCP server, no SaaS-only AI tools (section 3.6).
Base URL comes from SENTRY_URL in the secrets file (section 1); never write the host out. Any project in the org is triageable — the task names the project slug(s), or all; discover slugs via the projects call in section 2.
Project → repo mapping
Local checkouts live under "$SENTRY_CHECKOUTS" (secrets env; default ~), dir name = project slug by convention.
[ -d "${SENTRY_CHECKOUTS:-$HOME}/<slug>" ]→ that is the repo.- Else
fd -H -t d -d 3 "^<slug>$" ~— a checkout elsewhere on disk. - No checkout → read-only triage for that project: analyze the event, report findings and a suggested fix, record
skippedwith reasonno local repo; never edit or resolve without code to fix.
1. Environment — pi-native secrets file, never printed
Sentry creds live in ~/.pi/agent/.secrets/sentry.env (agent home, gitignored) — never in the repos, never in repo env files.
- Load and call in one shell process, token never echoed:
set -a; . ~/.pi/agent/.secrets/sentry.env; set +a curl -sS -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" "$SENTRY_URL/api/0/organizations/$SENTRY_ORG/projects/" | jq -r '.[].slug' - File,
SENTRY_AUTH_TOKEN, orSENTRY_ORGmissing → stop and tell the user: create a token at the instance's/settings/account/api/auth-tokens/page with scopesorg:read project:read event:read(write scopes only if the hosted side grants them — usually it does not), then writeSENTRY_URL,SENTRY_AUTH_TOKEN, andSENTRY_ORGlines (plus optionalSENTRY_CHECKOUTS, default~) into~/.pi/agent/.secrets/sentry.env. - A read-only token is the normal mode, not an error: mutating calls (
resolve/ignore/archive) answer 403 — never retry them; section 4 defines thefixed-not-resolvedpath. - Client-exposed vars in any repo — any framework public prefix (
NEXT_PUBLIC_,VITE_,REACT_APP_,VUE_APP_,EXPO_PUBLIC_) and any telemetry name shape (DSN/DNS/CSP-report endpoint) — are irrelevant to triage: never open repo env files (.env*) during triage; this holds for every repo and project. Suspected typos in tracked examples (e.g.NEXT_PUBLIC_SENTRY_DNSfor..._DSN) are flagged in the report, never silently "fixed".
Ban: cat/echo/print of the secrets file, its values, or the token; the token stays inside the shell process.
2. Fetch — curl recipes
| Need | Call |
| Project slugs | GET /api/0/organizations/$SENTRY_ORG/projects/ |
| Unresolved issues | GET /api/0/organizations/$SENTRY_ORG/issues/?query=is:unresolved&project=<slug>&statsPeriod=24h&sort=freq |
| Regressed issues (fix failed) | GET /api/0/organizations/$SENTRY_ORG/issues/?query=is:unresolved is:regressed&project=<slug> |
| Archived issues | GET /api/0/organizations/$SENTRY_ORG/issues/?query=is:archived&project=<slug>&sort=last_seen |
| Latest event | GET /api/0/organizations/$SENTRY_ORG/issues/<id>/events/latest/ |
| Issue's events (variants) | GET /api/0/organizations/$SENTRY_ORG/issues/<id>/events/ |
| Issue notes (human context) | GET /api/0/organizations/$SENTRY_ORG/issues/<id>/notes/ |
| Latest releases (deploys) | GET /api/0/organizations/$SENTRY_ORG/releases/?project=<slug> → .[0].version, .[0].dateReleased |
Lists paginate at 100 per page: follow the response link header cursors (rel="next") for full sets.
Fetch only what a decision needs: tags when a fix/no-fix call is borderline, breadcrumbs when frames are minified or absent, request/spans only for perf issues, notes only for a regressed issue or one with firstSeen older than 30 days; the list row plus the latest event replace a standalone issue-detail call.
Always pipe through jq and keep only what is needed:
curl -sS -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" "$SENTRY_URL/api/0/organizations/$SENTRY_ORG/issues/?query=is:unresolved&project=$PROJECT_SLUG&statsPeriod=24h&sort=freq" | jq -r '.[] | [.id, .shortId, .level, .count, .userCount, .firstSeen, .lastSeen, .title, .culprit] | @tsv'Stacktrace from the latest event — entry payloads nest under .data (exception values at .entries[].data.values[0]); frames are ordered outermost-first, the error site is the last in-app frame, and // [] keeps jq quiet when the event carries none:
curl -sS -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" "$SENTRY_URL/api/0/organizations/$SENTRY_ORG/issues/$ISSUE_ID/events/latest/" | jq '.entries[] | select(.type=="exception") | .data.values[0].stacktrace.frames // [] | map(select(.inApp != false)) | .[-5:]'Minified clients often leave no usable frames; the event root's .metadata (type, value, function, filename) still names the failure and the handler — probe it first.
3. Understand
title+culpritname the failure; top in-app frames name the files. One grouped issue can hold several message variants — before declaring an issue fixed, read the latest event's message, not the count trend. Sample 2-3 more events from the section-2 events call — the fix must cover every variant title, not just the newest.- Map frames to the repo: match
filename(or basename) withfd/rginside the repo path; skip frames undernode_modules/webpack/browser internals. Frames whosefilename/functionmatch nothing in the checkout (version skew, missing sourcemaps, unsymbolicated native crashes) → report the discrepancy; never edit on unmatched evidence. - Read the mapped file plus its callers before concluding anything — behavior claims need the consumption site.
- Evidence beyond the stack — same latest-event call or one extra call:
- Breadcrumbs (user actions before the error):
jq '.entries[] | select(.type=="breadcrumbs") | .data.values[-10:]' - Tag distributions — impact scope (browser, environment, url, release):
GET /api/0/organizations/$SENTRY_ORG/issues/<id>/tags/and.../tags/<key>/ - Request + span context (URL, method, status, transaction; spans for N+1/payload perf issues):
jq '.entries[] | select(.type=="request" or .type=="spans") | .data'— perf issues flow through the same issue/event pipeline - Event context:
jq '{user, release, environment, tags}'on the latest event - PII rule: event data may carry credentials/tokens/PII — note presence and type, never reproduce values in output
- Breadcrumbs (user actions before the error):
- Root-cause hypothesis before any edit, four lines: error summary; immediate cause (code path that threw); hypothesis (why it reached that state); strongest alternative and why rejected.
- Optional accelerator: the toolkit CLI (
github.com/getsentry/toolkit, docscli.sentry.dev) hassentry issue list|events|view|explain|resolve|ignore|archive|merge|reopenusing the same env vars; self-hosted login is verified (SENTRY_URL+ OAuth,cli.sentry.dev/self-hosted). Not installed here; installing needs user approval. The classicgetsentry/sentry-cliis deprecated — never install it. MCP is a dead end here: Seer andissue planare SaaS-only, MCPsearch_eventsis broken on self-hosted until the/events/validate/fixes ship, and mutations hit the same read-only 403. Treat CLI as convenience only; the curl recipes are the engine.
Analysis patterns ported from getsentry/sentry-agent-skills sentry-fix-issues (Apache-2.0).
4. Resolve — guardrailed
Order is fixed: reproduce → fix → verify → resolve → audit.
- TDD per repo rules: failing test reproducing the error, minimal fix, scoped tests green.
- Completeness sweep before declaring fixed:
rgthe repo for the same failure pattern (other call sites); for a regressed issue run the API sibling query once — siblings this change fixes are recordedcovered-by-fix, live siblings keep the issue open. - Resolve — one PUT attempt, never retried:
200 → re-run the section-2 issue list; the id must be gone fromcurl -sS -X PUT -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" -H "Content-Type: application/json" \ -d '{"status":"resolved"}' "$SENTRY_URL/api/0/issues/<id>/" | jq -r '.status'is:unresolved. 403 → actionfixed-not-resolved: hand the issue URL$SENTRY_URL/$SENTRY_ORG/<slug>/issues/<id>/to the user for manual resolve, verify via scoped tests green — never re-check the list, never retry. - Audit — append one NDJSON line to
~/.pi/agent/logs/sentry-triage.ndjson;actioncomes from the fixed vocabularyfixed-and-resolved | fixed-not-resolved | covered-by-fix | no-repo-fix | reported | noise-suggested-ignore:{"ts":"<iso>","repo":"<repo>","project":"<slug>","issue_id":"<id>","short_id":"<shortId>","title":"...","culprit":"...","fix_commit":"<sha-or-null>","action":"fixed-and-resolved"} - Hard bans: never resolve/ignore/archive/merge without a passing fix (duplicates only on explicit user order); bulk state changes need explicit approval; no package installs or commits unless granted.
5. Triage loop (automation)
Per project: fetch unresolved plus regressed (section-2 recipes) → rank regressed first — a regression means a prior fix missed a variant — then count desc, lastSeen desc → for each issue, sections 3–4. Batch guard: cap at 3 issues per project per run unless told otherwise; report remaining. Noise class (probe or delivery-check scripts, container checks, issues whose frames match no checkout) → noise-suggested-ignore with the reason; apply ignored only on the user's order. Report per issue, one line: <issue_id> <error> — <action> plus tests, with exit codes only when a command fails. Machine-readable summary per run: NDJSON to a /tmp path named by the caller, one line per issue handled ({repo, issue_id, action, result}).
Archived blind-spot pass, after the unresolved one: archived issues never auto-reopen, so a recurring one counts events invisibly. One jq-filtered call per project — the section-2 archived recipe plus a lastSeen filter (within 7 days, or newer than the release meant to fix it, section-2 releases row) — and analyze only when it returns rows. Changing an archived issue's state still needs a passing fix plus the user's order.
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
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.

