Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

cli-sentryCLI Sentry 搜索

Agent Skill

cli-sentry 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

574

周安装

23

GitHub Stars

51

下载量

186
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cli-sentry(CLI Sentry 搜索)
来源仓库:https://github.com/paulrberg/agent-skills
仓库路径:skills/cli-sentry
安装命令:
npx skills add https://github.com/paulrberg/agent-skills --skill cli-sentry
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/paulrberg/agent-skills --skill cli-sentry

简介

cli-sentry 提供 Sentry CLI v3 的专业操作指南,用于 Issue 管理与 API 集成。

  • 适合获取、分类与解决 Sentry 问题,支持预检安装与认证。
  • 使用 scripts/sentry-api.sh 进行 API 调用,而非直接调用已移除的 sentry-cli api。
  • 安装前应确认仅兼容 v3,避免使用废弃接口导致错误。
  • cli-sentry 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Sentry CLI Issue Management

Compatibility: This skill is compatible with sentry-cli v3 only. Important: sentry-cli api was removed in v3. Do not use sentry-cli api for anything. Use scripts/sentry-api.sh for API calls (see API Access and API Fallbacks).

Overview

Expert guidance for managing Sentry issues via the CLI and API. Use this skill for fetching, triaging, categorizing, and resolving Sentry issues.

Key capabilities:

  • Preflight validation of sentry-cli installation and auth
  • List and filter issues by status, time period, and query
  • Categorize issues (Valid, False Positive, Already Resolved, Third Party)
  • Resolve, mute, and unresolve issues (individually or in bulk)

Safety Rules

Prohibited operations:

  • sentry-cli api — Removed in v3. Use sentry-api.sh instead
  • DELETE /issues/{id}/ - Issue deletion (irreversible)
  • Project or release deletion
  • Bulk status changes without explicit user confirmation
  • Modifying alert rules, notification settings, or project configuration

Allowed operations:

  • Listing and viewing issues (read-only)
  • Resolving issues (reversible via unresolve)
  • Muting/ignoring issues (reversible via unmute)
  • Fetching event details and stack traces

API Access

NEVER manually parse ~/.sentryclirc or construct Authorization headers. All Sentry API calls MUST go through one of these scripts: - scripts/fetch-issues.sh — list unresolved issues with rich JSON - scripts/sentry-api.sh — general-purpose authenticated API wrapper These scripts handle credential resolution internally. Do not use $SENTRY_AUTH_TOKEN directly.

sentry-api.sh Usage

bash scripts/sentry-api.sh METHOD PATH [BODY]
  • METHOD: GET, PUT, POST (DELETE is rejected)
  • PATH: Sentry API path — {org} and {project} placeholders are auto-substituted from config
  • BODY: optional JSON string for PUT/POST

Prerequisites

Configuration (~/.sentryclirc)

Sentry credentials are stored in ~/.sentryclirc (the native sentry-cli config file):

[auth]
token=sntrys_...

[defaults]
org=your-org-slug
project=your-project-slug
Environment variables (SENTRY_AUTH_TOKEN, SENTRY_ORG, SENTRY_PROJECT) override rc file values when set. The rc file is the primary persistent store.

Setup: Missing Configuration

Before running any Sentry operation, run the preflight check:

bash scripts/check-sentry.sh -v

If the preflight check fails with exit code 4 (missing config), prompt the user for each missing value using AskUserQuestion, then write the values to ~/.sentryclirc:

  • If the file doesn't exist, create it with [auth] and [defaults] sections
  • If the file exists, add missing keys under the appropriate section (token[auth], org/project[defaults])
  • Re-run the preflight check to confirm

Configuration Resolution Order

Settings resolve in this order (first wins):

  1. CLI flags (--org, --project)
  2. Environment variables (SENTRY_ORG, SENTRY_PROJECT, SENTRY_AUTH_TOKEN)
  3. ~/.sentryclirc

Issue Management

List Issues (CLI)

# List all issues
sentry-cli issues list --project <project>

# List with status filter
sentry-cli issues list --project <project> --status unresolved

# Full search syntax (Sentry query language)
sentry-cli issues list --project <project> --query "is:unresolved browser.name:Chrome"

# Pagination control (default: 5 pages)
sentry-cli issues list --project <project> --pages 10

List Issues (API - Richer Data)

Use scripts/fetch-issues.sh for triage-quality JSON with metadata, culprit, event counts, and timestamps:

bash scripts/fetch-issues.sh --org=<org> --project=<project>
bash scripts/fetch-issues.sh --org=<org> --project=<project> --stats-period=7d --limit=50

Get Issue Details (API)

bash scripts/sentry-api.sh GET /issues/{issue_id}/ | jq

Get Latest Event / Stack Trace (API)

bash scripts/sentry-api.sh GET /issues/{issue_id}/events/latest/ | jq '.exception // {note: "no exception data"}'

Resolve / Mute / Unresolve (CLI)

# Resolve
sentry-cli issues resolve --project <project> -i <issue_id>

# Mute (ignore)
sentry-cli issues mute --project <project> -i <issue_id>

# Unresolve
sentry-cli issues unresolve --project <project> -i <issue_id>

# Resolve in next release only
sentry-cli issues resolve --project <project> -i <issue_id> --next-release

Issue Categorization

Categorize each issue into one of four categories:

1. Valid

Genuine application errors requiring investigation and fixes.

Indicators:

  • Stack trace points to application code (src/, app/, webpack://)
  • Error originates from application logic, not external code
  • Reproducible user-facing issues
  • API errors from application endpoints

2. False Positive

Errors that appear as issues but are not actual problems.

Indicators:

  • Network errors from user connectivity issues (timeouts, DNS failures)
  • Browser-specific quirks not affecting functionality
  • Expected errors (e.g., 401 for unauthenticated users, 404 for deleted resources)
  • Errors from automated bots/crawlers

3. Already Resolved

Issues that have been fixed in subsequent deployments.

Indicators:

  • Last seen date predates a known fix
  • No recent occurrences (check lastSeen field)
  • Related code has been refactored or removed
  • Issue matches a closed GitHub issue or merged PR

4. Third Party

Errors originating from browser extensions or external scripts. See references/extension-patterns.md for comprehensive detection patterns.

Indicators:

  • Stack trace contains extension URLs (chrome-extension://, moz-extension://, etc.)
  • Error from injected scripts (inpage.js, content.js, inject.js)
  • Known extension error messages (ResizeObserver loop, Extension context invalidated)
  • Stack trace mentions known extensions (MetaMask, Grammarly, LastPass, etc.)

Triage Workflow

  1. Preflight - Run bash scripts/check-sentry.sh -v to verify config and auth. If missing, prompt the user and write to ~/.sentryclirc
  2. Fetch - Run bash scripts/fetch-issues.sh --org=<org> --project=<project> to get all unresolved issues
  3. Inspect - For each issue, fetch its latest event to examine the stack trace: bash scripts/sentry-api.sh GET /issues/{issue_id}/events/latest/ \ | jq '.exception.values[0].stacktrace.frames // empty' Check culprit, title, metadata, lastSeen, and event count
  4. Categorize - Assign each issue to Valid, False Positive, Already Resolved, or Third Party
  5. Present - Summarize in a triage report table:
## Sentry Issue Triage Report

### Valid (N issues)

| Issue | Title | Events | Last Seen |
| --- | --- | --- | --- |
| PROJ-123 | TypeError in Component | 45 | 2h ago |

### Third Party (N issues)

| Issue | Title | Source | Events |
| --- | --- | --- | --- |
| PROJ-126 | ResizeObserver loop | Browser Extension | 234 |

### False Positives (N issues)

| Issue | Title | Reason |
| --- | --- | --- |
| PROJ-128 | Network Error | User connectivity |

### Already Resolved (N issues)

| Issue | Title | Last Seen | Notes |
| --- | --- | --- | --- |
| PROJ-130 | Hydration mismatch | 14d ago | Fixed in v2.3.1 |

Bulk Actions

After triage, resolve or mute issues in bulk. Always confirm with the user before executing.

# Bulk resolve via API
bash scripts/sentry-api.sh PUT \
  "/projects/{org}/{project}/issues/?id=123&id=456&id=789" \
  '{"status": "resolved"}'

# Bulk ignore/mute via API
bash scripts/sentry-api.sh PUT \
  "/projects/{org}/{project}/issues/?id=123&id=456&id=789" \
  '{"status": "ignored"}'

Quick Reference

OperationMethodCommand / Endpoint
List issuesCLIsentry-cli issues list --project <p>
List issues (rich)Scriptbash scripts/fetch-issues.sh --org=<o> --project=<p>
Issue detailsScriptbash scripts/sentry-api.sh GET /issues/{id}/
Latest eventScriptbash scripts/sentry-api.sh GET /issues/{id}/events/latest/
Event listScriptbash scripts/sentry-api.sh GET /issues/{id}/events/
ResolveCLIsentry-cli issues resolve --project <p> -i <id>
MuteCLIsentry-cli issues mute --project <p> -i <id>
UnresolveCLIsentry-cli issues unresolve --project <p> -i <id>
Bulk updateScriptbash scripts/sentry-api.sh PUT "/projects/{org}/{project}/issues/?id=..." '{"status":"resolved"}'

Tips

  1. Run sentry-cli info to verify configuration and auth status from any source
  2. Pipe API responses through jq for readable output: ... | jq '.[] | {shortId, title, count, lastSeen}'
  3. Triage Third Party issues first - they are the easiest to identify and often the most numerous
  4. Check references/extension-patterns.md before categorizing ambiguous stack traces

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.86%
按下载量换算69

Claude

31.36%
按下载量换算58

Cursor

18.56%
按下载量换算35

Gemini CLI

11.01%
按下载量换算20

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills