getsentry avatar

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-code

Installs 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(), or global-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
1getsentry avatarsentry-react-sdkgetsentry/sentry-for-aiFull Sentry SDK setup for React. Use when asked to "add Sentry to React", "install @sentry/react", or configure error monitoring, tracing, session replay, profi3.2Kskills.sh installs
2nexu-io avatarfrontend-slidesnexu-io/open-designGenerate animation-rich HTML presentations with visual style previews. Useful for online keynotes, embedded talks, and interactive briefs.3Kskills.sh installs
3nexu-io avatargsap-reactnexu-io/open-designOfficial GSAP skill for React — useGSAP hook, refs, gsap.context(), cleanup. Use when the user wants animation in React or Next.js, or asks about GSAP with Reac2.9Kskills.sh installs
4freshtechbro avatarreact-spring-physicsfreshtechbro/claudedesignskillsPhysics-based animation library combining React Spring (spring dynamics, gesture integration, 60fps animations) and Popmotion (low-level composable animation ut2.6Kskills.sh installs
5patternsdev avatarai-ui-patternspatternsdev/skillsTeaches design patterns for building AI-powered React interfaces. Use when creating chatbots, intelligent assistants, streaming UIs, or any AI-driven user exper2.2Kskills.sh installs
6minimax-ai avatarreact-native-devminimax-ai/skillsReact Native and Expo development guide covering components, styling, animations, navigation, state management, forms, networking, performance optimization, tes1.9Kskills.sh installs