configure-plugin/skills/configure-sentry/SKILL.md
Sentry error tracking setup. Use when installing the Sentry SDK, fixing hardcoded DSNs, or adding source map upload for frontend, Next.js, Node, or Python.
npx skillsauth add laurigates/claude-plugins configure-sentryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Check and configure Sentry error tracking integration against project standards.
| Use this skill when... | Use another approach when... | |------------------------|------------------------------| | Setting up Sentry error tracking for a new project | Debugging a specific Sentry issue or alert (use Sentry MCP server) | | Checking Sentry SDK installation and configuration compliance | Querying Sentry events or performance data (use Sentry API/MCP) | | Fixing hardcoded DSNs or missing environment variable references | Managing Sentry project settings in the Sentry dashboard | | Adding source map upload and release tracking to CI/CD | Configuring Sentry alerting rules or notification channels | | Verifying Sentry configuration across frontend, Next.js, Node.js, or Python projects | Installing a different error tracking tool (e.g., Bugsnag, Rollbar) | | Adding profiling, structured logging, or enrichment helpers | Configuring Sentry alerting rules or notification channels |
find . -maxdepth 1 -name \'package.json\'find . -maxdepth 1 -name \'pyproject.toml\'find . -maxdepth 1 -name \'requirements.txt\'find . -maxdepth 1 -name '.project-standards.yaml' -type fgrep -o '"@sentry/[^"]*"' package.jsongrep 'sentry' pyproject.tomlfind . -maxdepth 3 -name "*sentry*" -type ffind . -maxdepth 1 -name 'next.config.*'find src -maxdepth 1 -name 'instrumentation*' -type fgrep -rl 'SENTRY_DSN' .env* .github/workflows/find .github/workflows -maxdepth 1 -name '*.yml'Skills referenced: sentry (MCP server for Sentry API)
Parse these from $ARGUMENTS:
| Flag | Description |
|------|-------------|
| --check-only | Report status without offering fixes |
| --fix | Apply all fixes automatically without prompting |
| --type <type> | Override project type detection (frontend, nextjs, python, node) |
CRITICAL: Before configuring Sentry SDKs, verify latest versions:
Use WebSearch or WebFetch to verify current SDK versions before configuring Sentry.
Execute this Sentry compliance check:
Determine the project type to select the appropriate SDK and configuration:
.project-standards.yaml for project_type fieldpackage.json with next dependency (check for @sentry/nextjs)package.json with vue/react dependencies (without Next.js)package.json with Node.js backend (express, fastify, etc.)pyproject.toml or requirements.txt--type flag is provided, use that value insteadCheck for Sentry SDK based on detected project type:
Next.js:
@sentry/nextjs in package.json dependencies@sentry/profiling-node (recommended for server profiling)Frontend (Vue/React):
@sentry/vue or @sentry/react in package.json dependencies@sentry/vite-plugin for source mapsNode.js Backend:
@sentry/node in package.json dependencies@sentry/profiling-node (recommended)Python:
sentry-sdk in pyproject.toml or requirements.txtRead the Sentry initialization files and check against the compliance tables in REFERENCE.md. Validate:
Additional checks for Next.js projects:
src/instrumentation.ts exists with register() and onRequestError exportssrc/instrumentation-client.ts exists with client-side Sentry initsentry.server.config.ts and sentry.edge.config.ts exist at project rootnext.config.mjs wraps config with withSentryConfig()tunnelRoute: "/monitoring")hideSourceMaps, deleteSourcemapsAfterUpload)@sentry/profiling-node listed in serverExternalPackagessrc/app/error.tsx, src/app/global-error.tsx)enableLogs: true)beforeSendbeforeSendTransaction (drop health checks, static assets)Print a compliance report with:
If --check-only, stop here.
@sentry/vite-plugin for source mapsVerify Sentry integration in CI/CD:
SENTRY_AUTH_TOKEN secret configuredIf missing, offer to add the recommended workflow steps from REFERENCE.md.
Update or create .project-standards.yaml:
standards_version: "2025.1"
project_type: "<detected>"
last_configured: "<timestamp>"
components:
sentry: "2025.1"
| Variable | Description | Required |
|----------|-------------|----------|
| SENTRY_DSN | Sentry Data Source Name (server-side) | Yes |
| NEXT_PUBLIC_SENTRY_DSN | Sentry DSN for client-side (Next.js) | Next.js only |
| SENTRY_ENVIRONMENT | Environment name (server-side) | Recommended |
| NEXT_PUBLIC_SENTRY_ENVIRONMENT | Environment name (client-side, Next.js) | Next.js only |
| SENTRY_ORG | Sentry organization slug | For source maps |
| SENTRY_PROJECT | Sentry project slug | For source maps |
| SENTRY_AUTH_TOKEN | Auth token for CI/CD | For source maps |
| NEXT_PUBLIC_SENTRY_SKIP_BUILD | Skip Sentry webpack plugin in builds | Container builds |
Never commit DSN or auth tokens. Use environment variables or secrets management.
For detailed configuration check tables, initialization templates, and CI/CD workflow examples, see REFERENCE.md.
| Context | Command |
|---------|---------|
| Quick compliance check | /configure:sentry --check-only |
| Auto-fix all issues | /configure:sentry --fix |
| Frontend project only | /configure:sentry --type frontend |
| Next.js project | /configure:sentry --type nextjs |
| Python project only | /configure:sentry --type python |
| Node.js project only | /configure:sentry --type node |
| Check for hardcoded DSNs | rg -l 'https://[a-f0-9]*@.*sentry\.io' --type-not env |
/configure:all - Run all compliance checks/configure:status - Quick compliance overview/configure:workflows - GitHub Actions integrationsentry MCP server - Sentry API access for project verificationtesting
Verify accumulated bug claims at upstream HEAD and dedup against trackers before filing issues. Use when filing upstream reports from backlogs, audit docs, or git-history findings.
documentation
Gate outward-bound text (upstream issues, docs, PR bodies) through isolated haiku fresh-reader critique before publishing. Use when an artifact must survive a reader with zero project context.
tools
Suggest improvements to SKILL.md content, descriptions, or tool config from eval results. Use when raising pass rates, fixing triggering, or iterating on a skill after evaluation.
tools
deadbranch CLI for stale-branch cleanup — dry-run preview, TUI or non-interactive delete, protects main/develop/WIP. Use when asked to clean up branches, prune branches, or remove stale branches.