leoyeai/agent-master-skills/sentry-alert-tuner
Claude Code and agent skill by leoyeai/agent-master-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Reduce Sentry alert fatigue by surgically tuning issue grouping, fingerprint rules, severity mapping, sample rates, before-send filters, sourcemap pipelines, and release-health gates. Acts as a senior SRE who has nursed Sentry installations through unicorn-scale traffic where a single bad deploy could fire 80,000 alerts. Covers Sentry SaaS and self-hosted (Sentry 24.x), Issues vs Performance vs Replays vs Profiling, integrations rate limiting (Slack, PagerDuty, Opsgenie, Jira), and release-heal…
Install
npx vskill@latest install leoyeai/agent-master-skills/sentry-alert-tunerSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as leoyeai/agent-master-skills/sentry-alert-tuner.
Sentry Alert Tuner
Tune a Sentry installation so that every alert that fires is worth a human looking at it. Acts as a senior SRE who has owned Sentry for an org with 200+ services, six-figure event volume per minute, and an on-call rotation that has been burned by every form of Sentry noise: sourcemap collapses, third-party widget storms, retry loops, browser extension errors, and the classic "we deployed a typo and got 14,000 alerts" scenario.
This skill does not write detection logic from scratch and does not replace your incident response process. It assumes Sentry is already installed and ingesting events; the job is to make those events actionable. Output is a set of concrete configuration changes (project settings, fingerprint rules, alert rules, SDK init code, CI sourcemap steps) plus a recurring Inbox hygiene playbook.
Usage
Invoke when:
- The on-call rotation says "I just mute Sentry now"
- A single deploy generated more alerts than humans on the team
- Issues counts are dominated by browser extension noise or third-party scripts
- The Sentry bill jumped 3x without a traffic change
- New errors are buried under the same 12 long-tail issues from 2023
- Alert severities all look the same (everything is P2)
- Slack #alerts is unreadable; people muted the channel
- A postmortem revealed the real error was filed but auto-resolved or grouped into a megaissue
Basic invocations:
Tune Sentry for our React + Django stack — alerts are 90% noiseWe just hit our event quota mid-month, sample rates need rethinkingBuild a fingerprint ruleset so retries don't spawn 400 issues per outageSet up release-health gates so a bad deploy auto-pauses rollout
Inputs Required
- Sentry org slug + project list (or a project export)
- Stack: SDKs in use (browser, Node, Python, Go, Java, mobile) and their versions
- Current event volume per project per day (last 30 days)
- Current Issues count per project, ranked by event count
- Current alert rules and integration list (Slack channels, PagerDuty services)
- Release cadence and the existing release-health thresholds (if any)
- Sourcemap pipeline status: which projects upload, via which CI step
- The five most-hated noisy issues (the ones the team has muted manually)
- Any compliance constraints on PII scrubbing (GDPR, HIPAA, PCI)
Workflow
- Pull the inventory. Use the Sentry API (
/api/0/projects/{org}/,/api/0/organizations/{org}/issues/,/api/0/projects/{org}/{proj}/rules/) to dump every project, alert rule, integration, environment, and the top 200 issues by event volume per project. Cache locally as JSON; the audit reruns weekly.
- Classify each project by tier. T0 (customer-facing critical path: checkout, auth, payments), T1 (important but not revenue-blocking: dashboard, search), T2 (internal tools, batch jobs, marketing site), T3 (experiments, prototypes). Tier dictates sample rate, alert routing, and release-health strictness — not project type.
- Audit the top 50 issues per project. For each, decide one of: keep-as-is, regroup-with-fingerprint, ignore-permanently, filter-at-source (before-send), or fix-the-bug. Most "noise" is actually one of the middle three; only ~10-20% needs an actual code fix.
- Write fingerprint rules. Use Sentry's Issue Grouping settings (Project → Settings → Issue Grouping → Fingerprint Rules / Stack Trace Rules). Group by stable signal (route + status code, exception class + module), not by message text (which contains user input, ids, locales).
- Write inbound filters. Project → Settings → Inbound Filters covers the boring 60% (browser extensions, web crawlers, legacy browsers, localhost). Turn ALL of them on by default for browser projects. They deduct from quota before ingestion — free win.
- Write before-send filters in SDK init. For everything inbound filters can't catch (third-party script noise, retry storms, expected
4xxfrom form validation). Before-send returnsnullto drop. This is where the surgical work happens.
- Set sample rates by event type and tier.
tracesSampleRate,profilesSampleRate,replaysSessionSampleRate,replaysOnErrorSampleRate— each one independent. Errors are always 1.0 (you want all errors); transactions and replays are sampled. Use the formulas in the Performance section.
- Tune severity mapping. Most teams leave every alert at default. Build a severity matrix (P0-P4) tied to Sentry alert rule conditions:
level,event.tags,release.health.crash_free_rate, frequency thresholds, regressions. P0 pages PagerDuty; P3/P4 only post to Slack.
- Wire release-health gates.
crash-free-sessions < 99.5%blocks rollout.sessions_errored > X% delta vs prior releasetriggers an auto-rollback alert. This requires the SDK to emit sessions (default in newer SDKs, opt-in in older).
- Lock down sourcemaps. Without sourcemaps, every minified-stack issue is its own group; cleanup is impossible. Audit: every prod release uploads sourcemaps in CI, debug ids match (Sentry CLI 2.x+), and
Sentry.init()has a stablereleasevalue derived from the same git sha.
- Right-size integrations. Slack integration has rate limits (Slack drops messages above ~1/sec per channel) — route P2/P3 to a digest channel, not a live channel. PagerDuty integration: one Sentry alert rule = one PagerDuty service, never multiplex. Jira integration: only for P0/P1 or after manual triage, never auto-create from every new issue.
- Implement the Inbox hygiene weekly playbook (see deep section). Inbox is where new issues show up; without weekly hygiene it becomes a 4,000-issue swamp.
- Add CI guardrails so future deploys don't undo the work: lint SDK init code for required
beforeSend, fail CI if release tag isn't set, block merges that introduce a new Sentry alert without a runbook link.
- Schedule the recurring audit. Monthly: re-rank top issues, regroup fingerprints, prune stale alert rules, review tier assignments. Quarterly: re-baseline sample rates, review crash-free thresholds, audit who-owns-what.
Fingerprint Customization Recipes
Sentry's default grouping is stack-trace-based. It works ~70% of the time. The remaining 30% is where alert fatigue lives. Below are battle-tested fingerprint rules. Apply via Project Settings → Issue Grouping → Fingerprint Rules.
Recipe 1 — Group HTTP errors by route + status: Without this, GET /users/123 and GET /users/124 become separate issues for the same NotFound bug.
Recipe 2 — Group third-party SDK errors under one umbrella: Stripe, Segment, Intercom, Datadog RUM, etc. — their errors are not yours, but they fire constantly.
Recipe 3 — Collapse network errors by error class, not message: fetch failed: ECONNRESET 10.0.0.42:443 and fetch failed: ECONNRESET 10.0.0.43:443 are the same bug.
Recipe 4 — Split a megaissue by environment: Sometimes one issue is actually three: the staging variant, the prod variant, the canary variant.
Recipe 5 — Group browser extension noise: Inbound filter catches the obvious ones. Fingerprint catches the rest.
Recipe 6 — Group retries as one issue: Background jobs that retry 5 times shouldn't create 5 events. Tag the event with retry_attempt and group on attempt 1 only.
Recipe 7 — Group GraphQL operations by operationName, not query string: Default grouping uses the full query, so a 200-line query change becomes a "new issue."
Recipe 8 — Collapse i18n / locale variants: Error messages like "User not found (en-US)" vs "Utilisateur introuvable (fr-FR)" are the same bug.
Recipe 9 — Group SSL handshake errors by host class: Per-host fingerprinting is too granular for transient SSL flakes.
Recipe 10 — Split a "catch-all" megaissue by callsite: When Exception got caught at the top of a request handler and lost its real type, explicitly fingerprint by request.url to recover signal.
Recipe 11 — Don't fingerprint by user-supplied input: Always strip user.id, request.body.*, search query strings before fingerprinting. They explode cardinality.
Recipe 12 — Use stack-trace rules for vendor noise: Stack-trace rules (separate from fingerprint rules) mark frames as +app or -app so Sentry's default grouping ignores vendor frames. Combine: stack-trace rule first to mark vendor frames, fingerprint rule second for what's left.
Severity Mapping Matrix
Most teams have one severity: "an alert fired." Build a five-tier matrix. Map each alert rule to exactly one tier. Routing follows tier, not gut feel.
| Tier | Definition | Sentry conditions | Routing | SLA | |
|---|---|---|---|---|---|
| P0 | Customer-facing outage, data corruption, auth break | level:fatal AND transaction:checkout/* OR release.crash_free_session_rate < 99% | PagerDuty page (urgent), #incidents, status page draft | Ack 5 min | |
| P1 | Significant degradation, error budget burn, regression in T0 | level:error AND event.count > 100/5min AND transaction:T0/* OR new issue in release-day window for T0 | PagerDuty page (high), #oncall | Ack 15 min | |
| P2 | New issue in T1, sustained error rate above baseline, third-party degradation | New issue assigned to a team channel, event.count > 50/15min for T1 | Slack #team-alerts (live channel) | Triage same day | |
| P3 | Anomaly, potential regression, low-volume issue | event.count > 10/hour for T1/T2, regressions of resolved issues | Slack #team-alerts-digest (hourly), Linear ticket | Triage in week | |
| P4 | Informational, expected, best-effort | Anything in T2/T3, unhandled-but-explained, deprecation warnings | Email digest weekly OR /dev/null | Optional |
Concrete examples — what each tier looks like in practice:
- P0 —
Stripe charge.create raised AuthenticationError (5+ events in 60s)— payments are down. - P0 —
crash-free-session-rate: 96.4% on release 2026.5.4-canary— release-health gate tripped, auto-rollback triggered. - P1 —
New issue: TypeError: Cannot read 'length' of undefined in /checkout/review— first time seen in checkout path post-deploy. - P1 —
Regression: ConnectionPoolTimeout (resolved 14d ago, now 200 events/5min)— a fix unfixed itself. - P2 —
New issue: SegmentAnalyticsError: timeout (32 events/15min)— third party degraded; should be tracked, not paged. - P3 —
Issue frequency anomaly: AddToCartFailed +250% vs 7d baseline (still <50 events/h)— investigate this week. - P4 —
DeprecationWarning: moment.js used (1,200 events/day)— file as tech debt, do not alert.
The mapping is a decision in the alert rule, not a Slack channel pick after the fact. Tag the rule with severity:P1 so it's queryable.
Inbox Hygiene Workflow (Weekly Playbook)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/sentry-alert-tuner/SKILL.md
Popularity
- Repository stars
- 2,168
- Repository forks
- 328
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leoyeai/agent-master-skills/sentry-alert-tuner)