sentry-react-sdk

sentry-react-sdk is a skill for Claude Code from getsentry/sentry-for-ai. It costs 76 tokens per session (4,797 once invoked), scanned A, original, MIT.

A setup guide for adding Sentry, a service that records application errors and performance data, to React applications. React is a JavaScript library for building user interfaces.

In plain words
What is it for?
Use it to configure Sentry in React apps with React Router, TanStack Router, Redux, Vite, or webpack, including error monitoring, tracing, session replay, profiling, and logging.
Why use it?
It removes the guesswork from configuring Sentry for React, routers, state management, and common build tools. It helps developers find frontend errors and understand navigation, component performance, and user sessions.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is [All Skills](../../SKILL_TREE.md) > [SDK Setup](../sentry-sdk-setup/SKILL.md) > React SDK.

not rated 271repo +2 2d ago A scan Socket: passSnyk: passSkillSpector: pass 76 tokens original MIT

Good fit Use it to configure Sentry in React apps with React Router, TanStack Router, Redux, Vite, or webpack, including error monitoring, tracing, session replay, profiling, and logging.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/getsentry/sentry-for-ai
agentmods
npx agentmods add skills/getsentry/sentry-for-ai/sentry-react-sdk

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sentry-react-sdk

README.md
[![agentmods](https://agentmods.dev/badge/skills/getsentry/sentry-for-ai/sentry-react-sdk/github.svg)](https://agentmods.dev/skills/getsentry/sentry-for-ai/sentry-react-sdk)
Your own site
<a href="https://agentmods.dev/skills/getsentry/sentry-for-ai/sentry-react-sdk"><img src="https://agentmods.dev/badge/skills/getsentry/sentry-for-ai/sentry-react-sdk/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sentry-react-sdk

Your own site · 80×15
<a href="https://agentmods.dev/skills/getsentry/sentry-for-ai/sentry-react-sdk"><img src="https://agentmods.dev/badge/skills/getsentry/sentry-for-ai/sentry-react-sdk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,797 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.04797
Opus 5.5 $0.00030 $0.01919
Sonnet 5.5 $0.00015 $0.00959
Haiku 4.5 $0.00008 $0.00480

Measured 1mo ago against content hash 6f275429138a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sentry-react-sdk scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

skills-legacy/sentry-react-sdk/SKILL.md · 485 lines

How it starts

The opening of the file, as written. The whole thing — 485 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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"'

# Check for existing Sentry
cat package.json | grep '"@sentry/'

# Detect router and framework mode hints
cat package.json | grep -E '"react-router-dom"|"react-router"|"@react-router/"|"@tanstack/react-router"|"@sentry/react-router"'

# Detect state management
cat package.json | grep -E '"redux"|"@reduxjs/toolkit"'

# Detect build tool
ls vite.config.ts vite.config.js webpack.config.js craco.config.js 2>/dev/null
cat package.json | grep -E '"vite"|"react-scripts"|"webpack"'

# Detect logging libraries
cat package.json | grep -E '"pino"|"winston"|"loglevel"'

# Check for companion backend in adjacent directories
ls ../backend ../server ../api 2>/dev/null
cat ../go.mod ../requirements.txt ../Gemfile ../pom.xml 2>/dev/null | head -3

What to determine:

Question Impact
React 19+? Use reactErrorHandler() hook pattern
React <19? Use Sentry.ErrorBoundary
@sentry/react already present? Skip install, go straight to feature config
React Router Framework mode indicators (@sentry/react-router, @react-router/*)? Use sentry-react-router-framework-sdk
react-router-dom v5 / v6 / v7? Determines which router integration to use
@tanstack/react-router? Use tanstackRouterBrowserTracingIntegration()
Redux in use? Recommend createReduxEnhancer()
Vite detected? Source maps via sentryVitePlugin
CRA (react-scripts)? Source maps via @sentry/webpack-plugin in CRACO
Backend directory found? Trigger Phase 4 cross-link suggestion

Read the full file on GitHub · 485 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 485 lines · 76 tokens per session scan A 6f275429138a

Subscribe to this mod's changes

sentry-react-sdk is a skill published in the GitHub repository getsentry/sentry-for-ai (271 stars, last pushed 2d ago), licensed MIT. It adds 76 tokens to every session and 4,797 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

sentry-react-sdk

Full Sentry SDK setup for React. Use when asked to "add Sentry to React", "install @sentry/react", or configure error monitoring, tracing, session replay, profiling, or logging for React applications. Supports React 16+, React Router v5-v7 non-framework mode, TanStack Router, Redux, Vite, and webpack.

is-bo/fullstack-forge-skill · 76 tokens

sentry-react-sdk

Full Sentry SDK setup for React. Use when asked to "add Sentry to React", "install @sentry/react", or configure error monitoring, tracing, session replay, profiling, or logging for React applications. Supports React 16+, React Router v5-v7, TanStack Router, Redux, Vite, and webpack.

getsentry/sentry-agent-skills · 73 tokens

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

material-ui-tailwind

Integrates Material UI with Tailwind CSS v4 using cascade layers (enableCssLayer, @layer order) and documents Tailwind v3 interoperability (preflight, important, injectFirst, portals). Use when combining MUI with Tailwind utilities, slotProps className, or theme token bridges.

mui/material-ui · 67 tokens

r3f-best-practices

React Three Fiber (R3F) and Poimandres ecosystem best practices. Use when writing, reviewing, or optimizing R3F code. Triggers on tasks involving @react-three/fiber, @react-three/drei, zustand, @react-three/postprocessing, @react-three/rapier, or leva.

zebbern/claude-code-guide · 74 tokens

git-safety

Git safety rules. INVOKE WHEN: git push, force push, git reset, git clean, destructive git, push force, reset hard. NEVER force push or do destructive git operations.

tamagui/tamagui · 0 tokens