openclaw-skills/sentry/SKILL.md
用于只读查询 Sentry issues、events 和服务健康数据,汇总线上错误并辅助生产问题排查。
npx skillsauth add seaworld008/commonly-used-high-value-skills sentryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
SENTRY_AUTH_TOKEN (read-only scopes such as project:read, event:read) or to log in and create one before running commands.SENTRY_AUTH_TOKEN as an env var.SENTRY_ORG, SENTRY_PROJECT, SENTRY_BASE_URL.{your-org}/{your-project}, time range 24h, environment prod, limit 20 (max 50).If the token is missing, give the user these steps:
project:read, event:read, and org:read.SENTRY_AUTH_TOKEN as an environment variable in their system.Use scripts/sentry_api.py for deterministic API calls. It handles pagination and retries once on transient errors.
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export SENTRY_API="$CODEX_HOME/skills/sentry/scripts/sentry_api.py"
User-scoped skills install under $CODEX_HOME/skills (default: ~/.codex/skills).
python3 "$SENTRY_API" \
list-issues \
--org {your-org} \
--project {your-project} \
--environment prod \
--time-range 24h \
--limit 20 \
--query "is:unresolved"
python3 "$SENTRY_API" \
list-issues \
--org {your-org} \
--project {your-project} \
--query "ABC-123" \
--limit 1
Use the returned id for issue detail or events.
python3 "$SENTRY_API" \
issue-detail \
1234567890
python3 "$SENTRY_API" \
issue-events \
1234567890 \
--limit 20
python3 "$SENTRY_API" \
event-detail \
--org {your-org} \
--project {your-project} \
abcdef1234567890
Always use these endpoints (GET only):
/api/0/projects/{org_slug}/{project_slug}/issues//api/0/issues/{issue_id}//api/0/issues/{issue_id}/events//api/0/projects/{org_slug}/{project_slug}/events/{event_id}/org_slug, project_slug: default to {your-org}/{your-project} (avoid non-prod orgs).time_range: default 24h (pass as statsPeriod).environment: default prod.limit: default 20, max 50 (paginate until limit reached).search_query: optional query parameter.issue_short_id: resolve via list-issues query first.{your-org}{your-project}{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.
development
Enumerating failure modes via pre-mortem analysis. Systematically identifies failure scenarios for plans, designs, and features, scoring them with RPN/AP. Does not write code.
testing
Orchestrating specialist AI agent teams as a meta-coordinator. Decomposes requests into minimum viable chains, spawns each as an independent session in AUTORUN modes, and drives to final output. Use when a task spans multiple specialist domains, requires parallel agent execution, or needs hub-and-spoke routing across the skill ecosystem.
development
Converting document formats (Markdown/Word/Excel/PDF/HTML). Converts specs from Scribe and reports from Harvest into distributable formats; generates reusable conversion scripts. Use when converting documents, building accessibility-compliant PDFs, or creating Pandoc/LibreOffice pipelines.
testing
Curating cross-agent knowledge and guarding institutional memory. Extracts patterns from agent journals into METAPATTERNS.md, detects knowledge decay, propagates best practices, prevents organizational forgetting. Use when consolidating cross-agent insights, curating memory, or auditing knowledge decay.