
Sentry React Sdk
This is a comprehensive setup wizard that walks you through adding Sentry to a React project, from detection through configuration. It scans your package.json to figure out your React version, router setup (v5/v6/v7 non-framework or TanStack), state management, and build tool, then generates the appropriate integration code. The opinionated approach is refreshing: it always recommends error monitoring and tracing, suggests session replay for user-facing apps, and only brings up profiling if you have a performance-critical case. Nice touch that it handles the React 19 reactErrorHandler hook pattern versus the older ErrorBoundary component, and it knows to bail out if you're using React Router Framework mode. The source map guidance for Vite and webpack is practical, since stack traces are useless without them.
- skills.sh installs
- 3.2K
- GitHub stars
- 277
- last updated
- Aug 21, 2026
Install
$ npx -y skills add getsentry/sentry-for-ai --skill sentry-react-sdk --agent claude-codeInstalls into .claude/skills of the current project.
Files
All Skills > SDK Setup > React SDK
Sentry React SDK
Opinionated wizard that scans your React project and guides you through complete Sentry setup.
Invoke This Skill When
- User asks to "add Sentry to React" or "set up Sentry" in a React app
- User wants error monitoring, tracing, session replay, profiling, or logging in React
- User mentions
@sentry/react, React Sentry SDK, or Sentry error boundaries - User wants to monitor React Router v5/v6/v7 non-framework navigation, Redux state, or component performance
If project is React Router Framework mode using @sentry/react-router, use sentry-react-router-framework-sdk instead of this skill.
Note: SDK versions and APIs below reflect current Sentry docs at time of writing (
@sentry/react≥8.0.0). Always verify against docs.sentry.io/platforms/javascript/guides/react/ before implementing.
Phase 1: Detect
Run these commands to understand the project before making any recommendations:
# Detect React version
cat package.json | grep -E '"react"|"react-dom"'
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 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
- Sentry Tanstack Start Sdk2K
- Sentry React Router Framework Sdk1.9K
- Sentry Instrumentation Guide1.2K
- Sentry Fix Issues10.4K
- Sentry Create Alert4.2K