github-notification-triage
Triage GitHub notifications and issue/PR queues.
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
GitHub Notification Triage Skill
Fetch, classify, and report on GitHub notifications. The script does the heavy lifting — this skill orchestrates invocation and presents results.
Commands
# Report-only (default): show what needs attention, no modifications
python3 scripts/github-notification-triage.py
# Mark informational notifications as read after reporting
python3 scripts/github-notification-triage.py --mark-read
# Save report to ~/.claude/reports/notifications/
python3 scripts/github-notification-triage.py --save
# Cron/scheduled mode: auto-clear noise and save report
python3 scripts/github-notification-triage.py --mark-read --save
Instructions
Step 1: Run the triage script
Run report-only by default:
python3 scripts/github-notification-triage.py
Step 2: Present the report
Display the script output directly to the user. The report classifies notifications into:
- Action required — PRs awaiting review, mentions, assigned issues
- Informational — CI results, bot comments, automated updates (safe to clear)
Step 3: Handle follow-up
If the user responds with any of the following, re-run with --mark-read:
- "clean them up"
- "mark read"
- "clear the noise"
- "yes" (in response to a prompt about clearing informational items)
python3 scripts/github-notification-triage.py --mark-read
Confirm how many notifications were marked read after the run completes.
Cron/scheduled mode
When invoked on a schedule (no interactive user), use both flags to auto-clear and persist the report:
python3 scripts/github-notification-triage.py --mark-read --save
Reference Loading Table
| Signal | Load These Files | Why |
|---|---|---|
| triaging an issue or pull-request queue | item-card-contract.md | Defines the required per-item report card. |
Issue/PR Queue Triage
When the task is triaging a queue of issues or PRs (not just notifications), report one card per item using the contract in [references/item-card-contract.md](references/item-card-contract.md):
- URL-first card with fields: what, why, author trust, fit, risk, proof state, blocker, next action.
- Label each next action Autonomous or Needs-owner.
- Pass the clean-checkout gate (
git status --shortempty) before any local work on an item.
Exit Codes
| Code | Meaning |
|------|---------|
| 0 | Success |
| 1 | Error (auth failure, API error, script not found) |
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。