
Sentry Nextjs Sdk
This handles the full Sentry setup for Next.js 13+ across all three runtimes: browser, Node.js server, and Edge. It's opinionated and wizard-driven, which is good because Sentry's Next.js integration has a lot of moving parts (instrumentation hooks, three separate config files, next.config wrapping, source map uploads). The skill walks through detection first to understand your router type and existing setup, then recommends a feature set (error monitoring and tracing always, session replay for user-facing apps, logging if you need structured logs), then either points you to run the interactive wizard yourself or guides you through manual file creation. Useful if you've put off Sentry because the setup looked annoying.
- skills.sh installs
- 3.7K
- GitHub stars
- 277
- last updated
- Aug 21, 2026
Install
$ npx -y skills add getsentry/sentry-for-ai --skill sentry-nextjs-sdk --agent claude-codeInstalls into .claude/skills of the current project.
Files
All Skills > SDK Setup > Next.js SDK
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/'
Sponsors
Details
- Repository
- github.com/getsentry/sentry-for-ai
- Categories
- Frontend Development, DevOps & CI/CD, Debugging
- First seen
- Apr 16, 2026
More from getsentry/sentry-for-ai
All 31- Sentry Sdk Setup3.7K
- Sentry Workflow3.6K
- Sentry Cocoa Sdk3.6K
- Sentry Node Sdk3.4K
- Sentry React Sdk3.2K
- Sentry Sdk Upgrade3.2K
- Sentry Setup Ai Monitoring3K
- Sentry Browser Sdk3K
- Sentry Feature Setup2.9K
- Sentry Cloudflare Sdk2.7K
- Sentry Python Sdk2.6K
- Sentry Nestjs Sdk2.6K
- Sentry Code Review2.5K
- Sentry Sdk Skill Creator2.5K
- Sentry Otel Exporter Setup2.5K
- Sentry Android Sdk2.4K
- Sentry Dotnet Sdk2.3K
- Sentry Php Sdk2.3K
- Sentry Flutter Sdk2.3K
- Sentry Pr Code Review2.3K
- Sentry Go Sdk2.3K
- Sentry Svelte Sdk2.2K
- Sentry Ruby Sdk2.2K
- Sentry Elixir Sdk2.1K