spencerpauly/awesome-cursor-skills/adding-error-tracking

Claude Code and agent skill by spencerpauly/awesome-cursor-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Add Sentry error tracking, performance monitoring, and source maps to a web application.

Install

npx vskill@latest install spencerpauly/awesome-cursor-skills/adding-error-tracking

SKILL.md

The same SKILL.md was published earlier as spencerpauly/awesome-cursor-skills/adding-error-tracking.

Add Error Tracking (Sentry)

Use this skill when the user asks to add error tracking, crash reporting, exception monitoring, or performance tracing.

Steps

  1. Detect the framework — check package.json, config files, and directory structure to determine the stack (Next.js, React, Node.js, Python/Django/Flask, etc.).
  1. 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
  1. Initialize Sentry
  • For Next.js, the wizard creates sentry.client.config.ts, sentry.server.config.ts, and sentry.edge.config.ts. Verify they exist and contain the DSN.
  • For React (Vite), init in main.tsx:

```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.
  1. Add environment variables

`` NEXT_PUBLIC_SENTRY_DSN=https://...@sentry.io/... SENTRY_AUTH_TOKEN=sntrys_... SENTRY_ORG=your-org SENTRY_PROJECT=your-project ``

  1. Add error boundary — wrap the app (or critical subtrees) with Sentry.ErrorBoundary and a fallback UI.
  1. Source maps — for production builds, configure the Sentry webpack/vite plugin to upload source maps. For Next.js, this is handled by withSentryConfig in next.config.js.
  1. Test the integration — add a temporary button that throws an error to verify events appear in the Sentry dashboard.

Notes

  • Set tracesSampleRate to a lower value (e.g. 0.1) in production to control costs.
  • Add sentry.properties and .sentryclirc to .gitignore.
  • Never commit SENTRY_AUTH_TOKEN.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
683
Repository forks
108
7-day trend score
33

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/spencerpauly/awesome-cursor-skills/adding-error-tracking/badge)](https://verified-skill.com/skills/spencerpauly/awesome-cursor-skills/adding-error-tracking)

Something wrong with this skill or its page? Tell us.