Triage Open Pull Requests
Description
Review, label, and act on all open PRs for a repository using parallel review agents. Produces a grouped triage report, applies labels, cross-references with issues, and walks through each PR for merg
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
Repository README
This is the README for EveryInc/compound-engineering-plugin, shared by 4 entries
in this directory. It describes the repository, not this entry specifically.
name: triage-prs description: Triage all open PRs with parallel agents, label, group, and review one-by-one argument-hint: "[optional: repo owner/name or GitHub PRs URL]" disable-model-invocation: true allowed-tools: Bash(gh *), Bash(git log *)
Triage Open Pull Requests
Review, label, and act on all open PRs for a repository using parallel review agents. Produces a grouped triage report, applies labels, cross-references with issues, and walks through each PR for merge/comment decisions.
Step 0: Detect Repository
Detect repo context:
- Current repo: !
gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo "no repo detected" - Current branch: !
git branch --show-current 2>/dev/null
If `$ARGUMENTS` contains a GitHub URL or `owner/repo`, use that instead. Confirm the repo with the user if ambiguous.
Step 1: Gather Context (Parallel)
Run these in parallel:
**List all open PRs:**
gh pr list --repo OWNER/REPO --state open --limit 50**List all open issues:**
gh issue list --repo OWNER/REPO --state open --limit 50**List existing labels:**
gh label list --repo OWNER/REPO --limit 50**Check recent merges** (to detect duplicate/superseded PRs):
git log --oneline -20 main
Step 2: Batch PRs by Theme
Group PRs into review batches of 4-6 based on apparent type:
- Bug fixes - titles with
fix,bug, error descriptions - Features - titles with
feat,add, new functionality - Documentation - titles with
docs,readme, terminology - Configuration/Setup - titles with
config,setup,install - Stale/Old - PRs older than 30 days
Step 3: Parallel Review (Team of Agents)
Spawn one review agent per batch using the Task tool. Each agent should:
For each PR in their batch:
- Run
gh pr view --repo OWNER/REPO --json title,body,files,additions,deletions,author,createdAt - Run
gh pr diff --repo OWNER/REPO(pipe tohead -200for large diffs) - Determine:
- Description: 1-2 sentence summary of the change
- Label: Which existing repo label fits best
- Action: merge / request changes / close / needs discussion
- Related PRs: Any PRs in this or other batches that touch the same files or feature
- Quality notes: Code quality, test coverage, staleness concerns
Instruct each agent to:
- Flag PRs that touch the same files (potential merge conflicts)
- Flag PRs that duplicate recently merged work
- Flag PRs that are part of a group solving the same problem differently
- Report findings as a markdown table
- Send findings back via message when done
Step 4: Cross-Reference Issues
After all agents report, match issues to PRs:
- Check if any PR title/body mentions
Fixes #XorCloses #X - Check if any issue title matches a PR's topic
- Look for duplicate issues (same bug reported twice)
Build a mapping table:
| Issue | PR | Relati
Related Skills
Epic Sync
Sync epic issue bodies, labels, and local coordination snapshots from GitHub.
Git 使用 Git Worktrees
创建孤立的 Git worktrees,带有智能目录选择与安全验证。
Git Claude skills github
[Building agent skills blog](https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-ag
Git #148
, [#161](https://github.com/affaan-m/everything-claude-code/pull/161))
Git GitHub MCP
| Token | Repos, issues, PRs, workflows |
Git GitHub MCP Server
Official first-party server to read repos, manage issues/PRs, and automate workflows.
Git