Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/sentry-local-dev-loop

@0d57af8
Run it yourself

Configure Sentry for local development with environment-aware settings. Use when setting up dev vs prod DSN routing, enabling debug mode, tuning sample rates for local work, or testing source maps locally. Trigger with phrases like "sentry local dev", "sentry development config", "debug sentry locally", "sentry dev environment", "sentry spotlight".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/sentry-local-dev-loop

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesimplementation.md

≈353 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Implementation Guide

Step 1: Environment-Based Configuration

import * as Sentry from '@sentry/node';

const isDev = process.env.NODE_ENV === 'development';

Sentry.init({
  dsn: process.env.SENTRY_DSN,
  environment: isDev ? 'development' : 'production',

  // Higher sample rates in dev for testing
  tracesSampleRate: isDev ? 1.0 : 0.1,

  // Enable debug mode in development
  debug: isDev,

  // Don't send errors in development (optional)
  enabled: !isDev || process.env.SENTRY_DEV_ENABLED === 'true',
});

Step 2: Development-Only DSN

# .env.development
SENTRY_DSN=https://dev-key@org.ingest.sentry.io/dev-project

# .env.production
SENTRY_DSN=https://prod-key@org.ingest.sentry.io/prod-project

Step 3: Debug Output

// Enable verbose logging in development
if (isDev) {
  Sentry.addIntegration(new Sentry.Integrations.Debug({
    stringify: true,
  }));
}

Step 4: Local Testing Script

# test-sentry.sh
#!/bin/bash
export NODE_ENV=development
export SENTRY_DEV_ENABLED=true
node -e "
const Sentry = require('@sentry/node');
Sentry.init({ dsn: process.env.SENTRY_DSN, debug: true });
Sentry.captureMessage('Local dev test');
console.log('Check Sentry dashboard');
"

Tons of Skills by Intent Solutions | jeremylongshore.com

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides guidance and configuration templates for integrating Sentry into local development workflows. It adheres to security best practices by utilizing environment variables for DSN management, recommending exclusion of secrets from version control, and providing scripts to detect hardcoded credentials.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.51.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
compatibility
Designed for Claude Code
All 9 allowed tools
ReadWriteEditBash(npm:*)Bash(node:*)Bash(npx:*)Bash(python:*)GrepGlob
Other metadata
tags
[
  "saas",
  "sentry",
  "development",
  "debugging",
  "workflow",
  "devtools",
  "environment"
]

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/sentry-local-dev-loop