Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

sentry-integration哨兵整合

Agent Skill

sentry-integration 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,670

周安装

71

GitHub Stars

3

下载量

585
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/blogic-cz/blogic-marketplace --skill sentry-integration

简介

用于处理GitHub仓库、Issue、Pull Request和代码协作信息,适合围绕项目状态与变更事项整理。

  • 提供Sentry SDK集成固定操作流程,涵盖错误追踪、性能监控与中间件接线指导。
  • 要求显式人类确认后方可执行资金转移或不可逆操作,保障财务类接口安全。
  • 安装前应评估Webhook与API调用权限,防止误发敏感指令至生产环境。
  • sentry-integration 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Sentry Integration

Implement Sentry integration with a fixed operational sequence and explicit decision rules. Keep project-specific details in references so the skill remains cross-agent portable.

Trigger Conditions

Load this skill when requests involve any of the following:

  • Sentry SDK setup or migration
  • Error tracking, exception capture, or expected-error classification
  • Instrumentation and span design
  • Performance issues, slow requests, trace analysis, or sampling strategy
  • Middleware wiring for TRPC, HTTP handlers, or server functions
  • Sentry API usage for issues/projects/alerts

Operational Workflow (Mandatory Order)

  1. Configure SDKs (server first, client second).
  2. Wire middleware at framework boundaries.
  3. Classify expected errors before capture and beforeSend.
  4. Add tracing only where default integrations are insufficient.
  5. Verify events, spans, tags, and noise filtering in non-production first.

Execute steps in this order to avoid noisy telemetry and broken trace context.

1) Configure SDK

Define environment, release, and sampling explicitly. Keep health checks and synthetic traffic out of traces.

Use the server/client initialization examples in references/sentry-code-samples.md.

2) Wire Middleware

Attach Sentry middleware at shared boundaries, not only one procedure export.

Apply the same middleware rule to all procedure chains:

  • publicProcedure
  • authenticated/protected procedures
  • admin or org-scoped procedures
  • custom composed chains

Use the TRPC and server-function examples in references/sentry-code-samples.md.

3) Classify Expected Errors

Mark expected business errors as handled to reduce alert noise while preserving observability.

Classify expected errors in two places:

  • custom captureException wrapper
  • SDK beforeSend

In beforeSend, always read the throwable from hint.originalException (or equivalent helper). Do not reference an undefined error variable.

Use the fixed beforeSend example and helper functions in references/sentry-code-samples.md.

4) Add Tracing

Prefer built-in integrations first, then add manual tracing only for uncovered paths.

Database Tracing Decision Rule

  • Use postgresIntegration when using supported PostgreSQL drivers and standard query paths.
  • Use manual/proxy tracing when queries bypass supported integrations, when wrapping Drizzle/custom builders, or when operation-level naming is required.
  • Avoid running both strategies on the same query path to prevent duplicate spans.

Use the manual and proxy tracing examples in references/sentry-code-samples.md.

5) Verify

Verify each integration change with a short checklist:

  1. Trigger one expected error and confirm warning-level handled event.
  2. Trigger one unexpected error and confirm error-level alerting path.
  3. Execute one instrumented request and confirm trace continuity.
  4. Confirm health-check routes are excluded.
  5. Confirm no duplicated DB spans.

Sentry API Service Scope

Treat Sentry API service work (issues/projects/token verification) as an optional advanced module. Keep it in the same skill only when implementation remains within Sentry integration boundaries; otherwise split into a dedicated operational skill.

Use Effect-oriented API service examples in references/sentry-code-samples.md.

Core Rules

  1. Follow workflow order: configure SDK → wire middleware → classify expected errors → add tracing → verify.
  2. Keep expected errors observable but marked handled.
  3. Keep middleware coverage consistent across all procedure chains.
  4. Prefer built-in DB integration before manual/proxy tracing.
  5. Validate integration behavior in non-production before rollout.
  6. Keep large code samples in references files; keep decision rules in SKILL.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.87%
按下载量换算216

Claude

30.74%
按下载量换算180

Cursor

20.21%
按下载量换算118

Gemini CLI

8.8%
按下载量换算51

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills