sentry/SKILL.md
Sentry — application monitoring platform for error tracking, performance monitoring, session replay, profiling, and alerting. Use when building with Sentry or asking about SDK initialization, error capture, tracing, source maps, sampling, PII scrubbing, tunneling, or integration with Next.js, Node.js, or other JavaScript frameworks. Fetch live documentation for up-to-date details.
npx skillsauth add mikkelkrogsholm/dev-skills sentryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
CRITICAL: Your training data for Sentry is unreliable. APIs change between versions and memorized patterns may be wrong or deprecated. Before writing any code, you MUST use
WebFetchto read the live docs:
WebFetch("https://docs.sentry.io/llms.txt")Then fetch the framework-specific setup page (e.g., Next.js, Node.js, browser) from the index. SDK options and required files differ by platform. Do not proceed without fetching first.
Sentry is an application monitoring platform for real-time error tracking, performance monitoring, session replay, profiling, cron monitoring, and log aggregation.
Sentry's SDK bundles capabilities developers often add as separate tools:
tracesSampleRate and tracePropagationTargets, no external APM neededSentry.replayIntegration() — no third-party replay tool neededSentry.browserProfilingIntegration() — no separate profiler neededSentry.feedbackIntegration() — no separate feedback widget neededtracesSampleRate in production — the getting-started default of 1.0 captures 100% of transactions. At any meaningful traffic volume this inflates costs fast. Use a low value (0.1 or less) and consider tracesSampler for dynamic sampling by route.replaysSessionSampleRate low (e.g. 0.1) for normal sessions and replaysOnErrorSampleRate: 1.0 so every error session is always captured. Agents often set only one rate and miss error context or over-capture..env.sentry-build-plugin (auto-gitignored) for local builds, but CI/CD pipelines need SENTRY_AUTH_TOKEN set as an environment variable separately. Missing this silently produces minified stack traces in production.instrumentation-client.ts. Server and edge configs (sentry.server.config.ts, sentry.edge.config.ts) must be imported from instrumentation.ts via conditional imports — without instrumentation.ts, the server and edge configs do nothing. Missing any one file leaves a runtime blind spot without obvious errors.tunnel to bypass ad blockers — set tunnel: "/tunnel" in Sentry.init() and add a backend route that proxies to Sentry's ingest endpoint. Without this, a significant portion of browser errors are silently dropped by ad blockers and privacy extensions.development
Zod — TypeScript-first schema validation with static type inference. Use when building with Zod or asking about schema definitions, type inference, parsing, transformations, refinements, coercion, error handling, or integration with forms, APIs, or tRPC. Fetch live documentation for up-to-date details.
tools
Vite — next-generation frontend build tool with instant dev server and optimized production builds. Use when building with Vite or asking about its APIs, configuration, plugins, SSR, environment variables, or integration with frameworks. Fetch live documentation for up-to-date details.
tools
Upstash — serverless Redis, QStash, and Vector database with per-request pricing optimized for edge and serverless environments. Use when building with Upstash or asking about its Redis client, QStash message queuing, rate limiting, workflows, or vector search. Fetch live documentation for up-to-date details.
tools
Turso — edge-hosted SQLite database built on libSQL with embedded replicas, multi-tenancy, and low-latency global distribution. Use when building with Turso or asking about its libSQL client, embedded replicas, database-per-tenant patterns, auth tokens, sync, or integration with Drizzle or other ORMs. Fetch live documentation for up-to-date details.