Sentry
OpenAIOfficialCreated by OpenAIDistributed by OpenAI
- Skill
- Tool integration
- Cloud and DevOps
- Apache-2.0
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The Sentry skill provides a structured way for AI agents to interact with the Sentry API to retrieve observability data. It focuses on read-only operations, allowing users to inspect production issues, query specific events, and summarize error trends without modifying system state. The skill utilizes a bundled Python script to handle API communication, pagination, and error retries, ensuring consistent data retrieval while maintaining security through environment-based authentication.
What it does
- Lists unresolved production issues filtered by time range and environment.
- Retrieves detailed information for specific Sentry issues.
- Fetches event logs associated with a particular issue ID.
- Provides granular event details including release, timestamp, and environment.
- Resolves human-readable issue short IDs to internal system IDs.
- Redacts sensitive PII and avoids printing raw stack traces in output.
When to use it
- When you need to summarize recent production errors or health trends.
- When investigating a specific issue reported by a user or monitoring system.
- When you need to verify the status or frequency of a recurring bug.
- When performing routine health checks on production environments.
Advantages
- Ensures secure, read-only access to observability data.
- Automates pagination and retry logic for reliable API interaction.
- Standardizes output formatting for issue lists and event details.
- Promotes security by requiring local environment variable configuration for tokens.
Usage examples
- “List the top 10 open issues for prod in the last 24h.”
- The agent queries the Sentry API and returns an ordered list of issues including titles, short IDs, status, and occurrence counts.
- “Show me the details for issue ABC-123.”
- The agent resolves the short ID to an internal ID and retrieves the full issue details, including the culprit and last seen timestamp.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/openai/sentry-mcf2/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip sentry.zip -d .agents/skills
Documentation by OpenAI
Sentry (Read-only Observability)
Quick start
If not already authenticated, ask the user to provide a valid
SENTRY_AUTH_TOKEN(read-only scopes such asproject:read,event:read) or to log in and create one before running commands.Set
SENTRY_AUTH_TOKENas an env var.Optional defaults:
SENTRY_ORG,SENTRY_PROJECT,SENTRY_BASE_URL.Defaults: org/project
{your-org}/{your-project}, time range24h, environmentprod, limit 20 (max 50).Always call the Sentry API (no heuristics, no caching).
If the token is missing, give the user these steps:
Create a Sentry auth token: https://sentry.io/settings/account/api/auth-tokens/
Create a token with read-only scopes such as
project:read,event:read, andorg:read.Set
SENTRY_AUTH_TOKENas an environment variable in their system.Offer to guide them through setting the environment variable for their OS/shell if needed.
Never ask the user to paste the full token in chat. Ask them to set it locally and confirm when ready.
Core tasks (use bundled script)
Use scripts/sentry_api.py for deterministic API calls. It handles pagination and retries once on transient errors.
Bundled script path
export SENTRY_API="plugins/sentry/skills/sentry/scripts/sentry_api.py"If you are running from an installed plugin copy instead of this repo checkout, use the same
skills/sentry/scripts/sentry_api.py path inside the installed plugin directory.
1) List issues (ordered by most recent)
python3 "$SENTRY_API" \
--org {your-org} \
--project {your-project} \
list-issues \
--environment prod \
--time-range 24h \
--limit 20 \
--query "is:unresolved"2) Resolve an issue short ID to issue ID
python3 "$SENTRY_API" \
--org {your-org} \
--project {your-project} \
list-issues \
--query "ABC-123" \
--limit 1Use the returned id for issue detail or events.
3) Issue detail
python3 "$SENTRY_API" \
--org {your-org} \
issue-detail \
12345678904) Issue events
python3 "$SENTRY_API" \
--org {your-org} \
issue-events \
1234567890 \
--environment prod \
--time-range 24h \
--limit 205) Event detail (no stack traces by default)
python3 "$SENTRY_API" \
--org {your-org} \
--project {your-project} \
event-detail \
abcdef1234567890API requirements
Always use these endpoints (GET only):
List issues:
/api/0/projects/{org_slug}/{project_slug}/issues/Issue detail:
/api/0/organizations/{org_slug}/issues/{issue_id}/Events for issue:
/api/0/organizations/{org_slug}/issues/{issue_id}/events/Event detail:
/api/0/projects/{org_slug}/{project_slug}/events/{event_id}/
Inputs and defaults
org_slug: default to{your-org}(required for issue detail, issue events, and event detail).project_slug: default to{your-project}(required for list issues and event detail).time_range: default24h(pass asstatsPeriodfor list issues and issue events).environment: defaultprod(used by list issues and issue events).limit: default 20, max 50 (paginate until limit reached).search_query: optionalqueryparameter.issue_short_id: resolve via list-issues query first.
Output formatting rules
Issue list: show title, short_id, status, first_seen, last_seen, count, environments, top_tags; order by most recent.
Event detail: include culprit, timestamp, environment, release, url.
If no results, state explicitly.
Redact PII in output (emails, IPs). Do not print raw stack traces.
Never echo auth tokens.
Golden test inputs
Org:
{your-org}Project:
{your-project}Issue short ID:
{ABC-123}
Example prompt: “List the top 10 open issues for prod in the last 24h.” Expected: ordered list with titles, short IDs, counts, last seen.
Files
- ATTRIBUTION.mdAdded by AutoGineer862 B
- LICENSE.txt10.5 KiB
- SKILL.md4.0 KiB
- agents/openai.yaml316 B
- assets/sentry-small.svg661 B
- assets/sentry.png2.0 KiB
- scripts/sentry_api.pyScript7.7 KiB
assets/sentry-small.svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 50 44" fill="currentColor" aria-hidden="true"> <path d="M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"/> </svg>
Requirements and compatibility
Written for: OpenAI Codex
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Python
Security
What our scanner noticed· Low risk
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Created by
- OpenAI
- Publisher
- OpenAI (Official)
- Distributed by
- OpenAI
- Source
- openai/plugins · plugins/sentry/skills/sentry · commit d420d13
- Licence
- Apache License 2.0 (redistribution allowed)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by OpenAI or OpenAI.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download sentry.zip