repo-pr-triageTriage GitHub PRs and issues using vision-based scoring. Use when a user wants to prioritize, score, review, de-duplicate, or batch-process open pull request...
Install via ClawdBot CLI:
clawdbot install patrob/repo-pr-triageScore and prioritize GitHub PRs against a project's vision document. Three-step workflow: onboard, scan, report.
# 1. Onboard: gather repo context, interview the owner
python3 scripts/onboard.py https://github.com/owner/repo --output-dir ./triage-config
# 2. Scan: score open PRs against the vision
python3 scripts/scan.py https://github.com/owner/repo ./triage-config/vision.md --output scores.json
# 3. Report: generate markdown triage reports
python3 scripts/report.py scores.json --output-dir ./triage-reports
Run scripts/onboard.py with a GitHub repo URL. It fetches the README, CONTRIBUTING.md, recent releases, and repo metadata via gh CLI, then outputs an interview prompt.
Use the interview prompt to ask the repo owner these questions:
Identity & Mission:
Priorities:
Red/Green Flags:
Context:
After the interview, generate two files in the output directory:
vision.md - Project mission, identity, priorities, alignment signalsrubric.md - Scoring rubric customized from references/rubric-template.mdRun scripts/scan.py with the repo URL and vision doc path. It:
gh pr list (title, body, labels, stats, author, date)The scan uses heuristic scoring (keyword matching, diff size, test mentions). For deeper analysis, read the JSON output and apply additional LLM reasoning to ambiguous PRs (scores 40-60).
Options:
--count N - Number of PRs to fetch (default: 100)--output file.json - Save to file instead of stdoutRun scripts/report.py with the scan JSON. It generates four markdown files:
prioritize.md - PRs scoring 80+ (fast-track for review)review.md - PRs scoring 50-79 (standard queue)close.md - PRs scoring below 50 (likely close or request changes)summary.md - Distribution, top 3, patterns, duplicates, active authorsBase score: 50. Key modifiers:
| Signal | Points |
|--------|--------|
| Security fix | +20 |
| Bug fix with tests | +10 |
| Core functionality improvement | +10 |
| Performance (measured) | +8 |
| Small focused diff | +5 |
| Has tests | +5 |
| Spam/promotion | -30 |
| Unwanted dependency | -25 |
| Large diff, no tests | -15 |
| No description | -5 |
Full rubric: references/rubric-template.md
Example vision doc: references/example-vision.md
Set up a cron job to scan weekly:
description: Weekly PR triage for owner/repo
schedule: "0 9 * * MON"
model: anthropic/claude-sonnet-4-20250514
channel: telegram
Cron prompt: "Run pr-triage scan on https://github.com/owner/repo using ./triage-config/vision.md, generate reports, and send the summary."
gh CLI installed and authenticated (gh auth login)Generated Feb 23, 2026
An open-source maintainer uses the skill to triage a backlog of PRs after a conference or hackathon, ensuring high-quality contributions align with project vision. It helps prioritize security patches and bug fixes over feature requests during maintenance mode.
A tech startup founder applies the skill to manage PRs from a distributed team, fast-tracking core functionality improvements while filtering out spam or low-quality changes. It supports onboarding new developers by clarifying project priorities through the vision document.
A large enterprise uses the skill to batch-process PRs during a legacy system migration, scoring contributions based on performance and test coverage. It helps de-duplicate similar refactoring efforts and generates reports for stakeholder review.
A research lab employs the skill to triage PRs from collaborators, prioritizing bug fixes and documentation updates to ensure reproducibility. The vision document captures non-negotiable principles like data integrity and open science standards.
A DevOps team uses the skill to scan PRs for infrastructure-as-code repositories, scoring based on security and measured performance impacts. It automates weekly triage via cron jobs to maintain system stability during rapid deployment cycles.
Offer the skill as a service within a SaaS platform for GitHub project management, charging subscription fees based on repo size or scan frequency. Revenue comes from tiered plans with advanced features like LLM reasoning for ambiguous PRs.
Provide consulting services to organizations for customizing the vision document and rubric, with one-time fees for onboarding and ongoing support. Revenue is generated through project-based contracts and training workshops.
Distribute the skill as a free open-source tool, monetizing through premium features such as automated cron job scheduling, detailed analytics dashboards, and integration with other project management tools. Revenue comes from paid upgrades.
💬 Integration Tip
Ensure the gh CLI is authenticated and the vision document is regularly updated to reflect evolving project goals for accurate scoring.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Query the DeepWiki MCP server for GitHub repository documentation, wiki structure, and AI-powered questions.
Automated GitHub PR code review with diff analysis, lint integration, and structured reports. Use when reviewing pull requests, checking for security issues,...
Essential Git commands and workflows for version control, branching, and collaboration.
Advanced git operations beyond add/commit/push. Use when rebasing, bisecting bugs, using worktrees for parallel development, recovering with reflog, managing subtrees/submodules, resolving merge conflicts, cherry-picking across branches, or working with monorepos.
Format commit messages using the Conventional Commits specification. Use when creating commits, writing commit messages, or when the user mentions commits, git commits, or commit messages. Ensures commits follow the standard format for automated tooling, changelog generation, and semantic versioning.