Agent Skillsdifferent-ai-studio/teamclu › sentry-monitor

sentry-monitor

GitHub

自动扫描Rust后端与React前端Sentry项目,筛选未解决的高优致命问题,并行分析根因并生成日报推送至企业微信群。

.claude/skills/sentry-monitor/SKILL.md different-ai-studio/teamclu

Trigger Scenarios

sentry 监控 sentry 日报 查看 sentry sentry report sentry monitor

Install

npx skills add different-ai-studio/teamclu --skill sentry-monitor -g -y
More Options

Non-standard path

npx skills add https://github.com/different-ai-studio/teamclu/tree/main/.claude/skills/sentry-monitor -g -y

Use without installing

npx skills use different-ai-studio/teamclu@sentry-monitor

指定 Agent (Claude Code)

npx skills add different-ai-studio/teamclu --skill sentry-monitor -a claude-code -g -y

安装 repo 全部 skill

npx skills add different-ai-studio/teamclu --all -g -y

预览 repo 内 skill

npx skills add different-ai-studio/teamclu --list

SKILL.md

Frontmatter
{
    "name": "sentry-monitor",
    "description": "Use when the user wants to check Sentry issues, run a Sentry daily report, or monitor error trends. Triggers on \"sentry 监控\", \"sentry 日报\", \"查看 sentry\", \"sentry report\", \"sentry monitor\"."
}

Sentry Monitor — Daily Issue Report

Scan both TeamClu Sentry projects for unresolved fatal/high issues, analyze root causes, and push a summary report to WeCom.

Projects

Project Sentry Slug Platform
Rust backend ucar-inc/teamclu Rust
React frontend ucar-inc/teamclu-react JavaScript React

Execution Steps

1. Scan Issues

Run these two commands in parallel:

sentry issue list ucar-inc/teamclu --query "is:unresolved" --json --fields shortId,title,priority,level,status --limit 20
sentry issue list ucar-inc/teamclu-react --query "is:unresolved" --json --fields shortId,title,priority,level,status --limit 20

Filter results: keep only issues where level is fatal OR priority is high.

If no issues match, skip to step 4 with "全部正常" message.

2. Analyze Root Causes (Local)

For each filtered issue (max 10 total), perform local root cause analysis:

  1. Fetch issue details with stack trace:
sentry issue view <shortId> --json
  1. From the stack trace / error message, identify the relevant source files and functions in the codebase.

  2. Read those source files to understand the code context around the crash/error site.

  3. Produce a one-sentence root cause summary based on the stack trace + source code analysis.

Run analyses in parallel where possible (use Agent tool with parallel subagents). Each subagent should:

  • Run sentry issue view <shortId> --json
  • Read the relevant source files from the codebase
  • Return a one-sentence root cause summary

If analysis cannot determine a root cause, use the error title as-is.

3. Format Report

Build a report in this exact format:

Sentry 日报 <YYYY-MM-DD>

【Rust 后端】N 个高优 issue
• <shortId> [<level>] <title> — 根因:<root cause summary>
• ...

【React 前端】N 个高优 issue
• <shortId> [<level>] <title> — 根因:<root cause summary>
• ...

修复命令:/sentry-fix <top-issue-id>

If a project has zero matching issues, omit that section entirely.

4. Push to WeCom

Send the formatted report to the TeamClu group chat:

wecom-cli msg send_message '{"chat_type": 2, "chatid": "wrOOClYgAA5gMJijxEUfWC6M0RAjwlWQ", "msgtype": "text", "text": {"content": "<report text>"}}'

If no fatal/high issues exist across both projects, send:

Sentry 日报 <YYYY-MM-DD> — 全部正常,无高优 issue

Usage

  • One-time: /sentry-monitor
  • Recurring: /loop 24h /sentry-monitor

Constraints

  • This skill is READ-ONLY. Never modify any code files.
  • Do not attempt to fix issues. Only report them.
  • If sentry CLI is not authenticated, prompt the user to run sentry auth login.

Version History

  • 12cfa21 Current 2026-08-19 21:32

    将Sentry项目标识从teamclaw更新为teamclu以匹配重命名后的实际项目。

  • a93ca1d 2026-07-24 21:03

Same Skill Collection

.claude/skills/sentry-fix/SKILL.md

Metadata

Files
0
Version
12cfa21
Hash
bc1ab9f1
Indexed
2026-07-24 21:03

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-27 02:40
浙ICP备14020137号-1 $Carte des visiteurs$