Sentry Setup AI Monitoring
LiorVainer/data-israel
Setup Sentry AI Agent Monitoring in any project. An agent skill from LiorVainer/data-israel.
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…
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/sentry-instrument .claude/skills/sentry-instrument && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sentry-instrument" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/src/skills/sentry-instrument into .claude/skills/sentry-instrument/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/getsentry/sentry-for-ai/tree/main/src/skills/sentry-instrumentType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .agents/skills && cp -r skills-src/src/skills/sentry-instrument .agents/skills/sentry-instrument && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sentry-instrument" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/src/skills/sentry-instrument into .agents/skills/sentry-instrument/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/src/skills/sentry-instrument .cursor/skills/sentry-instrument && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sentry-instrument" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/src/skills/sentry-instrument into .cursor/skills/sentry-instrument/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/getsentry/sentry-for-ai.git --path src/skills/sentry-instrument--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/src/skills/sentry-instrument .gemini/skills/sentry-instrument && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sentry-instrument" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/src/skills/sentry-instrument into .gemini/skills/sentry-instrument/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install getsentry/sentry-for-ai sentry-instrumentInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .github/skills && cp -r skills-src/src/skills/sentry-instrument .github/skills/sentry-instrument && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sentry-instrument" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/src/skills/sentry-instrument into .github/skills/sentry-instrument/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install getsentry/sentry-for-ai sentry-instrument --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/getsentry/sentry-for-ai.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/src/skills/sentry-instrument .opencode/skills/sentry-instrument && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sentry-instrument" agent skill from https://github.com/getsentry/sentry-for-ai/tree/main/src/skills/sentry-instrument into .opencode/skills/sentry-instrument/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sentry-instrument", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sentry-instrumentInstrument 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…
Sentry Instrument is an agent skill from getsentry/sentry-for-ai, published by the product's own GitHub organization. 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, Eve, Flue, the Cloudflare Agents SDK, and Workers AI). Use to add Sentry to a project or…
Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `references.yml`).
It sits in AI & LLM Engineering, covering Backend development, LLM observability and Building AI agents. It works with Sentry, LangChain, OpenAI and Pydantic AI. The repository describes itself as: Teach your AI coding assistant how to use Sentry - setup, debugging, alerts, and more. The licence is Apache-2.0.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d8fd106. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
docs.sentry.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sentry Instrument loads about 3.2k tokens when it runs. Until then it costs about 141 tokens; SKILL.md has 1,313 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from getsentry/sentry-for-ai at commit d8fd106, republished under its Apache-2.0 licence (© getsentry). 1,313 words, ~3,191 tokens.
.claude/skills/sentry-instrument/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.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), per-signal strategy under
references/concepts/, project provisioning
in references/new-project.md, and the confirm-it-works
loop in 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.
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/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 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 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 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.
For each signal the scope calls for:
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 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 the user already said “add tracing, you pick the
defaults” — go straight to the HOW.references/sdk-docs.md describes — and
apply the code.Signals this skill wires up: error monitoring, tracing/performance, profiling (requires tracing), logging, metrics, cron check-in code, session replay, user feedback, uptime monitors, and AI/LLM monitoring.
Uptime has no SDK code. Instead of fetching a docs page, read
references/concepts/uptime.md, confirm the production
URL with the user, and create the monitor with the MCP’s create_uptime_monitor.
For AI/LLM monitoring, keep input and output capture enabled by default because the Agent Tracing transcript and debugging workflow rely on prompts, responses, tool arguments, and tool results. If the user raises a privacy, security, compliance, or volume concern, follow the docs to disable or scope capture instead. Preserve any capture restrictions they have already chosen.
When naming custom span or log attributes, open only the matching domain reference below. Prefer these stable keys over invented names. Deprecated attributes are omitted.
angularappartawsbrowsercacheclientcloudcloudflarecodeculturedbdeviceerroreventexceptionfaasfileflaggcpgen_aigeneralgraphqlgrpchttpjsonrpcjvmkoaloggermcpmdcmessagingmiddlewarenavigationnelnetworkosotelparamsprocessreactremixresourcerpcscoresentryserverservicesessionstatethreadtimbertrpcuiurluseruser_agentvercelFor a fresh install the spine already verified the first error.
For an added signal, close the loop with
references/setup-verification.md: trigger the
signal by exercising the real code path that emits it, poll the MCP to confirm it
arrived, surface the direct issue URL, and confirm the stack trace is readable.
The task isn’t done until the event is seen in Sentry — don’t stop at “go check your
dashboard.”
After the first error or a new signal is confirmed, offer concrete follow-ups without auto-running them:
dataCollection options:
https://docs.sentry.io/platforms/javascript/guides/<guide>/configuration/options/#dataCollection
(for example, cloudflare for Workers and Pages, nextjs for Next.js, or node for
Node.js). Use the
JavaScript data collection options
when no platform-specific guide applies.
Keep this optional; change capture only if requested.
Do not offer this JavaScript SDK option for Python, PHP, unknown SDKs, or
framework-owned OTLP setups without a JavaScript Sentry SDK.references/concepts/uptime.md covers finding the
real URL (production events in Sentry first) and checking it before creating.init).references/debug-artifacts/index.md routes to
the artifact procedure per platform, and
references/releases/index.md routes to releases —
the release/environment tag at minimum (a one-option change worth making before
anything ships), and the CI pipeline with commits and deploys if the user wants it.
For a release feature that’s already wired but not working, sentry-setup-releases is
the diagnostic entry point.The signal’s code is in place, and a real event of that type has been confirmed in Sentry via the MCP (with the issue URL surfaced) — or, if nothing landed, the failure has been named and troubleshot rather than papered over with “check your dashboard.”
© getsentry, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in src/skills/sentry-instrument of getsentry/sentry-for-ai.
Open the folder on GitHubat commit d8fd106
Sentry Instrument next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sentry Instrument this skillgetsentry/sentry-for-ai | 268 | — | ~3.2k | Automated safety check: Pass | Apache-2.0 | |
| Sentry Setup AI MonitoringLiorVainer/data-israel | 130 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Failproof AI SDK IntegrationFailproofAI/failproofai | 5.3k | — | ~6k | Automated safety check: Pass | Custom licence | |
| Agent Inspectrajudandigam/agent-inspect | 165 | — | ~424 | Automated safety check: Pass | MIT | |
| Bootstrapping Agentairbytehq/airbyte-agent-sdk | 135 | — | ~1.7k | Automated safety check: Notes | Custom licence | |
| Langfusedavila7/claude-code-templates | 32k | 6 repos | ~1.4k | Automated safety check: Pass | MIT |
LiorVainer/data-israel
Setup Sentry AI Agent Monitoring in any project. An agent skill from LiorVainer/data-israel.
FailproofAI/failproofai
Helps instrument a custom Python or TypeScript agent to record events for Failproof AI, verify what gets written, and run an evaluator worker that scores the runs.
rajudandigam/agent-inspect
Local evidence debugger and trajectory-test toolkit for TypeScript AI agents.
airbytehq/airbyte-agent-sdk
Wires up an Airbyte connector for use in a PydanticAI, Claude SDK, or other agent.
davila7/claude-code-templates
Expert in Langfuse - the open-source LLM observability platform.
Arize-ai/phoenix
Generates onboarding code snippets for Phoenix tracing integrations and wires them into the project onboarding UI.
getsentry/sentry-for-ai
Full Sentry SDK setup for Elixir. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for Go. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for Next.js. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for PHP. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for Python. An agent skill from getsentry/sentry-for-ai.
getsentry/sentry-for-ai
Full Sentry SDK setup for React Router Framework mode. An agent skill from getsentry/sentry-for-ai.
Categories
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…. Sentry Instrument is an agent skill from getsentry/sentry-for-ai, published by the product's own GitHub organization. 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, Eve, Flue, the Cloudflare Agents SDK, and Workers AI).
Sentry Instrument fits situations like: add Sentry to a project; capture more than errors.
Run `npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a claude-code`. Or copy the skill folder (src/skills/sentry-instrument in getsentry/sentry-for-ai) into .claude/skills/sentry-instrument in your project. Claude Code loads it when a task matches its description.
Run `npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a codex`. Or copy the skill folder (src/skills/sentry-instrument in getsentry/sentry-for-ai) into .agents/skills/sentry-instrument in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add getsentry/sentry-for-ai --skill sentry-instrument -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sentry-instrument, .gemini/skills/sentry-instrument, .github/skills/sentry-instrument and .opencode/skills/sentry-instrument in your project.
SKILL.md names no scripts, command-line tools or credentials: Sentry Instrument is instructions for the agent only. Our summary lists: Node.js.
SKILL.md names 1 domain. In commands or code: docs.sentry.io; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sentry Instrument is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sentry Instrument: Sentry Setup AI Monitoring (LiorVainer/data-israel, 130 stars), Failproof AI SDK Integration (FailproofAI/failproofai, 5.3k stars), Agent Inspect (rajudandigam/agent-inspect, 165 stars) and Bootstrapping Agent (airbytehq/airbyte-agent-sdk, 135 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry-for-ai, which has 268 GitHub stars. The repository holds 32 skills in this directory. The repository was last updated on October 7, 2026.
Source: getsentry/sentry-for-ai on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.