Skills sentry
install
source · Clone the upstream repo
git clone https://github.com/TerminalSkills/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/TerminalSkills/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/sentry" ~/.claude/skills/terminalskills-skills-sentry && rm -rf "$T"
manifest:
skills/sentry/SKILL.mdsource content
Sentry
Overview
Sentry is an error monitoring and performance platform that captures unhandled exceptions, tracks request performance with Web Vitals, records session replays, and alerts on regressions. It supports JavaScript, Python, Go, and mobile platforms with auto-instrumentation, source-mapped stack traces, and release health tracking.
Instructions
- When integrating the SDK, call
withSentry.init()
,dsn
,environment
, andrelease
, choosing the framework-specific SDK (tracesSampleRate
,@sentry/nextjs
,@sentry/sveltekit
for Python) for automatic instrumentation.sentry-sdk - When configuring error tracking, set up
after login for user correlation, add custom tags withSentry.setUser()
for filtering, and configureSentry.setTag()
for known harmless errors from browser extensions and third-party scripts.ignoreErrors - When uploading source maps, use
or@sentry/vite-plugin
in the CI build step to map minified stack traces back to original source code, associating them with the release version.@sentry/webpack-plugin - When monitoring performance, set
to 0.1-0.2 in production, add custom spans withtracesSampleRate
for business-critical operations, and monitor Web Vitals (LCP, CLS, INP) for real user experience.Sentry.startSpan() - When setting up alerts, configure rules for error rate spikes rather than individual errors, integrate with Slack or PagerDuty, and filter by environment and error level.
- When using session replay, set
for all error sessions andreplaysOnErrorSampleRate: 1.0
for general sampling, with privacy masking for sensitive data.replaysSessionSampleRate: 0.1
Examples
Example 1: Set up Sentry for a Next.js production app
User request: "Add Sentry error monitoring and performance tracking to my Next.js app"
Actions:
- Install
and run the setup wizard to configure@sentry/nextjs
andsentry.client.config.tssentry.server.config.ts - Configure
with environment, release, andSentry.init()tracesSampleRate: 0.2 - Add source map upload to the CI build pipeline with
webpack integration@sentry/nextjs - Set up Slack alerts for error rate spikes in the production environment
Output: A Next.js app with automatic error capture, source-mapped stack traces, performance monitoring, and Slack alerting.
Example 2: Track release health and identify regressions
User request: "Set up release tracking to identify which deployment introduced a bug"
Actions:
- Configure
inrelease
using the git commit SHA or semantic versionSentry.init() - Integrate with GitHub to link releases to commits for suspect commit detection
- Set up deploy tracking to mark when releases go to staging and production
- Configure regression alerts that notify when a previously resolved issue reappears
Output: Release health monitoring with crash-free session tracking, suspect commits, and regression alerts.
Guidelines
- Set
to 0.1-0.2 in production since 100% sampling is expensive and unnecessary.tracesSampleRate - Upload source maps in CI since unreadable minified stack traces are not useful for debugging.
- Set
andenvironment
on everyrelease
call to filter errors by staging versus production.Sentry.init() - Use
after login to correlate errors with specific users for support.Sentry.setUser() - Configure alert rules for error rate spikes rather than individual errors to reduce noise.
- Set
for known harmless errors from browser extensions, network timeouts, and third-party scripts.ignoreErrors