agentleFS
yeaight7yeaight7/agent-powerups/skills/pr-triage/SKILL.md

pr-triage

Skill6 starsChanged 4 months agoApache-2.0View on GitHub

Use when open pull requests, stale branches, or review bottlenecks need prioritization from current repository state.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not use for deep code review or CI debugging unless explicitly requested.

    line 17
  2. Distinctive:

    Use the freshest source available.

    line 41
  3. Distinctive:

    ask author for changes

    line 69
  4. Very specific:

    If gh is missing or unauthenticated:

    line 113
  5. Distinctive:

    Use local git state or connector data instead.

    line 115
  6. Distinctive:

    Do not present PR status, checks, or review state as current unless verified.

    line 117

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Rank pull requests by urgency, impact, merge risk, and blocking effect so review time goes to the most important work first.

When to Use

  • Managing a backlog of open pull requests.
  • Surfacing review debt or stale branches.
  • Prioritizing review and merge work.
  • Preparing a short daily or weekly PR action list.

Do not use for deep code review or CI debugging unless explicitly requested.

Requirements

Preferred tools:

  • local git
  • optional gh CLI or repository connector

Optional gh check:

Get-Command gh -ErrorAction SilentlyContinue
gh auth status

Inputs

  • Access to local git state, gh, connector data, or a combination
  • Optional focus area such as stale branches, blocked reviews, or high-risk merges
  • Optional base branch and repository remote

Workflow

  1. Use the freshest source available.
git status --short
git branch --show-current
git log --oneline --decorate -n 20
  1. Gather PR metadata when GitHub CLI is available:
gh pr list --state open --json number,title,author,updatedAt,isDraft,reviewDecision,mergeStateStatus,statusCheckRollup,labels
gh pr view <pr> --json files,additions,deletions,reviewDecision,mergeStateStatus,statusCheckRollup
  1. Rank each PR.
SignalHigher priority when
Blocking effectOther work depends on it
Review ageIt is stale but still relevant
Merge stateIt has conflicts or failing required checks
Blast radiusIt touches public API, auth, data, migrations, or shared infra
SizeIt is small enough to unblock quickly or too large to ignore
  1. Separate action types:
  • review now
  • ask author for changes
  • wait for CI
  • rebase or resolve conflicts
  • close or defer
  1. Report uncertainty when source data is partial or stale.

Output

PR TRIAGE:
Top actions:
1. <PR> - <action> - <reason>

Blocked:
- <PR> - <blocker>

Review now:
- <PR> - <why now>

Stale/defer:
- <PR> - <reason>

Risks:
- <risk needing human judgment>

Verification

  • Freshest available source was used.
  • Source mismatches or missing metadata were called out.
  • Ranking criteria were applied consistently.
  • Each top PR has a concrete next action.
  • No code was edited.

Failure Modes

  • Using stale PR metadata without saying so.
  • Ranking by age only and ignoring merge risk.
  • Turning triage into deep review or debugging.
  • Pretending gh data exists when the CLI is missing or unauthenticated.

Missing Dependency Behavior

If gh is missing or unauthenticated:

  1. Use local git state or connector data instead.
  2. Mark GitHub-hosted metadata as partial or stale.
  3. Do not present PR status, checks, or review state as current unless verified.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.