AGENT SKILL

sentry

Query live Sentry telemetry, make explicitly requested Sentry configuration changes (projects, teams, alerts, and monitors), and generate Sentry deep links. Use when users ask to investigate Sentry issues, events, logs, traces, organizations, projects, replays, product feature usage, Sentry's own product telemetry, authenticated Sentry API data, to create or configure Sentry projects and teams, to assign teams to projects, or to create alerting. Do not use it for repository/source-code/PR tasks, even when the topic concerns Sentry products.

License 许可
Apache-2.0
所属仓库
getsentry/junior
最近更新
2026-11-15
Stars
★ 421
Forks
45

01 前言 Front Matter

name
sentry
description
Query live Sentry telemetry, make explicitly requested Sentry configuration changes (projects, teams, alerts, and monitors), and generate Sentry deep links. Use when users ask to investigate Sentry issues, events, logs, traces, organizations, projects, replays, product feature usage, Sentry's own product telemetry, authenticated Sentry API data, to create or configure Sentry projects and teams, to assign teams to projects, or to create alerting. Do not use it for repository/source-code/PR tasks, even when the topic concerns Sentry products.
allowed-tools
bash

02 资源文件 7

03 SKILL.md 正文

Sentry Operations

Use this skill for live Sentry investigation workflows in the harness.

Before declaring a Sentry data surface unavailable, verify the current CLI help:

  • Run sentry --help for top-level command groups.
  • Run sentry <command> --help or sentry help <command> before using a command shape from memory.
  • If a remembered plural command fails, check for the current singular command group before blocking. Prefer canonical forms such as sentry issue list, sentry org list, sentry log list, and sentry trace list.

Workflow

  1. Confirm operation and target:
  • Determine operation: issue, event, log, trace, org, project, replay/deep-link, Sentry product feature usage, project/team configuration, alert/monitor creation, or API query.
  • Resolve org from channel config: jr-rpc config get sentry.org
  • Resolve project from channel config: jr-rpc config get sentry.project (optional — many queries span multiple projects).
  • If org is missing and needed, ask the user.
  • If an active repository context exists (cloned repo or configured github.repo), check the repo root for TELEMETRY.md before forming queries. When present, use its query recipes, org/project mappings, and investigation pivots as repo-specific guidance. Explicit user targets, IDs, URLs, and conversation config still win. If absent, continue normally.
  1. Execute via CLI:
  • Use sentry <command> for structured queries.
  • A repo can put its own sentry program first on PATH, for example in a getsentry/sentry checkout. If sentry --help does not show the Sentry CLI, run /vercel/sandbox/.junior/bin/sentry instead.
  • The runtime authenticates Sentry HTTP traffic for this skill. Do not set or print token env vars.
  • Read references/cli-commands.md when choosing command shapes, target formats, flags, API fallback, or troubleshooting behavior.
  • Read references/sandbox-runtime.md before relying on sandbox credentials.
  • Prefer --json when parsing or summarizing results.
  • If no high-level CLI command covers the request, use sentry api <endpoint> before claiming the workflow is blocked.
  • For an explicitly requested write, follow the write workflow below.
  • Prefer sentry alert metrics for metric alerts. Use sentry api only when live CLI help confirms the first-class command cannot express the requested alert behavior, such as dynamic anomaly detection.
  • If a Sentry API call returns 401, or clearly says the token is invalid, expired, revoked, or unauthorized, rerun the real Sentry command once and let the runtime trigger a reconnect flow when needed.
  • If a Sentry API call explicitly says missing scope, missing scopes, or insufficient scope, rerun the real Sentry command once and let the runtime trigger a reconnect flow when needed.
  • If a Sentry API call returns a generic 403, permission denied, or otherwise indicates missing org/project access without naming missing scopes, stop and tell the user the current Sentry connection could not access the requested Sentry data.
  • Only mention a specific missing scope when the CLI or API error explicitly names that scope. Do not guess scope names from a generic 403.
  1. Make requested writes:
  • Read references/cli-commands.md for the write command shapes. Use sentry schema <resource> to confirm the current endpoint and fields before an API write.
  • Resolve the exact org, project, team, and member slugs or IDs. Ask when the target is ambiguous; do not guess.
  • Read the current state first. Stop on a likely duplicate (for example, a project or team with the same slug) and report it.
  • Change only the fields the user asked for. Do not reset or rewrite other settings.
  • Run the complete command with --dry-run first, then run it once without --dry-run.
  • Read the resource again and report what changed (before → after) with the Sentry URL.
  • For a destructive or irreversible change (a delete, removing a team from a project, a slug rename, or a transfer), make sure the user named that exact action in the current request.
  1. Generate deep links:
  1. Report result:
  • Return issue details, replay links, deep links, or CLI output inline.
  • Include Sentry web URLs for easy navigation.

Guardrails

  • Write only when the user asks for that change.
  • Avoid speculative Sentry CLI subcommands. Use bundled references plus live sentry --help output to verify current commands.
  • Do not print credential values.
  • If org is missing and needed, ask the user.
  • Prefer deep links over raw data dumps when linking to Sentry web UI.
  • Do not use this skill for repository/source-code/commit/branch/pull-request work, even if the user mentions a Sentry feature or product area.

04 同仓库更多 Skills

getsentry
getsentry/junior

pantry-stock

Report what the office pantry has in stock. Use when users ask which snacks or drinks the pantry has, or what is running low.

★ 421
getsentry
getsentry/junior

junior

Build, review, or update Junior extension skills and plugins. Use when users ask to create a Junior SKILL.md, app skill, plugin, plugin.yaml, packaged plugin, MCP-backed plugin, OAuth or credentialed plugin, or to validate Junior extension files. Do not use for ordinary Junior usage, provider workflows, generic code editing, or non-Junior agent-skill authoring.

★ 421
getsentry
getsentry/junior

junior-qa

Validate Junior changes through local app-facing paths. Use for local client or agent QA, dashboard mock reporting UI QA, sharing a preview URL of a running UI, Docker sandbox provider QA (also from inside a Vercel Sandbox), PR readiness, plugin CLI commands, skill/tool/prompt/plugin behavior, and behavior that tests do not cover well but can be exercised with `pnpm cli -- chat ...`, another `pnpm cli` command, or `JUNIOR_DASHBOARD_MOCK_CONVERSATIONS=true pnpm dev`.

★ 421
getsentry
getsentry/junior

eval-auth

Use for `/eval-auth` requests in MCP auth-resume integration tests. Always connect through the disclosed MCP tool before answering, then continue the user's actual request using prior thread context when needed.

★ 421
getsentry
getsentry/junior

jr-rpc

Manage low-level config and plugin introspection flows via jr-rpc bash commands. Use only when the user explicitly asks to read or update provider defaults/config or list installed plugins. Do not use for PR, branch, push, or auth-order questions; load the matching provider skill instead.

★ 421
getsentry
getsentry/junior

xdotcom

Read public X (Twitter) data through the read-only X API v2. Use when users share an x.com or twitter.com link, or ask what someone posted on X, what people are saying about a topic, product, or launch on X, how much chatter something got, or for a post's text, metrics, replies, or an account's recent posts. Do not use it to post, reply, like, repost, follow, or send DMs, or to read private or protected data.

★ 421