Token导航 LogoToken导航

Agent Skill · 研究检索

sentry-backend-bugs(哨兵后端错误)

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

sentry-backend-bugs 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 41,260。

总安装 1,188周安装 50GitHub Stars 43,672下载 416核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/getsentry/sentry --skill sentry-backend-bugs

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,支持基于关键词的任务匹配。适合在需要快速定位候选结果时使用,提升研究效率。sentry-backend-bugs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。可结合来源仓库和原始 README 继续核验具体用法。安装前建议确认权限范围和维护状态,避免触发不必要的联网操作。

注意工具输出不能直接作为最终结论,需人工复核关键信息。

来源仓库内路径:skills/sentry-backend-bugs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/getsentry/sentry --skill sentry-backend-bugs;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

sentry-backend-bugs 怎么安装?

在终端执行 npx skills add https://github.com/getsentry/sentry --skill sentry-backend-bugs。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

sentry-backend-bugs 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

sentry-backend-bugs 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

sentry-backend-bugs 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

sentry-backend-bugs 用的人多吗?

公开数据是累计安装 1,188 次,近一周安装 50 次,下载 416 次,GitHub 43,672 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

sentry-backend-bugs 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 来源仓库有 43,672 星,维护活跃度相对可查。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
sentry-backend-bugs

哨兵后端错误 · 本页

1,18843,672调用外部服务未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Sentry Backend Bug Pattern Review

Find bugs in Sentry backend code by checking for the patterns that cause the most real production errors.

This skill encodes patterns from 638 real production issues (393 resolved, 220 unresolved, 25 ignored) generating over 27 million error events across 65,000+ affected users. These are not theoretical risks -- they are the actual bugs that ship most often, with known fixes from resolved issues.

Scope

Review the code provided by the user, Warden, or the current branch diff. If the user does not provide a target, review the current branch diff. Start from the changed hunk or file, then read outward only as needed to confirm the behavior.

  1. Analyze the changed code against the pattern checks below.
  2. Use Read and Grep to trace data flow beyond the initial diff when needed. Follow function calls, callers, serializers, tasks, and ORM boundaries until the behavior is confirmed.
  3. Report only HIGH and MEDIUM confidence findings.
ConfidenceCriteriaAction
HIGHTraced the code path, confirmed the pattern matches a known bug classReport with fix
MEDIUMPattern is present but context may mitigate itReport as needs verification
LOWTheoretical or mitigated elsewhereDo not report

Step 1: Classify the Code

Determine what you are reviewing and load the relevant reference.

Code TypeLoad Reference
ORM queries, model lookups, .objects.get(), FK accessreferences/missing-records.md
Type conversions, None handling, option reads, serializer returnsreferences/null-and-type-errors.md
Data input parsing, field lengths, request bodies, decompressionreferences/data-validation.md
get_or_create, save(), unique constraints, integer overflowreferences/database-integrity.md
Integration webhooks, external API calls, SentryApp hooksreferences/integration-errors.md
Dict iteration, shared state, concurrent accessreferences/concurrency-bugs.md
Snuba queries, metric subscriptions, search filtersreferences/query-validation.md
Redirect URLs, URL construction, routingreferences/url-safety.md

If the code spans multiple categories, load all relevant references.

Step 2: Check for Top Bug Patterns

These are ordered by combined frequency and impact from real production data.

Check 1: Metric Subscription Query Errors -- 113 issues, 3,035,640 events

Alert and metric subscriptions referencing tags or functions that do not exist in the target dataset. These fire continuously once created.

Red flags:

  • Creating Snuba subscriptions with SubscriptionData using user-provided query strings without validation
  • Referencing transaction.duration in p95/p99 functions on the metrics dataset (it is a string type there)
  • Using custom tag names (e.g., customerType) as filter dimensions without checking they exist
  • Calling resolve_apdex_function without verifying the dataset supports threshold parameters

Safe patterns:

  • Validate query fields against dataset schema before subscription creation
  • Wrap _create_in_snuba calls with try/except SubscriptionError and mark subscription as invalid
  • Use IncompatibleMetricsQuery checks before building metric subscription queries

Check 2: Missing Record / Stale Reference -- 81 issues, 1,403,592 events

Code calls .get() on a Django model assuming the record exists, but it has been deleted, merged, or never created.

Red flags:

  • Model.objects.get(id=some_id) without try/except for DoesNotExist
  • Detector.objects.get(id=detector_id) in workflow engine without handling deletion
  • Environment.objects.get(name=env_name) in monitor/cron consumers
  • Subscription.objects.get(id=sub_id) in billing tasks
  • Using Group.objects.get() with IDs from Snuba query results (groups may be deleted/merged)
  • Chained lookups where second .get() fails

Safe patterns:

  • Model.objects.filter(...).first() with a None check
  • try/except DoesNotExist that returns a graceful fallback (404, skip, log)
  • Queryset .exists() check before .get()
  • In API endpoints: return 404 for DoesNotExist, 400 for validation errors. Never suggest returning 500 intentionally.

Not a bug — do not flag:

  • Infrastructure invariants: .get() enforcing a deployment precondition (e.g., "default org must exist in single-org mode") should crash — a 500 signals misconfiguration, not a code defect.
  • Already validated by parent: If the endpoint base class validates the object (e.g., OrganizationEndpoint resolves the org), don't flag .get() on related records unless there's a genuine race or deletion window. Read the endpoint's parent class before reporting.
  • Configuration lookups: Code that loads required config objects (get_default(), settings-based lookups) is expected to fail hard if the config is wrong.

Check 3: Search Query Validation -- 57 issues, 2,001,330 events

InvalidSearchQuery from user-provided or subscription-stored query filters referencing invalid values, deleted issues, or unresolved tags.

Red flags:

  • by_qualified_short_id_bulk() called with short IDs from stored subscriptions that reference deleted/renamed projects
  • _issue_filter_converter that calls Group.objects.get() on user-provided issue short IDs
  • resolve_tag_key() called without checking the tag exists in the target dataset
  • Passing unvalidated query strings from alert rule subscriptions to Snuba

Safe patterns:

  • Validate short IDs before passing to by_qualified_short_id_bulk() -- handle Group.DoesNotExist
  • Wrap _issue_filter_converter in try/except and return empty results for invalid filters
  • Pre-validate tag existence against dataset schema

Check 4: Value Validation Errors -- 45 issues, 1,000,624 events

ValueError from insufficient input validation: unpacking errors, invalid enum values, missing expected objects, and Pydantic/DRF validation failures.

Red flags:

  • SentryAppInstallation.objects.get() in action builders assuming exactly 1 result exists
  • AlertRuleWorkflow lookups by ID without handling DoesNotExist
  • Tuple unpacking (a, b, c = value.split(":")) on strings that may have fewer separators
  • Integer enum lookups without catching ValueError (e.g., DetectorPriorityLevel(value))

Safe patterns:

  • Validate expected count before .get(): use .filter() and check .count()
  • Wrap tuple unpacking in try/except ValueError or validate length first
  • Use try: EnumClass(value) except ValueError: for user-facing enum conversions
  • In API endpoints: return 400 for ValueError and validation failures.

Check 5: Type Errors -- 28 issues, 740,106 events

Wrong types passed to functions: iterating over non-iterables, invalid dict keys, None where object expected.

Red flags:

  • orjson.dumps(payload) where payload dict may have non-string keys
  • list(setting) where setting could be an int (from project.get_option())
  • result["key"] = value where result could be None
  • Iterating over a value from DB/config that could be int or None instead of list

Safe patterns:

  • Type-check before iteration: isinstance(value, (list, str)) before list(value)
  • Validate dict keys before JSON serialization: ensure all keys are strings
  • None-guard before subscript assignment: if result is not None:
  • Defensive option reads with type checking
  • In API endpoints: return 400 for type mismatches from user input.

Check 6: Internal API Request Errors -- 71 issues, 829,753 events

ApiError from internal Sentry API calls between services, often caused by stale subscription parameters.

Red flags:

  • api.client.get() calls in metric alert chart rendering without handling 400 responses
  • Internal API calls that forward stale subscription queries (referencing removed tags/metrics)
  • fetch_metric_alert_events_timeseries() in incidents/charts.py without ApiError handling

Safe patterns:

  • Wrap internal API calls with try/except ApiError and return graceful fallback
  • Validate query parameters before making internal API requests
  • Handle 400/500 responses explicitly in chart/visualization code

Check 7: Database Constraint Violations -- 22 issues, 2,962,198 events

IntegrityError and DataError from integer overflow, foreign key violations, and unique constraint violations.

Red flags:

  • Incrementing times_seen counter without bounding (integer overflow at ~2.1 billion)
  • Deleting MonitorCheckIn records without handling FK constraints from MonitorIncident
  • UPDATE on GroupOpenPeriod date ranges where lower bound can exceed upper bound
  • save() on models with unique constraints without handling IntegrityError

Safe patterns:

  • Cap integer fields before update: min(value, 2_147_483_647) for 32-bit int columns
  • Use CASCADE or handle FK constraints before bulk deletion
  • Validate date range bounds before saving
  • try/except IntegrityError with fallback to get() or update_or_create()

Check 8: Data Parsing & Deserialization -- 19 issues, 272,812 events

JSONDecodeError and ZstdError from parsing external data or stored compressed data.

Red flags:

  • json.loads(response.body) without catching JSONDecodeError
  • zstd.decompress(data) without handling corrupt frame descriptors
  • Parsing VSTS/Azure DevOps webhook bodies that may be truncated
  • Assuming API responses are always valid JSON (can be HTML error pages)

Safe patterns:

  • Always wrap JSON/compression in try/except with graceful fallback
  • Check content-type header before parsing
  • Validate response status before parsing body

Check 9: Missing Key Access (KeyError) -- 25 issues, 155,020 events

Accessing dictionary keys or HTTP headers without existence check.

Red flags:

  • request.META["HTTP_X_GITLAB_TOKEN"] in webhook handlers (header may be absent)
  • request.META["HTTP_X_EVENT_KEY"] in Bitbucket webhook handler
  • Dict key lookups with HANDLERS[event_type] without checking the event type is registered
  • Tuple unpacking from header values with variable-length splits

Safe patterns:

  • request.META.get("HTTP_X_GITLAB_TOKEN") with None check
  • HANDLERS.get(event_type) with fallback for unknown event types
  • Validate required headers at the top of webhook handler before processing

Check 10: Concurrency and Runtime Bugs -- 23 issues, 38,443 events

Dictionary mutation during iteration, shared mutable state, and unimplemented code paths.

Red flags:

  • for key in self._dict: while another thread modifies it (RuntimeError)
  • Publishing to shared KafkaPublisher dict that grows unbounded
  • dict.pop() or dict[key] = value on a dict being iterated in another thread
  • Missing NotImplementedError handlers for new search expression types

Safe patterns:

  • dict.copy() before iteration
  • Use threading.Lock for shared mutable state
  • Implement all code paths before enabling features
  • Use list(dict.keys()) for safe iteration when mutation is needed

Check 11: Logic Correctness -- not pattern-based

After checking all known patterns above, reason about the changed code itself:

  • Does every code path return the correct type?
  • Are all branches of conditionals handled (especially else / default cases)?
  • Can any input (None, empty list, 0, empty string) cause unexpected behavior?
  • Are there off-by-one errors in loops, slices, or range checks?
  • If this code runs concurrently, is shared state protected?

Only report if you can trace a specific input that triggers the bug. Do not report theoretical concerns.

Not a bug — do not flag:

  • assert statements enforcing infrastructure invariants — Sentry does not run with python -O, so assertions are always active. Crashing on a violated invariant is intentional.
  • Speculative input concerns (e.g., "this URL could be too long", "this header could be malformed") unless you can show the input actually reaches the code path unvalidated. Check for existing validation (host checks, schema validation, DRF serializers) before reporting.

If no checks produced a potential finding, stop and report zero findings. Do not invent issues to fill the report. An empty result is the correct output when the code has no bugs matching these patterns.

Each code location should be reported once under the most specific matching pattern. Do not flag the same line under multiple checks.

Step 3: Report Findings

For each finding, provide the evidence the review harness needs:

  • precise location
  • severity and confidence
  • concrete triggering input or state
  • root cause and consequence
  • a matching production precedent when available
  • a concrete code fix, preferably as a unified diff when the harness supports it

Fix suggestions must include actual code. Never suggest a comment or docstring as a fix.

When suggesting fixes in API endpoints, use appropriate HTTP status codes (404 for not found, 400 for bad input, 409 for conflicts). Never suggest returning 500 intentionally.

Do not prescribe your own output format — the review harness controls the response structure.

平台分布

Codex

37.34%
按下载量换算155

Claude

31.9%
按下载量换算133

Cursor

17.89%
按下载量换算74

Gemini CLI

9.67%
按下载量换算40

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills