Sentry React Sdk
Complete Sentry setup for React with error monitoring, tracing, session replay, profiling, and logging.
- CCM score
- 63 of 100
- skills.sh installs
- 552
- GitHub stars
- 25
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers project detection, feature recommendations, and step-by-step SDK configuration for
@sentry/reactversion 8 and later - Includes a
src/instrument.tsinit file, entry-point import order, and React 19reactErrorHandler()or React below 19ErrorBoundarysetup - Provides router integrations for React Router v5 through v7, TanStack Router, and a plain browser fallback, plus Redux and Vite source maps
- Designed for React apps that need error and performance monitoring, with DSN variables per build tool (Vite, Create React App, webpack)
Install
$ npx -y skills add getsentry/sentry-agent-skills --skill sentry-react-sdk -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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 navigation, Redux state, or component performance
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"'
# Check for existing Sentry
cat package.json | grep '"@sentry/'
# Detect router
cat package.json | grep -E '"react-router-dom"|"@tanstack/react-router"'
# Detect state management
cat package.json | grep -E '"redux"|"@reduxjs/toolkit"'
Details
- Repository
- github.com/getsentry/sentry-agent-skills
- Categories
- Frontend & UI Code, Debugging
- First seen
- Jun 3, 2026
Questions
What does the sentry-react-sdk skill do?
The sentry-react-sdk skill is a setup wizard that scans a React project and guides you through full Sentry SDK setup. It covers error monitoring, tracing, session replay, profiling, and logging for React applications.
How do I install the sentry-react-sdk skill?
Run npx -y skills add getsentry/sentry-agent-skills --skill sentry-react-sdk -y in your project. After that, the sentry-react-sdk skill lets your agent add Sentry to React with @sentry/react.
Which React versions and routers does sentry-react-sdk support?
The sentry-react-sdk skill supports React 16 and later, React Router v5 through v7, TanStack Router, Redux, Vite, and webpack. It picks the error handling pattern based on whether your React version is 19 or newer.
Is sentry-react-sdk still maintained in its original repository?
The sentry-react-sdk skill lives in the getsentry/sentry-agent-skills repository, which its README says has been superseded by getsentry/sentry-for-ai. That newer repository is the source of truth for Sentry agent skills.
More from getsentry/sentry-agent-skills
All 8Similar to Sentry React Sdk
More Frontend & UI Codesentry-react-router-framework-sdkSkillgetsentry/sentry-for-ai2K installsSentry SDK setup for React Router v7 framework apps covering errors, tracing, replay, logs, and feedback.
sentry-tanstack-start-sdkSkillgetsentry/sentry-for-ai2.1K installsSentry SDK setup for TanStack Start React covering browser and server error monitoring, tracing, and replay.
error-trackingSkillaj-geddes/useful-ai-prompts467 installsSentry-based error tracking that captures exceptions, releases, and performance issues in production.
sentryPluginTheBushidoCollective/han201 starsBest practices and patterns for Sentry error monitoring and observability.
vite-react-best-practicesSkillclaudiocebpaz/vite-react-best-practices686 installsComprehensive guidelines for building, deploying, and refactoring React 19 and Vite 8 single-page applications.