home / skills / jeremylongshore / claude-code-plugins-plus-skills / sentry-local-dev-loop
/plugins/saas-packs/sentry-pack/skills/sentry-local-dev-loop
This skill configures an environment-aware Sentry local dev loop to enable debug mode and separate development projects for testing errors.
npx playbooks add skill jeremylongshore/claude-code-plugins-plus-skills --skill sentry-local-dev-loopReview the files below or copy the command above to add this skill to your agents.
---
name: sentry-local-dev-loop
description: |
Execute set up local development workflow with Sentry.
Use when configuring Sentry for development environments,
setting up debug mode, or testing error capture locally.
Trigger with phrases like "sentry local dev", "sentry development",
"debug sentry", "sentry dev environment".
allowed-tools: Read, Write, Edit, Bash(npm:*), Grep
version: 1.0.0
license: MIT
author: Jeremy Longshore <[email protected]>
---
# Sentry Local Dev Loop
## Prerequisites
- Sentry SDK installed
- Development environment set up
- Separate Sentry project for development (recommended)
See `{baseDir}/references/implementation.md` for detailed implementation guide.
## Output
- Environment-aware Sentry configuration
- Debug logging enabled for development
- Separate project/DSN for development events
## Error Handling
See `{baseDir}/references/errors.md` for comprehensive error handling.
## Examples
See `{baseDir}/references/examples.md` for detailed examples.
## Resources
- [Sentry Environment Config](https://docs.sentry.io/platforms/javascript/configuration/environments/)
- [Sentry Debug Mode](https://docs.sentry.io/platforms/javascript/configuration/options/#debug)
This skill sets up a local development workflow for Sentry so you can safely capture and inspect errors during development. It focuses on environment-aware configuration, enabling debug logging, and routing events to a separate development project or DSN. Use it to avoid polluting production data while iterating on error capture and instrumentation.
The skill configures the Sentry SDK to detect the current environment and apply development-specific settings: debug mode on, verbose logging, and an alternate DSN or sample rate for local events. It can toggle behavior based on environment variables and inject helpers for test error generation and local replay. The setup emphasizes minimal change to production code paths by isolating development configuration behind an env flag.
Can I reuse my production DSN for local testing?
You can, but it is not recommended. Use a separate development DSN or project to avoid mixing telemetry and exposing prod data during local tests.
How do I enable Sentry debug logging only locally?
Control the Sentry SDK option 'debug' via an environment variable and set it true when SENTRY_ENV=development; ensure your deployment configs set it false.