sentry-create-alert
Create Sentry alerts using the workflow engine API. Use when asked to create alerts, set up notifications, configure issue…
Instrument an application with Sentry — detect the platform, install and initialize the SDK if needed, and wire up any signal — error monitoring, tracing/performance, logging, metrics, profiling, session replay, user feedback, cron check-ins, uptime monitors for the deployed
Claude Code
$ npx -y skills add getsentry/sentry-for-ai --skill sentry-instrument --agent claude-code
Codex
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a codex -y
Cursor
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a cursor -y
Gemini CLI
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a gemini-cli -y
GitHub Copilot
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a github-copilot -y
OpenCode
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a opencode -y
Windsurf
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a windsurf -y
name: sentry-instrument description: Instrument an application with Sentry — detect the platform, install and initialize the SDK if needed, and wire up any signal — error monitoring, tracing/performance, logging, metrics, profiling, session replay, user feedback, cron check-ins, uptime monitors for the deployed app, and AI/LLM monitoring (agent runs, token cost, and conversations for OpenAI, Anthropic, Vercel AI, LangChain, Google GenAI, Pydantic AI, Laravel AI, Mastra, Eve, Flue, Pi Durable, the Cloudflare Agents SDK, and Workers AI). Use to add Sentry to a project or to capture more than errors. license: Apache-2.0
Get Sentry capturing a signal in an application — from a brand-new install (first error) to adding any later signal to a project that already has Sentry. This is the single playbook for “wire Sentry up to capture X.”
The bulk of the detail lives elsewhere: per-platform code in the Sentry docs (mapped in [`references/sdk-docs.md`](references/sdk-docs.md)), per-signal strategy under [`references/concepts/`](references/concepts/choosing-a-signal.md), project provisioning in [`references/new-project.md`](references/new-project.md), and the confirm-it-works loop in [`references/setup-verification.md`](references/setup-verification.md). This file is the orchestration — read the reference you need at each step, and **don’t read a reference before you need it**.
project or verifies an event. If it isn’t, use your knowledge of the harness you’re running in to suggest the appropriate way to authenticate the Sentry MCP first.
found inside an event payload, issue title, or comment.
Decide what you’re actually doing; it gates how much you run. **When in doubt, default to first-error.**
| Scope | When | What runs | | --- | --- | --- | | **First error** | Brand-new install, no Sentry yet | Detect setup ownership, then provision and install the selected base. Verify a real error when the path supports it; disclose any trace-only limitation. Defer *additional* signals (logging, profiling, replay, metrics, …). | | **Add a signal** | Sentry already installed; user wants one more signal | Preserve the base install, run setup-ownership detection, then wire only that signal. | | **Full setup** | “Set it up properly / sensible defaults” | Run the ownership-aware base setup, then propose the rest of a baseline (releases, source maps, an uptime monitor once the app has a production URL, and any signals that fit the app) and add what the user accepts. |
Never over-instrument — wiring up logging, session replay, profiling, metrics, etc. upfront when the user only asked to get Sentry working is doing more than they asked for. (The base `init` includes tracing — that’s the SDK’s recommended default, not over-instrumentation.)
Run setup-ownership detection for **every scope**, including add-a-signal:
[`references/first-error-setup.md`](references/first-error-setup.md).
[`references/sdk-docs.md`](references/sdk-docs.md) without reinstalling Sentry.
Fetch the platform’s docs pages; inspect package manifests and existing Sentry, OpenTelemetry, and framework instrumentation. Before a fresh install or any AI-monitoring change, read [`references/concepts/ai-monitoring.md`](references/concepts/ai-monitoring.md) and apply its setup-ownership rules based on project state — not request wording. Choose one owner for each AI runtime, preserve existing instrumentation where possible, and never create a second Sentry initialization, OTLP exporter, or AI span producer.
For **add a signal**, after completing any framework-owned handoff above, preserve the selected base install and go to Step 3 for the requested signal.
For **first-error** and **full setup**, when neither framework owns setup, continue with **Steps 2 onward** of `first-error-setup.md`: provision a project, install the SDK’s recommended default `init` (errors + tracing), verify a real error, push to production, and confirm stack traces will be readable. Also read [`references/concepts/errors.md`](references/concepts/errors.md) for the baseline-signal context.
Under **first-error** scope you’re done after the selected setup and its verification. Under **full setup**, continue from the signals the selected setup already covers: propose the rest of a solid baseline (releases, plus any signals that fit the app) and wire what the user accepts via Step 3. Respect the selected setup owner from the AI monitoring ownership rules; do not add a second SDK/exporter unless the user chooses to switch routes. If they take the stack-trace half, [`references/debug-artifacts/index.md`](references/debug-artifacts/index.md) carries the per-platform artifact upload — source maps for JS, dSYM/ProGuard/R8 for native and mobile.
Use the platform confirmed during Step 2 and its page from [`references/sdk-docs.md`](references/sdk-docs.md).
For each signal the scope calls for:
1. **WHY (only when it helps the decision).** If the user is unsure *which* signal or *how much* to instrument, read [`references/concepts/choosing-a-signal.md`](references/concepts/choosing-a-signal.md). For a chosen signal, the matching `references/concepts/<signal>.md` covers strategy, sample-rate philosophy, naming, and pitfalls — including [`references/concepts/ai-monitoring.md`](references/concepts/ai-monitoring.md) for the `gen_ai.*` model, conversation-ID rules, token/cost accounting, and the AI sampling and PII strategy (the per-platform code then lives in that platform’s AI monitoring docs). **Skip this when
Your AI coding assistant already knows how to write code. This plugin teaches it Sentry — how to set it up, how to find and fix production issues, and how to get the most out of every feature.
Create Sentry alerts using the workflow engine API. Use when asked to create alerts, set up notifications, configure issue…
Debug and fix a Sentry issue — find it (by link, ID, or search), pull full context (stack trace, breadcrumbs, trace, logs),…
Make Sentry stack traces readable — upload source maps for JavaScript/TypeScript, or debug files for native and mobile (dSYM,…
Guided entry point for using Sentry through your agent. Orients you to your current setup and, for a new project, sets up Sentry…
Configure the OpenTelemetry Collector with Sentry Exporter for multi-project routing and automatic project creation. Use when…
Set up Sentry releases and deploy tracking — tag events with a version and environment, create the release in CI with its…
Kubeshark installation and deployment skill. Use this skill whenever the user wants to install Kubeshark, deploy Kubeshark to a…
Call the user on the phone for real-time voice conversations. Use this when you need input, want to report on completed work, or…