Agent skill · software engineering · jeremylongshore

sentry-install-auth

Install and configure Sentry SDK authentication with DSN setup.

Why this skill is useful

Provides specific commands and environment variable configurations for integrating Sentry SDK in Node.js and Python projects, which the AI may not reliably generate on its own.

What it needs

Requires node, npm, pip installed locally. Requires sentry account access. About 4k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.

What this skill does

Sentry Install & Auth Overview Install the Sentry SDK, configure DSN-based authentication, and verify error tracking is operational. Covers Node.js (@sentry/node), browser (@sentry/browser), and Python (sentry-sdk) with environment-based configuration and auth token setup for CLI/CI workflows. Prerequisites Node.js 18.19+ or 20.6+ (required for ESM support in Sentry SDK v8) Package manager: npm, pnpm, or pip Sentry account with a project created at https://sentry.io DSN from Project Settings > Client Keys (DSN) For CLI/CI: auth token from https://sentry.io/settings/auth-tokens/ Instructions Step 1 — Install the SDK Node.js / TypeScript: Browser / Framework-specific: Python: Step 2 — Store the DSN securely The DSN (Data Source Name) tells the SDK where to send events. It looks like https://<key>@<org>.ingest.sentry.io/<project-id>. Never hardcode it — use environment variables. For production, store the DSN in your secret manager (AWS Secrets Manager, GCP Secret Manager, Vault, etc.) and inject it at deploy time. Step 3 — Initialize the SDK Node.js (ESM) — create instrument.mjs at project root: This file MUST be imported before any other modules. The --import flag ensures Sentry instruments HTTP, database, and framework integrations via monkey-patching at load time. Start your app with the --import flag: Or in package.json: Browser: Python: Step 4 — Verify the installation Send a test event and confirm it appears in the Sentry dashboard: Node.js: Python: Check the Issues tab in your Sentry project within 30 seconds. If the message appears, authentication is working. Step 5 — Set up auth token for CLI and CI The DSN authenticates the SDK for sending events. For the Sentry CLI (source maps, releases, deploys), you need a separate auth token. Generate one at https://sentry.io/settings/auth-tokens/ with scopes: project:releases — create releases and upload source maps org:read — read organization data In CI, store SENTRYAUTHTOKEN as a secret environment variable. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills jeremylongshore/sentry-install-auth--705552

View the source on GitHub

Browse the @skills marketplace