github-triage
БесплатноБез исполняемых скриптовНе проверенClear Dependabot and bot noise from your GitHub notification inbox: mark settled merged and closed PRs done, merge green dependency PRs in repos you maintain…
от bendrucker★ 18 звёзд на GitHubОб этом скилле
GitHub Triage
Clear bot and Dependabot noise from the notification inbox, leave threads from real humans. --dry-run classifies and prints the plan without acting.
Inbox
!gh api "notifications?all=true&per_page=100" --paginate | jq -r '.[] | [.id, .reason, .subject.type, .repository.full_name, (.subject.url | sub(".*/pulls/";"#") | sub(".*/issues/";"issue#")), .subject.title] | @tsv' | column -t -s $'\t'
Triage against all=true. The default call returns only unread; the app Inbox also shows read-but-not-done threads, where most stale noise sits. First column is the thread id, which is also the mark-done key.
Gather
Resolve your own login once: gh api user --jq .login. For each open PullRequest thread:
gh api repos/<r>/pulls/<n> --jq '{author:.user.login, state, merged:(.merged_at!=null)}'. Any closed/merged PR is settled: mark done, skip the rest.gh pr view <n> --repo <r> --json mergeStateStatus. Merge gate, per the table below. It computes async, so re-fetch once onUNKNOWN.gh api repos/<r> --jq .permissions.push.truemeans you can merge.- Latest actor, only for a your-own-PR-in-your-own-repo thread:
gh api <subject.latest_comment_url> --jq '{login:.user.login, type:.user.type}'.
mergeStateStatus |
Meaning | Action |
|---|---|---|
CLEAN |
green, no conflict, current | mergeable |
BLOCKED |
needs review or a required check | leave, never force |
BEHIND |
base moved | leave, Dependabot rebases |
UNSTABLE / DIRTY |
check failed or conflict | classify by importance |
UNKNOWN |
not computed | re-fetch once |
Classify
First match wins.
- Closed or merged PR → done, whatever the author or reason. Largest category: every merge and every landed bump leaves a read-but-not-done thread.
- Bot or self activity on your own PR → done. PR author is you, repo owner is you, and the latest actor is you or a bot (
typeBot): your own automation (Worktrunk, Greptile, CI) and replies on your own work. Exception: a different human as latest actor is real feedback, leave it. Personal namespace only, not shared orgs. - Open human thread (
reasonmention/comment, or a person authored) → leave. - Open non-Dependabot bot (e.g.
github-actions[bot]generated content) → leave; the diff is real. - Open Dependabot,
CLEAN, you have push → merge, then done. - Open Dependabot, not mergeable, low-importance → done, leave PR open. Low-importance:
deps-devtooling (eslint, prettier, globals, ncc,@types/*) and routine CI-action bumps (actions/checkout,actions/cache,goreleaser-action). - Open Dependabot, not mergeable, runtime/prod dep → leave. Shipped deps, Go modules, security bumps (
golang.org/x/*,through2,undici) are a real call. - Non-PR:
Release→ done;RepositoryAdvisory→ leave (security).
Ambiguous importance (a deps-dev bump that ships, a flaky-looking prod failure) → AskUserQuestion. Merges and dismissals are the user's call.
Act
Under --dry-run, print the plan and stop.
Merge with gh pr merge <n> --repo <r> --squash. Failure with add the --admin flag means branch protection is blocking it: do not pass --admin, leave and report as needs-review. Within one repo, same-file bumps go BEHIND after the first merge. Leave them for Dependabot to rebase.
Mark done with gh api --method DELETE notifications/threads/<id> (204 = ok). DELETE marks done. PATCH only marks read. Mark done after a merge, not before: the merge event resurfaces the thread once, and a rerun catches it under the closed/merged rule.
Verify
Done has no REST read-back: all=true still lists done threads and GET .../threads/<id> still returns 200, so a clean Inbox can't be confirmed by re-listing. Trust the 204s. Report what you merged, dismissed, and left (one line each), and tell the user to confirm in the app.
Установить github-triage в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
AskUserQuestionBash(gh api:*)Bash(gh pr view:*)Bash(gh pr merge:*)Bash(gh repo view:*)Bash(jq:*)Bash(column:*)FAQ
Что делает скилл github-triage?
Clear Dependabot and bot noise from your GitHub notification inbox: mark settled merged and closed PRs done, merge green dependency PRs in repos you maintain, dismiss low-value ones, and leave only real human threads behind.
Как установить скилл github-triage?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл github-triage запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic