[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DQ1WETWG83FEEX257K43TP":3,"skill-same:01M7DQ1WETWG83FEEX257K43TP":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M7DQ1WETWG83FEEX257K43TP","sentry-react-sdk",null,"Full Sentry SDK setup for React. Use when asked to \"add Sentry to React\", \"install @sentry\u002Freact\", 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.","Hazek-dc\u002FPresensiGuru_FaceNet_EMAR","Hazek-dc","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F75208960?v=4","01M7DEQV5B4YGS86A81DYH81DR","Hazek","01M7DEQV5XP4TM0C6NTHXCXCHR",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-react-sdk\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sentry-react-sdk\ndescription: Full Sentry SDK setup for React. Use when asked to \"add Sentry to React\", \"install @sentry\u002Freact\", 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.\nlicense: Apache-2.0\ncategory: sdk-setup\nparent: sentry-sdk-setup\ndisable-model-invocation: true\n---\n\n> [All Skills](..\u002F..\u002FSKILL_TREE.md) > [SDK Setup](..\u002Fsentry-sdk-setup\u002FSKILL.md) > React SDK\n\n# Sentry React SDK\n\nOpinionated wizard that scans your React project and guides you through complete Sentry setup.\n\n## Invoke This Skill When\n\n- User asks to \"add Sentry to React\" or \"set up Sentry\" in a React app\n- User wants error monitoring, tracing, session replay, profiling, or logging in React\n- User mentions `@sentry\u002Freact`, React Sentry SDK, or Sentry error boundaries\n- User wants to monitor React Router v5\u002Fv6\u002Fv7 non-framework navigation, Redux state, or component performance\n\nIf project is React Router **Framework mode** using `@sentry\u002Freact-router`, use `sentry-react-router-framework-sdk` instead of this skill.\n\n> **Note:** SDK versions and APIs below reflect current Sentry docs at time of writing (`@sentry\u002Freact` ≥8.0.0).\n> Always verify against [docs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Freact\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Freact\u002F) before implementing.\n\n---\n\n## Phase 1: Detect\n\nRun these commands to understand the project before making any recommendations:\n\n```bash\n# Detect React version\ncat package.json | grep -E '\"react\"|\"react-dom\"'\n\n# Check for existing Sentry\ncat package.json | grep '\"@sentry\u002F'\n\n# Detect router and framework mode hints\ncat package.json | grep -E '\"react-router-dom\"|\"react-router\"|\"@react-router\u002F\"|\"@tanstack\u002Freact-router\"|\"@sentry\u002Freact-router\"'\n\n# Detect state management\ncat package.json | grep -E '\"redux\"|\"@reduxjs\u002Ftoolkit\"'\n\n# Detect build tool\nls vite.config.ts vite.config.js webpack.config.js craco.config.js 2>\u002Fdev\u002Fnull\ncat package.json | grep -E '\"vite\"|\"react-scripts\"|\"webpack\"'\n\n# Detect logging libraries\ncat package.json | grep -E '\"pino\"|\"winston\"|\"loglevel\"'\n\n# Check for companion backend in adjacent directories\nls ..\u002Fbackend ..\u002Fserver ..\u002Fapi 2>\u002Fdev\u002Fnull\ncat ..\u002Fgo.mod ..\u002Frequirements.txt ..\u002FGemfile ..\u002Fpom.xml 2>\u002Fdev\u002Fnull | head -3\n```\n\n**What to determine:**\n\n| Question | Impact |\n|----------|--------|\n| React 19+? | Use `reactErrorHandler()` hook pattern |\n| React \u003C19? | Use `Sentry.ErrorBoundary` |\n| `@sentry\u002Freact` already present? | Skip install, go straight to feature config |\n| React Router Framework mode indicators (`@sentry\u002Freact-router`, `@react-router\u002F*`)? | Use `sentry-react-router-framework-sdk` |\n| `react-router-dom` v5 \u002F v6 \u002F v7? | Determines which router integration to use |\n| `@tanstack\u002Freact-router`? | Use `tanstackRouterBrowserTracingIntegration()` |\n| Redux in use? | Recommend `createReduxEnhancer()` |\n| Vite detected? | Source maps via `sentryVitePlugin` |\n| CRA (`react-scripts`)? | Source maps via `@sentry\u002Fwebpack-plugin` in CRACO |\n| Backend directory found? | Trigger Phase 4 cross-link suggestion |\n\n---\n\n## Phase 2: Recommend\n\nPresent a concrete recommendation based on what you found. Don't ask open-ended questions — lead with a proposal:\n\n**Recommended (core coverage):**\n- ✅ **Error Monitoring** — always; captures unhandled errors, React error boundaries, React 19 hooks\n- ✅ **Tracing** — React SPAs benefit from page load, navigation, and API call tracing\n- ✅ **Session Replay** — recommended for user-facing apps; records sessions around errors\n\n**Optional (enhanced observability):**\n- ⚡ **Logging** — structured logs via `Sentry.logger.*`; recommend when structured log search is needed\n- ⚡ **Profiling** — JS Self-Profiling API (⚠️ experimental; requires cross-origin isolation headers)\n\n**Recommendation logic:**\n\n| Feature | Recommend when... |\n|---------|------------------|\n| Error Monitoring | **Always** — non-negotiable baseline |\n| Tracing | **Always for React SPAs** — page load + navigation spans are high-value |\n| Session Replay | User-facing app, login flows, or checkout pages |\n| Logging | App needs structured log search or log-to-trace correlation |\n| Profiling | Performance-critical app; server sends `Document-Policy: js-profiling` header |\n\n**React-specific extras:**\n- React 19 detected → set up `reactErrorHandler()` on `createRoot`\n- React Router v5\u002Fv6\u002Fv7 non-framework detected → configure matching router integration (see Phase 3)\n- React Router Framework mode detected → switch to `sentry-react-router-framework-sdk`\n- Redux detected → add `createReduxEnhancer()` to Redux store\n- Vite detected → configure `sentryVitePlugin` for source maps (essential for readable stack traces)\n\nPropose: *\"I recommend setting up Error Monitoring + Tracing + Session Replay. Want me to also add Logging or Profiling?\"*\n\n---\n\n## Phase 3: Guide\n\n### Install\n\n```bash\nnpm install @sentry\u002Freact --save\n```\n\n### Create `src\u002Finstrument.ts`\n\nSentry must initialize **before any other code runs**. Put `Sentry.init()` in a dedicated sidecar file:\n\n```typescript\nimport * as Sentry from \"@sentry\u002Freact\";\n\nSentry.init({\n  dsn: import.meta.env.VITE_SENTRY_DSN, \u002F\u002F Adjust per build tool (see table below)\n  environment: import.meta.env.MODE,\n  release: import.meta.env.VITE_APP_VERSION, \u002F\u002F inject at build time\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Freact\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n\n  integrations: [\n    Sentry.browserTracingIntegration(),\n    Sentry.replayIntegration({\n      maskAllText: true,\n      blockAllMedia: true,\n    }),\n  ],\n\n  \u002F\u002F Tracing\n  tracesSampleRate: 1.0, \u002F\u002F lower to 0.1–0.2 in production\n  tracePropagationTargets: [\"localhost\", \u002F^https:\\\u002F\\\u002Fyourapi\\.io\u002F],\n\n  \u002F\u002F Session Replay\n  replaysSessionSampleRate: 0.1,\n  replaysOnErrorSampleRate: 1.0,\n\n  enableLogs: true,\n});\n```\n\n**DSN environment variable by build tool:**\n\n| Build Tool | Variable Name | Access in code |\n|------------|--------------|----------------|\n| Vite | `VITE_SENTRY_DSN` | `import.meta.env.VITE_SENTRY_DSN` |\n| Create React App | `REACT_APP_SENTRY_DSN` | `process.env.REACT_APP_SENTRY_DSN` |\n| Custom webpack | `SENTRY_DSN` | `process.env.SENTRY_DSN` |\n\n### Entry Point Setup\n\nImport `instrument.ts` as the **very first import** in your entry file:\n\n```tsx\n\u002F\u002F src\u002Fmain.tsx (Vite) or src\u002Findex.tsx (CRA\u002Fwebpack)\nimport \".\u002Finstrument\";              \u002F\u002F ← MUST be first\n\nimport { StrictMode } from \"react\";\nimport { createRoot } from \"react-dom\u002Fclient\";\nimport App from \".\u002FApp\";\n\ncreateRoot(document.getElementById(\"root\")!).render(\n  \u003CStrictMode>\n    \u003CApp \u002F>\n  \u003C\u002FStrictMode>\n);\n```\n\n### React Version-Specific Error Handling\n\n**React 19+** — use `reactErrorHandler()` on `createRoot`:\n\n```tsx\nimport { reactErrorHandler } from \"@sentry\u002Freact\";\n\ncreateRoot(document.getElementById(\"root\")!, {\n  onUncaughtError: reactErrorHandler(),\n  onCaughtError: reactErrorHandler(),\n  onRecoverableError: reactErrorHandler(),\n}).render(\u003CApp \u002F>);\n```\n\n**React \u003C19** — wrap your app in `Sentry.ErrorBoundary`:\n\n```tsx\nimport * as Sentry from \"@sentry\u002Freact\";\n\ncreateRoot(document.getElementById(\"root\")!).render(\n  \u003CSentry.ErrorBoundary fallback={\u003Cp>Something went wrong\u003C\u002Fp>} showDialog>\n    \u003CApp \u002F>\n  \u003C\u002FSentry.ErrorBoundary>\n);\n```\n\nUse `\u003CSentry.ErrorBoundary>` for any sub-tree that should catch errors independently (route sections, widgets, etc.).\n\n### Router Integration\n\nConfigure the matching integration for your router (non-framework mode):\n\n| Router | Integration | Notes |\n|--------|------------|-------|\n| React Router v7 | `reactRouterV7BrowserTracingIntegration` | `useEffect`, `useLocation`, `useNavigationType`, `createRoutesFromChildren`, `matchRoutes` from `react-router` |\n| React Router v6 | `reactRouterV6BrowserTracingIntegration` | `useEffect`, `useLocation`, `useNavigationType`, `createRoutesFromChildren`, `matchRoutes` from `react-router-dom` |\n| React Router v5 | `reactRouterV5BrowserTracingIntegration` | Wrap routes in `withSentryRouting(Route)` |\n| TanStack Router | `tanstackRouterBrowserTracingIntegration(router)` | Pass router instance — no hooks required |\n| No router \u002F custom | `browserTracingIntegration()` | Names transactions by URL path |\n\n**React Router v6\u002Fv7 setup:**\n\n```typescript\n\u002F\u002F in instrument.ts integrations array:\nimport React from \"react\";\nimport {\n  createRoutesFromChildren, matchRoutes,\n  useLocation, useNavigationType,\n} from \"react-router-dom\"; \u002F\u002F or \"react-router\" for v7\nimport * as Sentry from \"@sentry\u002Freact\";\nimport { reactRouterV6BrowserTracingIntegration } from \"@sentry\u002Freact\";\nimport { createBrowserRouter } from \"react-router-dom\";\n\n\u002F\u002F Option A — createBrowserRouter (recommended for v6.4+):\nconst sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV6(createBrowserRouter);\nconst router = sentryCreateBrowserRouter([...routes]);\n\n\u002F\u002F Option B — createBrowserRouter for React Router v7:\n\u002F\u002F const sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV7(createBrowserRouter);\n\n\u002F\u002F Option C — integration with hooks (v6 without data APIs):\nSentry.init({\n  integrations: [\n    reactRouterV6BrowserTracingIntegration({\n      useEffect: React.useEffect,\n      useLocation,\n      useNavigationType,\n      matchRoutes,\n      createRoutesFromChildren,\n    }),\n  ],\n});\n```\n\n**TanStack Router setup:**\n\n```typescript\nimport { tanstackRouterBrowserTracingIntegration } from \"@sentry\u002Freact\";\n\n\u002F\u002F Pass your TanStack router instance:\nSentry.init({\n  integrations: [tanstackRouterBrowserTracingIntegration(router)],\n});\n```\n\n### Redux Integration (when detected)\n\n```typescript\nimport * as Sentry from \"@sentry\u002Freact\";\nimport { configureStore } from \"@reduxjs\u002Ftoolkit\";\n\nconst store = configureStore({\n  reducer: rootReducer,\n  enhancers: (getDefaultEnhancers) =>\n    getDefaultEnhancers().concat(Sentry.createReduxEnhancer()),\n});\n```\n\n### Source Maps Setup (strongly recommended)\n\nWithout source maps, stack traces show minified code. Set up the build plugin to upload source maps automatically:\n\n**Vite (`vite.config.ts`):**\n\n```typescript\nimport { defineConfig } from \"vite\";\nimport react from \"@vitejs\u002Fplugin-react\";\nimport { sentryVitePlugin } from \"@sentry\u002Fvite-plugin\";\n\nexport default defineConfig({\n  build: { sourcemap: \"hidden\" },\n  plugins: [\n    react(),\n    sentryVitePlugin({\n      org: process.env.SENTRY_ORG,\n      project: process.env.SENTRY_PROJECT,\n      authToken: process.env.SENTRY_AUTH_TOKEN,\n    }),\n  ],\n});\n```\n\n**Create React App (via CRACO):**\n\n```bash\nnpm install @craco\u002Fcraco @sentry\u002Fwebpack-plugin --save-dev\n```\n\n```javascript\n\u002F\u002F craco.config.js\nconst { sentryWebpackPlugin } = require(\"@sentry\u002Fwebpack-plugin\");\n\nmodule.exports = {\n  webpack: {\n    plugins: {\n      add: [\n        sentryWebpackPlugin({\n          org: process.env.SENTRY_ORG,\n          project: process.env.SENTRY_PROJECT,\n          authToken: process.env.SENTRY_AUTH_TOKEN,\n        }),\n      ],\n    },\n  },\n};\n```\n\n`SENTRY_ORG` \u002F `SENTRY_PROJECT` \u002F `SENTRY_AUTH_TOKEN` are build-time values; the auth token is a secret (never commit it). For creating the token and wiring it into CI, see [`sentry-source-maps`](..\u002Fsentry-source-maps\u002FSKILL.md).\n\n### For Each Agreed Feature\n\nWalk through features one at a time. Load the reference file, follow its steps, verify before moving on:\n\n| Feature | Reference | Load when... |\n|---------|-----------|-------------|\n| Error Monitoring | `${SKILL_ROOT}\u002Freferences\u002Ferror-monitoring.md` | Always (baseline) |\n| Tracing | `${SKILL_ROOT}\u002Freferences\u002Ftracing.md` | SPA navigation \u002F API call tracing |\n| Session Replay | `${SKILL_ROOT}\u002Freferences\u002Fsession-replay.md` | User-facing app |\n| Logging | `${SKILL_ROOT}\u002Freferences\u002Flogging.md` | Structured log search \u002F log-to-trace |\n| Profiling | `${SKILL_ROOT}\u002Freferences\u002Fprofiling.md` | Performance-critical app |\n| React Features | `${SKILL_ROOT}\u002Freferences\u002Freact-features.md` | Redux, component tracking, source maps, integrations catalog |\n\nFor each feature: `Read ${SKILL_ROOT}\u002Freferences\u002F\u003Cfeature>.md`, follow steps exactly, verify it works.\n\n---\n\n## Configuration Reference\n\n### Key `Sentry.init()` Options\n\n| Option | Type | Default | Notes |\n|--------|------|---------|-------|\n| `dsn` | `string` | — | **Required.** SDK disabled when empty |\n| `environment` | `string` | `\"production\"` | e.g., `\"staging\"`, `\"development\"` |\n| `release` | `string` | — | e.g., `\"my-app@1.0.0\"` or git SHA — links errors to releases |\n| `dataCollection` | `object` | conservative unless set | Fine-grained control over auto-collected categories (`userInfo`, `cookies`, `httpHeaders`, `httpBodies`, `queryParams`, `genAI`). When omitted, the SDK falls back to `sendDefaultPii` (default `false`). Passing the object — even `{}` — flips unset categories to their permissive defaults; opt out per category. |\n| `tracesSampleRate` | `number` | — | 0–1; `1.0` in dev, `0.1–0.2` in prod |\n| `tracesSampler` | `function` | — | Per-transaction sampling; overrides rate |\n| `tracePropagationTargets` | `(string\\|RegExp)[]` | — | Outgoing URLs that receive distributed tracing headers |\n| `replaysSessionSampleRate` | `number` | — | Fraction of all sessions recorded |\n| `replaysOnErrorSampleRate` | `number` | — | Fraction of error sessions recorded |\n| `enableLogs` | `boolean` | `false` | Enable `Sentry.logger.*` API |\n| `attachStacktrace` | `boolean` | `false` | Stack traces on `captureMessage()` calls |\n| `maxBreadcrumbs` | `number` | `100` | Breadcrumbs stored per event |\n| `debug` | `boolean` | `false` | Verbose SDK output to console |\n| `tunnel` | `string` | — | Proxy URL to bypass ad blockers |\n\n### `dataCollection` Options (SDK ≥10.57.0)\n\nFine-grained control over what data the SDK collects. Collection is on by default (with sensitive-value scrubbing); opt out per category:\n\n| Field | Type | Default | Notes |\n|-------|------|---------|-------|\n| `userInfo` | `boolean` | `true` | Collect user id, email, and IP |\n| `cookies` | `boolean \\| { allow: string[] } \\| { deny: string[] }` | `true` | Cookie collection and filtering; `true` = all cookies (sensitive keys filtered) |\n| `httpHeaders.request` | `boolean \\| { allow: string[] } \\| { deny: string[] }` | `true` | HTTP request header collection |\n| `httpHeaders.response` | `boolean \\| { allow: string[] } \\| { deny: string[] }` | `true` | HTTP response header collection |\n| `queryParams` | `boolean \\| { allow: string[] } \\| { deny: string[] }` | `true` | Query parameter collection and filtering |\n| `httpBodies` | `HttpBodyCollectionTarget[]` | `[\"incomingRequest\", \"outgoingRequest\", \"incomingResponse\", \"outgoingResponse\"]` | Collect request\u002Fresponse bodies; options: `'incomingRequest'`, `'outgoingRequest'`, `'incomingResponse'`, `'outgoingResponse'` |\n| `genAI.inputs` | `boolean` | `true` | Record AI model inputs (for AI monitoring) |\n| `genAI.outputs` | `boolean` | `true` | Record AI model outputs (for AI monitoring) |\n| `stackFrameVariables` | `boolean` | `true` | Capture local variable values in stack frames |\n| `frameContextLines` | `number` | `5` | Source code context lines around stack frames |\n\n**Example:** Allow only specific cookies and headers:\n\n```typescript\nSentry.init({\n  dataCollection: {\n    cookies: { allow: ['session', 'user_id'] },\n    httpHeaders: {\n      request: { allow: ['authorization', 'x-request-id'] },\n      response: { deny: ['set-cookie'] },\n    },\n  },\n});\n```\n\n### React Compatibility Matrix\n\n| React Version | Error handling approach | SDK minimum |\n|---------------|------------------------|-------------|\n| React 19+ | `reactErrorHandler()` on `createRoot` | `@sentry\u002Freact` ≥8.0.0 |\n| React 16–18 | `Sentry.ErrorBoundary` component | `@sentry\u002Freact` ≥7.0.0 |\n| React 16 | `componentDidCatch` class boundaries | `@sentry\u002Freact` ≥6.0.0 |\n\n---\n\n## Verification\n\nTrigger test events to confirm Sentry is receiving data:\n\n```tsx\n\u002F\u002F Add a temporary test button anywhere in your app\nimport * as Sentry from \"@sentry\u002Freact\";\n\nfunction SentryTest() {\n  return (\n    \u003C>\n      \u003Cbutton onClick={() => { throw new Error(\"Sentry React test error\"); }}>\n        Test Error\n      \u003C\u002Fbutton>\n      \u003Cbutton onClick={() => Sentry.captureMessage(\"Sentry test message\", \"info\")}>\n        Test Message\n      \u003C\u002Fbutton>\n    \u003C\u002F>\n  );\n}\n```\n\nCheck the Sentry dashboard:\n- **Issues** → error appears within seconds\n- **Traces** → page load and navigation transactions visible\n- **Replays** → session recording visible after page interaction\n- **Logs** → structured log entries if logging enabled\n\nSet `debug: true` in `Sentry.init()` and check the browser console if nothing appears.\n\n---\n\n## Phase 4: Cross-Link\n\nAfter completing React setup, check for a companion backend missing Sentry coverage:\n\n```bash\nls ..\u002Fbackend ..\u002Fserver ..\u002Fapi ..\u002Fgo ..\u002Fpython 2>\u002Fdev\u002Fnull\ncat ..\u002Fgo.mod 2>\u002Fdev\u002Fnull | head -3\ncat ..\u002Frequirements.txt ..\u002Fpyproject.toml 2>\u002Fdev\u002Fnull | head -3\ncat ..\u002FGemfile 2>\u002Fdev\u002Fnull | head -3\ncat ..\u002Fpom.xml 2>\u002Fdev\u002Fnull | grep '\u003CartifactId>' | head -3\n```\n\nIf a backend exists without Sentry configured, suggest the matching skill:\n\n| Backend detected | Suggest skill |\n|-----------------|--------------|\n| Go (`go.mod`) | `sentry-go-sdk` |\n| Python (`requirements.txt`, `pyproject.toml`) | `sentry-python-sdk` |\n| Ruby (`Gemfile`) | `sentry-ruby-sdk` |\n| Java (`pom.xml`, `build.gradle`) | Use `@sentry\u002Fjava` — see [docs.sentry.io\u002Fplatforms\u002Fjava\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjava\u002F) |\n| Node.js (Express, Fastify) | Use `@sentry\u002Fnode` — see [docs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fexpress\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fexpress\u002F) |\n\n---\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Events not appearing | Set `debug: true`, check DSN, open browser console for SDK errors |\n| Source maps not working | Build in production mode (`npm run build`); verify `SENTRY_AUTH_TOKEN` is set |\n| Minified stack traces | Source maps not uploading — check plugin config and auth token |\n| `instrument.ts` not running first | Verify it's the first import in entry file before React\u002Fapp imports |\n| React 19 errors not captured | Confirm `reactErrorHandler()` is passed to all three `createRoot` options |\n| React \u003C19 errors not captured | Ensure `\u003CSentry.ErrorBoundary>` wraps the component tree |\n| Router transactions named `\u003Cunknown>` | Add router integration matching your router version |\n| `tracePropagationTargets` not matching | Check regex escaping; default is `localhost` and your DSN origin only |\n| Session replay not recording | Confirm `replayIntegration()` is in init; check `replaysSessionSampleRate` |\n| Redux actions not in breadcrumbs | Add `Sentry.createReduxEnhancer()` to store enhancers |\n| Ad blockers dropping events | Set `tunnel: \"\u002Fsentry-tunnel\"` and add server-side relay endpoint |\n| High replay storage costs | Lower `replaysSessionSampleRate`; keep `replaysOnErrorSampleRate: 1.0` |\n| Profiling not working | Verify `Document-Policy: js-profiling` header is set on document responses |\n","> [All Skills](..\u002F..\u002FSKILL_TREE.md) > [SDK Setup](..\u002Fsentry-sdk-setup\u002FSKILL.md) > React SDK\n\n# Sentry React SDK\n\nOpinionated wizard that scans your React project and guides you through complete Sentry setup.\n\n## Invoke This Skill When\n\n- User asks to \"add Sentry to React\" or \"set up Sentry\" in a React app\n- User wants error monitoring, tracing, session replay, profiling, or logging in React\n- User mentions `@sentry\u002Freact`, React Sentry SDK, or Sentry error boundaries\n- User wants to monitor React Router v5\u002Fv6\u002Fv7 non-framework navigation, Redux state, or component performance\n\nIf project is React Router **Framework mode** using `@sentry\u002Freact-router`, use `sentry-react-router-framework-sdk` instead of this skill.\n\n> **Note:** SDK versions and APIs below reflect current Sentry docs at time of writing (`@sentry\u002Freact` ≥8.0.0).\n> Always verify against [docs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Freact\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Freact\u002F) before implementing.\n\n---\n\n## Phase 1: Detect\n\nRun these commands to understand the project before making any recommendations:\n\n```bash\n# Detect React version\ncat package.json | grep -E '\"react\"|\"react-dom\"'\n\n# Check for existing Sentry\ncat package.json | grep '\"@sentry\u002F'\n\n# Detect router and framework mode hints\ncat package.json | grep -E '\"react-router-dom\"|\"react-router\"|\"@react-router\u002F\"|\"@tanstack\u002Freact-router\"|\"@sentry\u002Freact-router\"'\n\n# Detect state management\ncat package.json | grep -E '\"redux\"|\"@reduxjs\u002Ftoolkit\"'\n\n# Detect build tool\nls vite.config.ts vite.config.js webpack.config.js craco.config.js 2>\u002Fdev\u002Fnull\ncat package.json | grep -E '\"vite\"|\"react-scripts\"|\"webpack\"'\n\n# Detect logging libraries\ncat package.json | grep -E '\"pino\"|\"winston\"|\"loglevel\"'\n\n# Check for companion backend in adjacent directories\nls ..\u002Fbackend ..\u002Fserver ..\u002Fapi 2>\u002Fdev\u002Fnull\ncat ..\u002Fgo.mod ..\u002Frequirements.txt ..\u002FGemfile ..\u002Fpom.xml 2>\u002Fdev\u002Fnull | head -3\n```\n\n**What to determine:**\n\n| Question | Impact |\n|----------|--------|\n| React 19+? | Use `reactErrorHandler()` hook pattern |\n| React \u003C19? | Use `Sentry.ErrorBoundary` |\n| `@sentry\u002Freact` already present? | Skip install, go straight to feature config |\n| React Router Framework mode indicators (`@sentry\u002Freact-router`, `@react-router\u002F*`)? | Use `sentry-react-router-framework-sdk` |\n| `react-router-dom` v5 \u002F v6 \u002F v7? | Determines which router integration to use |\n| `@tanstack\u002Freact-router`? | Use `tanstackRouterBrowserTracingIntegration()` |\n| Redux in use? | Recommend `createReduxEnhancer()` |\n| Vite detected? | Source maps via `sentryVitePlugin` |\n| CRA (`react-scripts`)? | Source maps via `@sentry\u002Fwebpack-plugin` in CRACO |\n| Backend directory found? | Trigger Phase 4 cross-link suggestion |\n\n---\n\n## Phase 2: Recommend\n\nPresent a concrete recommendation based on what you found. Don't ask open-ended questions — lead with a proposal:\n\n**Recommended (core coverage):**\n- ✅ **Error Monitoring** — always; captures unhandled errors, React error boundaries, React 19 hooks\n- ✅ **Tracing** — React SPAs benefit from page load, navigation, and API call tracing\n- ✅ **Session Replay** — recommended for user-facing apps; records sessions around errors\n\n**Optional (enhanced observability):**\n- ⚡ **Logging** — structured logs via `Sentry.logger.*`; recommend when structured log search is needed\n- ⚡ **Profiling** — JS Self-Profiling API (⚠️ experimental; requires cross-origin isolation headers)\n\n**Recommendation logic:**\n\n| Feature | Recommend when... |\n|---------|------------------|\n| Error Monitoring | **Always** — non-negotiable baseline |\n| Tracing | **Always for React SPAs** — page load + navigation spans are high-value |\n| Session Replay | User-facing app, login flows, or checkout pages |\n| Logging | App needs structured log search or log-to-trace correlation |\n| Profiling | Performance-critical app; server sends `Document-Policy: js-profiling` header |\n\n**React-specific extras:**\n- React 19 detected → set up `reactErrorHandler()` on `createRoot`\n- React Router v5\u002Fv6\u002Fv7 non-framework detected → configure matching router integration (see Phase 3)\n- React Router Framework mode detected → switch to `sentry-react-router-framework-sdk`\n- Redux detected → add `createReduxEnhancer()` to Redux store\n- Vite detected → configure `sentryVitePlugin` for source maps (essential for readable stack traces)\n\nPropose: *\"I recommend setting up Error Monitoring + Tracing + Session Replay. Want me to also add Logging or Profiling?\"*\n\n---\n\n## Phase 3: Guide\n\n### Install\n\n```bash\nnpm install @sentry\u002Freact --save\n```\n\n### Create `src\u002Finstrument.ts`\n\nSentry must initialize **before any other code runs**. Put `Sentry.init()` in a dedicated sidecar file:\n\n```typescript\nimport * as Sentry from \"@sentry\u002Freact\";\n\nSentry.init({\n  dsn: import.meta.env.VITE_SENTRY_DSN, \u002F\u002F Adjust per build tool (see table below)\n  environment: import.meta.env.MODE,\n  release: import.meta.env.VITE_APP_VERSION, \u002F\u002F inject at build time\n\n  dataCollection: {\n    \u002F\u002F To disable sending user data and HTTP bodies, uncomment the lines below. For more info visit:\n    \u002F\u002F https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Freact\u002Fconfiguration\u002Foptions\u002F#dataCollection\n    \u002F\u002F userInfo: false,\n    \u002F\u002F httpBodies: [],\n  },\n\n  integrations: [\n    Sentry.browserTracingIntegration(),\n    Sentry.replayIntegration({\n      maskAllText: true,\n      blockAllMedia: true,\n    }),\n  ],\n\n  \u002F\u002F Tracing\n  tracesSampleRate: 1.0, \u002F\u002F lower to 0.1–0.2 in production\n  tracePropagationTargets: [\"localhost\", \u002F^https:\\\u002F\\\u002Fyourapi\\.io\u002F],\n\n  \u002F\u002F Session Replay\n  replaysSessionSampleRate: 0.1,\n  replaysOnErrorSampleRate: 1.0,\n\n  enableLogs: true,\n});\n```\n\n**DSN environment variable by build tool:**\n\n| Build Tool | Variable Name | Access in code |\n|------------|--------------|----------------|\n| Vite | `VITE_SENTRY_DSN` | `import.meta.env.VITE_SENTRY_DSN` |\n| Create React App | `REACT_APP_SENTRY_DSN` | `process.env.REACT_APP_SENTRY_DSN` |\n| Custom webpack | `SENTRY_DSN` | `process.env.SENTRY_DSN` |\n\n### Entry Point Setup\n\nImport `instrument.ts` as the **very first import** in your entry file:\n\n```tsx\n\u002F\u002F src\u002Fmain.tsx (Vite) or src\u002Findex.tsx (CRA\u002Fwebpack)\nimport \".\u002Finstrument\";              \u002F\u002F ← MUST be first\n\nimport { StrictMode } from \"react\";\nimport { createRoot } from \"react-dom\u002Fclient\";\nimport App from \".\u002FApp\";\n\ncreateRoot(document.getElementById(\"root\")!).render(\n  \u003CStrictMode>\n    \u003CApp \u002F>\n  \u003C\u002FStrictMode>\n);\n```\n\n### React Version-Specific Error Handling\n\n**React 19+** — use `reactErrorHandler()` on `createRoot`:\n\n```tsx\nimport { reactErrorHandler } from \"@sentry\u002Freact\";\n\ncreateRoot(document.getElementById(\"root\")!, {\n  onUncaughtError: reactErrorHandler(),\n  onCaughtError: reactErrorHandler(),\n  onRecoverableError: reactErrorHandler(),\n}).render(\u003CApp \u002F>);\n```\n\n**React \u003C19** — wrap your app in `Sentry.ErrorBoundary`:\n\n```tsx\nimport * as Sentry from \"@sentry\u002Freact\";\n\ncreateRoot(document.getElementById(\"root\")!).render(\n  \u003CSentry.ErrorBoundary fallback={\u003Cp>Something went wrong\u003C\u002Fp>} showDialog>\n    \u003CApp \u002F>\n  \u003C\u002FSentry.ErrorBoundary>\n);\n```\n\nUse `\u003CSentry.ErrorBoundary>` for any sub-tree that should catch errors independently (route sections, widgets, etc.).\n\n### Router Integration\n\nConfigure the matching integration for your router (non-framework mode):\n\n| Router | Integration | Notes |\n|--------|------------|-------|\n| React Router v7 | `reactRouterV7BrowserTracingIntegration` | `useEffect`, `useLocation`, `useNavigationType`, `createRoutesFromChildren`, `matchRoutes` from `react-router` |\n| React Router v6 | `reactRouterV6BrowserTracingIntegration` | `useEffect`, `useLocation`, `useNavigationType`, `createRoutesFromChildren`, `matchRoutes` from `react-router-dom` |\n| React Router v5 | `reactRouterV5BrowserTracingIntegration` | Wrap routes in `withSentryRouting(Route)` |\n| TanStack Router | `tanstackRouterBrowserTracingIntegration(router)` | Pass router instance — no hooks required |\n| No router \u002F custom | `browserTracingIntegration()` | Names transactions by URL path |\n\n**React Router v6\u002Fv7 setup:**\n\n```typescript\n\u002F\u002F in instrument.ts integrations array:\nimport React from \"react\";\nimport {\n  createRoutesFromChildren, matchRoutes,\n  useLocation, useNavigationType,\n} from \"react-router-dom\"; \u002F\u002F or \"react-router\" for v7\nimport * as Sentry from \"@sentry\u002Freact\";\nimport { reactRouterV6BrowserTracingIntegration } from \"@sentry\u002Freact\";\nimport { createBrowserRouter } from \"react-router-dom\";\n\n\u002F\u002F Option A — createBrowserRouter (recommended for v6.4+):\nconst sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV6(createBrowserRouter);\nconst router = sentryCreateBrowserRouter([...routes]);\n\n\u002F\u002F Option B — createBrowserRouter for React Router v7:\n\u002F\u002F const sentryCreateBrowserRouter = Sentry.wrapCreateBrowserRouterV7(createBrowserRouter);\n\n\u002F\u002F Option C — integration with hooks (v6 without data APIs):\nSentry.init({\n  integrations: [\n    reactRouterV6BrowserTracingIntegration({\n      useEffect: React.useEffect,\n      useLocation,\n      useNavigationType,\n      matchRoutes,\n      createRoutesFromChildren,\n    }),\n  ],\n});\n```\n\n**TanStack Router setup:**\n\n```typescript\nimport { tanstackRouterBrowserTracingIntegration } from \"@sentry\u002Freact\";\n\n\u002F\u002F Pass your TanStack router instance:\nSentry.init({\n  integrations: [tanstackRouterBrowserTracingIntegration(router)],\n});\n```\n\n### Redux Integration (when detected)\n\n```typescript\nimport * as Sentry from \"@sentry\u002Freact\";\nimport { configureStore } from \"@reduxjs\u002Ftoolkit\";\n\nconst store = configureStore({\n  reducer: rootReducer,\n  enhancers: (getDefaultEnhancers) =>\n    getDefaultEnhancers().concat(Sentry.createReduxEnhancer()),\n});\n```\n\n### Source Maps Setup (strongly recommended)\n\nWithout source maps, stack traces show minified code. Set up the build plugin to upload source maps automatically:\n\n**Vite (`vite.config.ts`):**\n\n```typescript\nimport { defineConfig } from \"vite\";\nimport react from \"@vitejs\u002Fplugin-react\";\nimport { sentryVitePlugin } from \"@sentry\u002Fvite-plugin\";\n\nexport default defineConfig({\n  build: { sourcemap: \"hidden\" },\n  plugins: [\n    react(),\n    sentryVitePlugin({\n      org: process.env.SENTRY_ORG,\n      project: process.env.SENTRY_PROJECT,\n      authToken: process.env.SENTRY_AUTH_TOKEN,\n    }),\n  ],\n});\n```\n\n**Create React App (via CRACO):**\n\n```bash\nnpm install @craco\u002Fcraco @sentry\u002Fwebpack-plugin --save-dev\n```\n\n```javascript\n\u002F\u002F craco.config.js\nconst { sentryWebpackPlugin } = require(\"@sentry\u002Fwebpack-plugin\");\n\nmodule.exports = {\n  webpack: {\n    plugins: {\n      add: [\n        sentryWebpackPlugin({\n          org: process.env.SENTRY_ORG,\n          project: process.env.SENTRY_PROJECT,\n          authToken: process.env.SENTRY_AUTH_TOKEN,\n        }),\n      ],\n    },\n  },\n};\n```\n\n`SENTRY_ORG` \u002F `SENTRY_PROJECT` \u002F `SENTRY_AUTH_TOKEN` are build-time values; the auth token is a secret (never commit it). For creating the token and wiring it into CI, see [`sentry-source-maps`](..\u002Fsentry-source-maps\u002FSKILL.md).\n\n### For Each Agreed Feature\n\nWalk through features one at a time. Load the reference file, follow its steps, verify before moving on:\n\n| Feature | Reference | Load when... |\n|---------|-----------|-------------|\n| Error Monitoring | `${SKILL_ROOT}\u002Freferences\u002Ferror-monitoring.md` | Always (baseline) |\n| Tracing | `${SKILL_ROOT}\u002Freferences\u002Ftracing.md` | SPA navigation \u002F API call tracing |\n| Session Replay | `${SKILL_ROOT}\u002Freferences\u002Fsession-replay.md` | User-facing app |\n| Logging | `${SKILL_ROOT}\u002Freferences\u002Flogging.md` | Structured log search \u002F log-to-trace |\n| Profiling | `${SKILL_ROOT}\u002Freferences\u002Fprofiling.md` | Performance-critical app |\n| React Features | `${SKILL_ROOT}\u002Freferences\u002Freact-features.md` | Redux, component tracking, source maps, integrations catalog |\n\nFor each feature: `Read ${SKILL_ROOT}\u002Freferences\u002F\u003Cfeature>.md`, follow steps exactly, verify it works.\n\n---\n\n## Configuration Reference\n\n### Key `Sentry.init()` Options\n\n| Option | Type | Default | Notes |\n|--------|------|---------|-------|\n| `dsn` | `string` | — | **Required.** SDK disabled when empty |\n| `environment` | `string` | `\"production\"` | e.g., `\"staging\"`, `\"development\"` |\n| `release` | `string` | — | e.g., `\"my-app@1.0.0\"` or git SHA — links errors to releases |\n| `dataCollection` | `object` | conservative unless set | Fine-grained control over auto-collected categories (`userInfo`, `cookies`, `httpHeaders`, `httpBodies`, `queryParams`, `genAI`). When omitted, the SDK falls back to `sendDefaultPii` (default `false`). Passing the object — even `{}` — flips unset categories to their permissive defaults; opt out per category. |\n| `tracesSampleRate` | `number` | — | 0–1; `1.0` in dev, `0.1–0.2` in prod |\n| `tracesSampler` | `function` | — | Per-transaction sampling; overrides rate |\n| `tracePropagationTargets` | `(string\\|RegExp)[]` | — | Outgoing URLs that receive distributed tracing headers |\n| `replaysSessionSampleRate` | `number` | — | Fraction of all sessions recorded |\n| `replaysOnErrorSampleRate` | `number` | — | Fraction of error sessions recorded |\n| `enableLogs` | `boolean` | `false` | Enable `Sentry.logger.*` API |\n| `attachStacktrace` | `boolean` | `false` | Stack traces on `captureMessage()` calls |\n| `maxBreadcrumbs` | `number` | `100` | Breadcrumbs stored per event |\n| `debug` | `boolean` | `false` | Verbose SDK output to console |\n| `tunnel` | `string` | — | Proxy URL to bypass ad blockers |\n\n### `dataCollection` Options (SDK ≥10.57.0)\n\nFine-grained control over what data the SDK collects. Collection is on by default (with sensitive-value scrubbing); opt out per category:\n\n| Field | Type | Default | Notes |\n|-------|------|---------|-------|\n| `userInfo` | `boolean` | `true` | Collect user id, email, and IP |\n| `cookies` | `boolean \\| { allow: string[] } \\| { deny: string[] }` | `true` | Cookie collection and filtering; `true` = all cookies (sensitive keys filtered) |\n| `httpHeaders.request` | `boolean \\| { allow: string[] } \\| { deny: string[] }` | `true` | HTTP request header collection |\n| `httpHeaders.response` | `boolean \\| { allow: string[] } \\| { deny: string[] }` | `true` | HTTP response header collection |\n| `queryParams` | `boolean \\| { allow: string[] } \\| { deny: string[] }` | `true` | Query parameter collection and filtering |\n| `httpBodies` | `HttpBodyCollectionTarget[]` | `[\"incomingRequest\", \"outgoingRequest\", \"incomingResponse\", \"outgoingResponse\"]` | Collect request\u002Fresponse bodies; options: `'incomingRequest'`, `'outgoingRequest'`, `'incomingResponse'`, `'outgoingResponse'` |\n| `genAI.inputs` | `boolean` | `true` | Record AI model inputs (for AI monitoring) |\n| `genAI.outputs` | `boolean` | `true` | Record AI model outputs (for AI monitoring) |\n| `stackFrameVariables` | `boolean` | `true` | Capture local variable values in stack frames |\n| `frameContextLines` | `number` | `5` | Source code context lines around stack frames |\n\n**Example:** Allow only specific cookies and headers:\n\n```typescript\nSentry.init({\n  dataCollection: {\n    cookies: { allow: ['session', 'user_id'] },\n    httpHeaders: {\n      request: { allow: ['authorization', 'x-request-id'] },\n      response: { deny: ['set-cookie'] },\n    },\n  },\n});\n```\n\n### React Compatibility Matrix\n\n| React Version | Error handling approach | SDK minimum |\n|---------------|------------------------|-------------|\n| React 19+ | `reactErrorHandler()` on `createRoot` | `@sentry\u002Freact` ≥8.0.0 |\n| React 16–18 | `Sentry.ErrorBoundary` component | `@sentry\u002Freact` ≥7.0.0 |\n| React 16 | `componentDidCatch` class boundaries | `@sentry\u002Freact` ≥6.0.0 |\n\n---\n\n## Verification\n\nTrigger test events to confirm Sentry is receiving data:\n\n```tsx\n\u002F\u002F Add a temporary test button anywhere in your app\nimport * as Sentry from \"@sentry\u002Freact\";\n\nfunction SentryTest() {\n  return (\n    \u003C>\n      \u003Cbutton onClick={() => { throw new Error(\"Sentry React test error\"); }}>\n        Test Error\n      \u003C\u002Fbutton>\n      \u003Cbutton onClick={() => Sentry.captureMessage(\"Sentry test message\", \"info\")}>\n        Test Message\n      \u003C\u002Fbutton>\n    \u003C\u002F>\n  );\n}\n```\n\nCheck the Sentry dashboard:\n- **Issues** → error appears within seconds\n- **Traces** → page load and navigation transactions visible\n- **Replays** → session recording visible after page interaction\n- **Logs** → structured log entries if logging enabled\n\nSet `debug: true` in `Sentry.init()` and check the browser console if nothing appears.\n\n---\n\n## Phase 4: Cross-Link\n\nAfter completing React setup, check for a companion backend missing Sentry coverage:\n\n```bash\nls ..\u002Fbackend ..\u002Fserver ..\u002Fapi ..\u002Fgo ..\u002Fpython 2>\u002Fdev\u002Fnull\ncat ..\u002Fgo.mod 2>\u002Fdev\u002Fnull | head -3\ncat ..\u002Frequirements.txt ..\u002Fpyproject.toml 2>\u002Fdev\u002Fnull | head -3\ncat ..\u002FGemfile 2>\u002Fdev\u002Fnull | head -3\ncat ..\u002Fpom.xml 2>\u002Fdev\u002Fnull | grep '\u003CartifactId>' | head -3\n```\n\nIf a backend exists without Sentry configured, suggest the matching skill:\n\n| Backend detected | Suggest skill |\n|-----------------|--------------|\n| Go (`go.mod`) | `sentry-go-sdk` |\n| Python (`requirements.txt`, `pyproject.toml`) | `sentry-python-sdk` |\n| Ruby (`Gemfile`) | `sentry-ruby-sdk` |\n| Java (`pom.xml`, `build.gradle`) | Use `@sentry\u002Fjava` — see [docs.sentry.io\u002Fplatforms\u002Fjava\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjava\u002F) |\n| Node.js (Express, Fastify) | Use `@sentry\u002Fnode` — see [docs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fexpress\u002F](https:\u002F\u002Fdocs.sentry.io\u002Fplatforms\u002Fjavascript\u002Fguides\u002Fexpress\u002F) |\n\n---\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|----------|\n| Events not appearing | Set `debug: true`, check DSN, open browser console for SDK errors |\n| Source maps not working | Build in production mode (`npm run build`); verify `SENTRY_AUTH_TOKEN` is set |\n| Minified stack traces | Source maps not uploading — check plugin config and auth token |\n| `instrument.ts` not running first | Verify it's the first import in entry file before React\u002Fapp imports |\n| React 19 errors not captured | Confirm `reactErrorHandler()` is passed to all three `createRoot` options |\n| React \u003C19 errors not captured | Ensure `\u003CSentry.ErrorBoundary>` wraps the component tree |\n| Router transactions named `\u003Cunknown>` | Add router integration matching your router version |\n| `tracePropagationTargets` not matching | Check regex escaping; default is `localhost` and your DSN origin only |\n| Session replay not recording | Confirm `replayIntegration()` is in init; check `replaysSessionSampleRate` |\n| Redux actions not in breadcrumbs | Add `Sentry.createReduxEnhancer()` to store enhancers |\n| Ad blockers dropping events | Set `tunnel: \"\u002Fsentry-tunnel\"` and add server-side relay endpoint |\n| High replay storage costs | Lower `replaysSessionSampleRate`; keep `replaysOnErrorSampleRate: 1.0` |\n| Profiling not working | Verify `Document-Policy: js-profiling` header is set on document responses |\n",{"name":5,"parent":24,"license":15,"category":25,"description":7,"disable-model-invocation":26},"sentry-sdk-setup","sdk-setup",true,"main","b1e4ffadb4f933bbbcaa03a83f8b9929171ac28b",".agents\u002Fskills\u002Fsentry-react-sdk",0,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR","https:\u002F\u002Fgithub.com\u002FHazek-dc","2026-10-22 08:36:44",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill sentry-react-sdk",{"tool":40,"command":41},"bunx","bunx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill sentry-react-sdk",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Hazek-dc\u002FPresensiGuru_FaceNet_EMAR --skill sentry-react-sdk","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-react-sdk\u002FSKILL.md",[47,53,57,61,65,69],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Ferror-monitoring.md","REFERENCE","参考文档",48721,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-react-sdk\u002Freferences\u002Ferror-monitoring.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Flogging.md",12285,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-react-sdk\u002Freferences\u002Flogging.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fprofiling.md",9682,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-react-sdk\u002Freferences\u002Fprofiling.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Freact-features.md",41284,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-react-sdk\u002Freferences\u002Freact-features.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fsession-replay.md",40281,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-react-sdk\u002Freferences\u002Fsession-replay.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Ftracing.md",46070,"https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fsentry-react-sdk\u002Freferences\u002Ftracing.md",[74,82,89,96,103,110],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7DS6GGYRZAYD33PFPS8Z2T3","testing-best-practices","Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.","MIT","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftesting-best-practices\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7DS6BC3AW7HTPRHE2TTVKWM","tailwindcss-development","Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex\u002Fgrid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3\u002Fv4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML\u002FCSS component, CSS file audits, build tool configuration, and vanilla CSS.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Ftailwindcss-development\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7DS66GE6B11MYJDVC74HXM4","laravel-best-practices","Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Flaravel-best-practices\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7DS5ZW717DMS6P1E90AQCKV","infer-conventions","Use this skill to analyze how a Laravel application is actually written and record its conventions as shared rules. Trigger when the user wants to detect, infer, document, or standardize project conventions or coding style, set up or grow `.ai\u002Frules`, resolve mixed or conflicting patterns (e.g. \"are we using Form Requests or inline validation?\"), or onboard agents and teammates to \"how we do things here\". Covers: a systematic sweep of ~49 Laravel convention dimensions (validation, models, architecture, testing, frontend, database, console), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai\u002Frules` files by hand.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finfer-conventions\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7DS5W12RGCVJTFQJ1N0GB8E","inertia-react-development","Develops Inertia.js v2 React client-side applications. Activates when creating React pages, forms, or navigation; using \u003CLink>, \u003CForm>, useForm, or router; working with deferred props, prefetching, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Finertia-react-development\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7DS5PVDPMPCWSK2RXPDC9BB","deploying-to-cloud","Deploys and manages Laravel applications on Laravel Cloud using the `cloud` CLI. Use when the user wants to deploy an app, ship to Cloud, create or manage applications, environments, databases, caches, object storage, queues, domains, instances, background processes, secrets, compute, scheduled tasks, or Laravel Cloud infrastructure; or check billing, usage, or spend. Triggers on deployment, shipping, Cloud management, environment setup, database provisioning, billing or usage queries, the `cloud` CLI, and Laravel Cloud deployment troubleshooting.","https:\u002F\u002Fgithub.com\u002FHazek-dc\u002FPresensiGuru_FaceNet_EMAR\u002Fblob\u002Fmain\u002Fattendance-web\u002F.claude\u002Fskills\u002Fdeploying-to-cloud\u002FSKILL.md",[],[]]