sentry-local-dev-loop
Installation
SKILL.md
Sentry Local Dev Loop
Overview
Configure Sentry for local development with environment-aware DSN routing, debug-mode verbosity, full-capture sample rates, beforeSend inspection, Sentry Spotlight for offline event viewing, and sentry-cli source map verification. All configuration uses environment variables so nothing leaks into commits.
Prerequisites
@sentry/nodev8+ installed (TypeScript/Node) orsentry-sdkv2+ installed (Python)- Separate Sentry project created for development (different DSN from production)
.envfile withSENTRY_DSN_DEVandNODE_ENV=development- Network access to
*.ingest.sentry.io(or use Spotlight for fully offline work)
Instructions
Step 1 -- Environment-Aware Configuration
Create an initialization file that routes events to the correct Sentry project based on environment, enables debug logging in dev, and captures 100% of traces locally: