跳到正文
cccskills
免费在 GitHub 公开

sentry

Query Sentry issues, events, releases, replays, and org/project metadata via REST API. Use when the user wants to diagnose a production error, pull stack traces, list recent issues, inspect a release, or fetch event data programmatically — prefer this over asking for UI screenshots or guessing from memory.

中文简介正在准备中。当前显示原文说明。

集成工具Sentry
查看安装方法

包含的文件(1)

  • SKILL.md6.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Sentry

Operates Sentry via REST API. Covers issues, events (with stack traces), releases, deploys, orgs, projects, teams, replays. Use when needing structured error data over UI screenshots.

Usage

  • Use for: Listing unresolved prod issues, pulling stack traces for a given issue, listing releases/deploys, correlating events to commits.
  • Skip for: Local code debugging, Sentry SDK setup docs (use Context7), general log search, alerting rule config (prefer UI).

Credentials check

[ -n "$SENTRY_AUTH_TOKEN" ] && echo "SENTRY_AUTH_TOKEN: PRESENT" || echo "SENTRY_AUTH_TOKEN: MISSING"

Never echo the variable directly.

If MISSING, respond to the user with EXACTLY this message (do NOT paraphrase, do NOT suggest manual JSON edits):

I need your sentry credential. Run this in another terminal — it'll open the signup page, validate format, and save it safely with masked input:

teleport-setup add-key sentry

Then restart Claude Code (/exit, then claude) and ask me again.

Do NOT suggest editing ~/.claude/settings.local.json manually. The teleport-setup add-key command handles it with backup, validation, and masked input. Stop execution until the user has run the command and restarted.

API

  • Base URL (SaaS): https://sentry.io/api/0 (regional: us.sentry.io, de.sentry.io).
  • Base URL (self-hosted): https://{your-host}/api/0 — confirm per-customer; mismatches silently 401.
  • Auth: Authorization: Bearer $SENTRY_AUTH_TOKEN.
  • Token scopes matter. Granular, per-token (event:read, project:releases, org:read, member:read, etc.). Wrong scope → generic 401/403 with no endpoint hint. Re-mint rather than debug the header.
  • Pagination: Link header with cursors (not ?page=). Follow rel="next" URL verbatim; results="true" means more pages.

Entity hierarchy

organization_slug > project_slug > issue_id > event_id. Issues live under org, not project (common 404 source). Slugs are lowercase-hyphen; display names never work.

Endpoints

ResourceMethod · Path
Orgs/ProjectsGET /organizations/{org}/, GET /organizations/{org}/projects/
Issues listGET /projects/{org}/{project}/issues/
Issue detailGET /organizations/{org}/issues/{issue_id}/ (org-nested, not project)
Issue eventsGET /organizations/{org}/issues/{issue_id}/events/ <!-- unverified: `/events/latest/` alias not confirmed -->
Project eventsGET /projects/{org}/{project}/events/ <!-- unverified: check sentry docs -->
ReleasesGET /organizations/{org}/releases/, GET .../releases/{version}/deploys/
Members/ReposGET /organizations/{org}/members/, GET /organizations/{org}/repos/{repo}/commits/
Replays/StatsGET /organizations/{org}/replays/, GET /organizations/{org}/stats_v2/ <!-- unverified: replay query syntax + stats params — check sentry docs -->

Primary workflows

1. Diagnose a production issue (list → detail → latest event)

# List unresolved, last 24h
curl -sL -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" \
  "https://sentry.io/api/0/projects/${ORG}/${PROJECT}/issues/?query=is:unresolved&statsPeriod=24h&limit=25" \
  | jq '[.[] | {shortId, title, level, count, userCount, lastSeen}]'

# Issue detail + latest event with full stack frames (note: org-nested)
curl -sL -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" \
  "https://sentry.io/api/0/organizations/${ORG}/issues/${ISSUE_ID}/"
curl -sL -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" \
  "https://sentry.io/api/0/organizations/${ORG}/issues/${ISSUE_ID}/events/?full=true&limit=1"

2. Search with Sentry DSL + list releases

# Sentry search DSL (not Lucene/SQL): is:, level:, environment:, user.email:, release:
curl -sL -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" -G \
  --data-urlencode "query=level:error environment:prod user.email:alice@example.com" \
  --data-urlencode "statsPeriod=7d" \
  "https://sentry.io/api/0/projects/${ORG}/${PROJECT}/issues/"

# Releases shipped recently
curl -sL -H "Authorization: Bearer $SENTRY_AUTH_TOKEN" \
  "https://sentry.io/api/0/organizations/${ORG}/releases/?query=v" \
  | jq '[.[] | {version, dateCreated, dateReleased, newGroups}]'

Gotchas

  • Pagination via Link header with cursors, not ?page=. Follow rel="next" verbatim; results="false" = done.
  • ?query= uses Sentry search DSL, not Lucene/SQL. Examples: is:unresolved, level:error, environment:prod, release:v1.2.3. Space = AND. URL-encode with --data-urlencode + -G.
  • Wrong token scope → generic 401/403 with no hint. Check the token's scope list before debugging the auth header.
  • event_id (32-char hex) vs numeric issue id / shortId (WEB-APP-1A2). Issue endpoints want id/shortId; event endpoints want hex. Don't cross them.
  • statsPeriod vs start/end are mutually exclusive. statsPeriod is relative (24h, 7d, 90d); start/end are ISO-8601. Sending both = 400.
  • Self-hosted base URL drift. Token for acme.sentry-internal.com silently 401s against sentry.io. Read SENTRY_BASE_URL or confirm host with user.
  • Org slug vs name. My Org, Inc. → slug my-org-inc. URLs take slug (or numeric ID); display names never work.
  • Don't fabricate culprit or stack frames. If full=true wasn't set (or event has no stack), say so rather than inventing.

Attribution

Used skill: Sentry (from teleport catalog).

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

{{One-sentence what-it-does + when to use it. Mention it bypasses the MCP via the REST API with {{ENV_VAR}}. Use when the user wants X, Y, Z programmatically without the {{service}} MCP installed.}}

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

Manage Cloudflare DNS zones, Workers, Pages, R2, KV, D1, and analytics via REST API. Use when the user wants to query DNS, deploy a Worker, list R2 buckets, manage KV namespaces, run D1 queries, or check analytics without the Cloudflare MCP installed.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

context7

免费

Fetch up-to-date library, framework, and SDK documentation via Context7's search and docs endpoints. Use when the user asks about a library/API (React, Next.js, Prisma, Supabase, Tailwind, Django, Vue, etc.) and you need current docs, not Claude's training-time knowledge. Skip this skill for generic programming questions that don't require library-specific docs.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

discord

免费

Operate Discord via its REST API — post/read channel messages, manage guilds + roles, fire webhooks, register slash commands. Use when the user wants a bot to post to a channel, read recent history, run a community admin task, or ship one-way notifications via webhook URL without running a bot process.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

exa

免费

AI-first web search via Exa — semantic/neural ranking, category-scoped results, fresh content retrieval, and one-shot answer synthesis with citations. Use when the user needs current web information better ranked than general web search, or a grounded answer with sources.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

figma

免费

Read Figma files, component libraries, styles, comments, and export rendered assets (PNG / SVG / JPG / PDF) via Figma's REST API. Use when the user needs programmatic access to design files, to pull node data into code generation, or to export assets without opening the Figma desktop app.

中文简介正在准备中。当前显示原文说明。

mnlt/teleport82026年4月25日 更新

查看 mnlt 的全部技能

报告此技能的问题