adding-error-tracking
БесплатноБез исполняемых скриптовНе проверенAdd Sentry error tracking, performance monitoring, and source maps to a web application.
от spencerpauly★ 905 звёзд на GitHubОб этом скилле
Add Error Tracking (Sentry)
Use this skill when the user asks to add error tracking, crash reporting, exception monitoring, or performance tracing.
Steps
Detect the framework — check
package.json, config files, and directory structure to determine the stack (Next.js, React, Node.js, Python/Django/Flask, etc.).Install the SDK
- Next.js:
npx @sentry/wizard@latest -i nextjs - React (Vite):
npm install @sentry/react - Node.js:
npm install @sentry/node - Python:
pip install sentry-sdk
- Next.js:
Initialize Sentry
For Next.js, the wizard creates
sentry.client.config.ts,sentry.server.config.ts, andsentry.edge.config.ts. Verify they exist and contain the DSN.For React (Vite), init in
main.tsx:import * as Sentry from "@sentry/react"; Sentry.init({ dsn: import.meta.env.VITE_SENTRY_DSN, integrations: [Sentry.browserTracingIntegration()], tracesSampleRate: 1.0, });For Node.js, init at the very top of the entry file before any other imports.
Add environment variables
NEXT_PUBLIC_SENTRY_DSN=https://[email protected]/... SENTRY_AUTH_TOKEN=sntrys_... SENTRY_ORG=your-org SENTRY_PROJECT=your-projectAdd error boundary — wrap the app (or critical subtrees) with
Sentry.ErrorBoundaryand a fallback UI.Source maps — for production builds, configure the Sentry webpack/vite plugin to upload source maps. For Next.js, this is handled by
withSentryConfiginnext.config.js.Test the integration — add a temporary button that throws an error to verify events appear in the Sentry dashboard.
Notes
- Set
tracesSampleRateto a lower value (e.g.0.1) in production to control costs. - Add
sentry.propertiesand.sentryclircto.gitignore. - Never commit
SENTRY_AUTH_TOKEN.
Установить adding-error-tracking в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл adding-error-tracking?
Add Sentry error tracking, performance monitoring, and source maps to a web application.
Как установить скилл adding-error-tracking?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл adding-error-tracking запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic