repo-pr-triage
由 patrob 提供
Git & GitHub简介
Triage GitHub PRs and issues using vision-based scoring.
描述
该技能的功能
Scores and prioritizes open GitHub pull requests against a project vision document. Three steps: onboard (interview the repo owner to define mission and rubric), scan (apply heuristic scoring to PRs), and report (generate markdown files grouped by priority tier). Duplicate detection and cron scheduling are included.
Scores PRs against a custom vision document derived from the actual repo owner's priorities, rather than applying generic quality heuristics.
何时使用
- Triaging 50+ open PRs on a busy open source repo
- Building a priority queue before a release or milestone deadline
- Flagging spam and low-quality contributions automatically
- Detecting duplicate PRs across a large backlog
- Running weekly automated triage on a schedule
示例工作流
User asks: Triage the open PRs on github.com/myorg/myrepo
- 1
Run onboard.py with the repo URL to fetch README, CONTRIBUTING.md, and recent releases via gh CLI
- 2
Present interview questions to the repo owner covering mission, contribution priorities, and red/green flags
- 3
Save vision.md and rubric.md to the triage-config directory
- 4
Run scan.py against the repo using vision.md to score all open PRs and detect duplicates
- 5
Run report.py to produce prioritize.md, review.md, close.md, and summary.md
Four markdown reports grouping PRs by score tier (80+, 50-79, below 50), with a summary of score distribution, top PRs, duplicate candidates, and active authors
前置要求
- gh CLI installed and authenticated via gh auth login
安装
clawhub install patrob/repo-pr-triage运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。