Back to Skills

sentry

Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry CLI; perform read-only queries using the `sentry` command.

23,167stars1,566forksUpdated 7/2/2026

Security Assessment

Medium Risk(65/100)

Detected risks:

Remote Code Execution([SKILL.md] curl https://cli.sentry.dev/install -fsS | bash)
Sensitive File Access([SKILL.md] .env)
Security Score65/100

About sentry

Inspect Sentry issues and events, summarize recent production errors, and pull basic health data through the read-only `sentry` command-line interface. All operations are queries and nothing is mutated, making it a safe way to triage production observability from the terminal. Authentication is handled by running `sentry auth login` or setting a `SENTRY_AUTH_TOKEN` environment variable, and the CLI auto-detects the target organization and project from DSNs found in `.env` files, source code, config defaults, and directory names, so an explicit `<org>/<project>` is only needed when detection fails or picks the wrong target.

Use it when someone asks for a rundown of open production issues, the details of a specific error, or the events behind an issue. Core commands cover listing issues ordered by recency, viewing an issue by its short ID such as `ABC-123`, listing an issue's events, and viewing a single event's detail. Two AI-powered helpers go further: `sentry issue explain` performs root-cause analysis and `sentry issue plan` produces a fix plan. For endpoints without a dedicated command, `sentry api` offers raw access and `sentry schema` helps discover available endpoints.

Sensible defaults keep output focused with a 24-hour time range, the production environment, and a limit of 20, while `--json` optionally combined with `--fields` yields machine-readable results and reduces output size. Output-formatting rules emphasize showing titles, short IDs, counts, and first- and last-seen timestamps ordered by most recent, while strictly redacting PII such as emails and IPs, never printing raw stack traces, and never echoing auth tokens.

FAQ

Is this skill read-only?

Yes. It performs read-only queries using the `sentry` command and does not modify any Sentry data.

How do I authenticate the Sentry CLI?

Run `sentry auth login` or set `SENTRY_AUTH_TOKEN` as an environment variable, then confirm with `sentry auth status`. You should set the token locally rather than pasting it in chat.

Do I need to specify the org and project?

Usually no. The CLI auto-detects org and project from DSNs in `.env` files, source code, config defaults, and directory names; supply `<org>/<project>` only if detection fails or picks the wrong target.

What default filters are applied to queries?

A time range of 24h, the production environment, and a limit of 20. These can be overridden with `--period`, the `--query` environment filter, and `--limit`.

Can it help find a root cause or a fix?

Yes. `sentry issue explain` provides AI-powered root-cause analysis and `sentry issue plan` produces an AI fix plan; `sentry api` covers endpoints without a dedicated command.

All Files

4 files
agents/openai.yaml0.3 KB
View
SKILL.md3.7 KB
View
LICENSE.txt10.5 KB
View
assets/sentry-small.svg0.6 KB
View

Install sentry

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill

Repository

openai/skills