Sentry Nextjs Sdk
Full Sentry SDK setup for Next.js covering browser, Node.js server, and Edge runtimes with an opinionated wizard.
- CCM score
- 62 of 100
- skills.sh installs
- 680
- GitHub stars
- 25
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers setup across browser, Node.js server, and Edge runtimes, with a project scan before recommending features
- Includes an interactive
npx @sentry/wizard@latest -i nextjspath plus manual config forinstrumentation-client.ts,sentry.server.config.ts,sentry.edge.config.ts, andinstrumentation.ts - Enforces a recommended baseline of error monitoring, tracing, and session replay, with logging, profiling, AI monitoring, crons, and metrics offered when detected
- Designed for Next.js 13+ apps using the App Router or Pages Router, with Turbopack and version caveats noted
Install
$ npx -y skills add getsentry/sentry-agent-skills --skill sentry-nextjs-sdk -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Sentry Next.js SDK
Opinionated wizard that scans your Next.js project and guides you through complete Sentry setup across all three runtimes: browser, Node.js server, and Edge.
Invoke This Skill When
- User asks to "add Sentry to Next.js" or "set up Sentry" in a Next.js app
- User wants to install or configure
@sentry/nextjs - User wants error monitoring, tracing, session replay, logging, or profiling for Next.js
- User asks about
instrumentation.ts,withSentryConfig(), orglobal-error.tsx - User wants to capture server actions, server component errors, or edge runtime errors
Note: SDK versions and APIs below reflect current Sentry docs at time of writing (
@sentry/nextjs≥8.28.0). Always verify against docs.sentry.io/platforms/javascript/guides/nextjs/ before implementing.
Phase 1: Detect
Run these commands to understand the project before making any recommendations:
# Detect Next.js version and existing Sentry
cat package.json | grep -E '"next"|"@sentry/'
# Detect router type (App Router vs Pages Router)
ls src/app app src/pages pages 2>/dev/null
Details
- Repository
- github.com/getsentry/sentry-agent-skills
- Categories
- Frontend & UI Code, Debugging
- First seen
- Jun 3, 2026
Questions
What does the sentry-nextjs-sdk skill do?
sentry-nextjs-sdk is a setup wizard that scans a Next.js project and guides full Sentry configuration across the browser, Node.js server and Edge runtimes. It covers error monitoring, tracing, session replay, logging, profiling, AI monitoring and crons for Next.js applications.
How do I install the sentry-nextjs-sdk skill?
Run npx -y skills add getsentry/sentry-agent-skills --skill sentry-nextjs-sdk -y in your project. Once installed, sentry-nextjs-sdk lets the agent detect your router type and existing Sentry files before adding @sentry/nextjs.
Which Next.js versions does sentry-nextjs-sdk support?
sentry-nextjs-sdk supports Next.js 13 and later, with both the App Router and the Pages Router. Turbopack support needs Next.js 15 or later, and its tree-shaking step applies only to webpack builds.
Where does sentry-nextjs-sdk sit among Frontend and UI Code skills?
sentry-nextjs-sdk is listed in the Frontend and UI Code category. Its focus is Sentry instrumentation for Next.js apps, including instrumentation.ts, withSentryConfig and global-error.tsx setup.
More from getsentry/sentry-agent-skills
All 8Similar to Sentry Nextjs Sdk
More Frontend & UI Codesentry-react-sdkSkillgetsentry/sentry-agent-skills549 installsComplete Sentry setup for React with error monitoring, tracing, session replay, profiling, and logging.
sentry-react-router-framework-sdkSkillgetsentry/sentry-for-ai2K installsSentry SDK setup for React Router v7 framework apps covering errors, tracing, replay, logs, and feedback.
sentry-node-sdkSkillgetsentry/sentry-for-ai3.5K installsComprehensive Sentry SDK setup for Node.js, Bun, and Deno covering errors, tracing, logs, profiling, and crons.
sentryPluginTheBushidoCollective/han201 starsBest practices and patterns for Sentry error monitoring and observability.
error-trackingSkillaj-geddes/useful-ai-prompts466 installsSentry-based error tracking that captures exceptions, releases, and performance issues in production.
integration-nextjs-app-routerSkillposthog/skills330 installsGuided PostHog analytics integration for Next.js App Router apps, following a four-step setup workflow.