Agent skill

Open PR Queue Triage

by codewhale-hq in codewhale-hq/Codewhale

Surveys every open Codewhale pull request and proposes a direct-merge, harvest, defer or close-with-note disposition for each, tested against the real release branch rather than main.

MITAuto-check passedDevelopment

Install Open PR Queue Triage

skills CLI
$ npx skills add codewhale-hq/Codewhale --skill gh-find-prs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install codewhale-hq/Codewhale gh-find-prs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/codewhale-hq/Codewhale.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/skills/gh-find-prs .claude/skills/gh-find-prs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
gh-find-prs
GitHub stars
41k
Token cost
~1.4k tokens
SKILL.md length
669 words
Files
1
Skills in repo
63
Repo updated
First seen
Licence
MIT

At a glance

Surveys every open Codewhale pull request and proposes a direct-merge, harvest, defer or close-with-note disposition for each, tested against the real release branch rather than main.

  • Works in 7 steps: Inventory the queue. One call, structured → Identify the real landing branch. The… → Read each candidate from code, not… → …
  • Answering what's in the PR queue or what can we land before a release
  • SKILL.md covers When to use, Workflow and Red flags / don't
  • Calls git, cargo and gh

What it does

This skill is read-and-recommend only: it never merges, closes, tags or publishes, surfacing evidence and a proposed disposition per PR for the maintainer to approve. It starts by inventorying the open queue in one structured call that includes each PR's mergeStateStatus, noting that this flag is computed against main and is only a hint, since the real landing target is usually a different, often local-only, release branch found by checking recent branches and the release head's latest commit.

Every non-trivial candidate is read from its diff, not its title, since a fix-labeled PR can turn out to be a no-op or regression while a chore-labeled one can be the real fix, and the skill reads review comments and tests alongside the diff. Failing checks are decoded by job name rather than taken at face value: Codewhale's own CI jobs are named Lint, per-OS Test runs, Version drift, a Contribution gate, an npm wrapper smoke test, a mobile runtime smoke test, Documentation and GitGuardian Security Checks, and a Lint failure caused only by formatting drift is treated as trivial and harvestable, while a failing Test or clippy check is read in full before being trusted.

The excerpt is cut off before listing the final disposition categories in full, though the skill's purpose is named as assigning each PR a DIRECT-MERGE, HARVEST, DEFER or CLOSE-WITH-NOTE call with credit attached.

When your agent uses it

  • Answering what's in the PR queue or what can we land before a release
  • Sweeping community contributions into the active release branch before a cut
  • Deciding whether a failing CI check is trivial formatting drift or a real problem
  • Proposing a per-PR disposition for a maintainer to approve

Example prompts

  • “Survey the open PR queue and propose a disposition for each one.”
  • “This PR shows mergeable on GitHub. Check if it actually merges into our release branch.”
  • “Decode the failing Lint check on PR #601 and tell me if it's just formatting drift.”
  • “Give me a prioritized list of PRs ready for direct merge before the release cut.”

Requirements

  • The GitHub CLI (gh)
  • A local checkout with the release branch available

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Inventory the queue. One call, structured
  2. Identify the real landing branch. The release head is frequently local-only
  3. Read each candidate from code, not title. For every non-trivial PR
  4. Decode check failures — distinguish trivial from real. In statusCheckRollup, find each conclusion: FAILURE and read its job. Codewhale's…
  5. Test-merge against the real release head. The mergeStateStatus flag lies for local branches. Probe the actual merge
  6. Assign a disposition with required credit. Per PR, recommend exactly one
  7. Report, don't act. Output a compact table: PR | author | landing-branch verdict | check summary | disposition | credit line. Stop there…

What it can do on your machine

Read from SKILL.md and the folder at commit 64bb073. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • cargo
    • gh
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, gh and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Open PR Queue Triage loads about 1.4k tokens when it runs. Until then it costs about 30 tokens; SKILL.md has 669 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~30
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from codewhale-hq/Codewhale at commit 64bb073, republished under its MIT licence (© codewhale-hq). 669 words, ~1,415 tokens.

Download SKILL.mdSave it as .claude/skills/gh-find-prs/SKILL.md (or your agent's skills folder).
name
gh-find-prs
description
Survey open Codewhale PRs and triage each for mergeability and disposition against the real landing branch.

gh-find-prs

Survey the open PR queue and assign each PR a disposition — backed by code, tests, and checks, never by title — testing real mergeability against the actual release branch (often local-only, e.g. <release-branch>), not the main-based GitHub flag.

When to use

  • A maintainer asks "what's in the PR queue?", "what can we land?", or "triage open PRs".
  • Before a release cut, to sweep community contributions into the active release branch.
  • Whenever you need a per-PR DIRECT-MERGE / HARVEST / DEFER / CLOSE-WITH-NOTE call with credit attached.

This is read-and-recommend. You do NOT merge, close, tag, or publish. You surface evidence and a proposed disposition; the maintainer approves.

Workflow

  1. Inventory the queue. One call, structured:

    gh pr list --repo codewhale-hq/CodeWhale --state open \
      --json number,title,author,headRefName,baseRefName,isDraft,mergeStateStatus,statusCheckRollup

    Note mergeStateStatus (CLEAN / BLOCKED / DIRTY / UNKNOWN) but treat it as a hint only — it is computed against main, and the real landing target is usually a different branch.

  2. Identify the real landing branch. The release head is frequently local-only:

    git branch --sort=-committerdate --format='%(committerdate:short) %(refname:short)' | head -20
    git log --oneline -1 <release-branch>

    Ask the maintainer when several lanes look live. Use that ref, not main, for every mergeability test below.

  3. Read each candidate from code, not title. For every non-trivial PR:

    gh pr view <N> --repo codewhale-hq/CodeWhale \
      --json files,additions,deletions,statusCheckRollup,body,comments
    gh pr diff <N> --repo codewhale-hq/CodeWhale

    Read the diff. A "fix(exec): ..." can be a no-op or a regression; a "chore" can be the real fix. Judge the change, the tests it adds, and any review comments.

  4. Decode check failures — distinguish trivial from real. In statusCheckRollup, find each conclusion: FAILURE and read its job. Codewhale's CI jobs are Lint, Test (ubuntu-latest|macos-latest|windows-latest), Version drift, gate (Contribution gate), npm wrapper smoke, Mobile runtime smoke, Documentation, GitGuardian Security Checks.

    • A Lint failure that is only cargo fmt drift is trivial — harvestable, fix on landing with cargo fmt --all.
    • A failing Test (...) or clippy under Lint is real — read the log before trusting it.
    • Version drift failing on a community PR is expected (they bumped, or didn't); not a blocker for harvest.
    cargo fmt --all -- --check && cargo clippy --workspace --all-targets
  5. Test-merge against the real release head. The mergeStateStatus flag lies for local branches. Probe the actual merge:

    git merge-tree --write-tree --messages <release-branch> origin/pr/<N>   # if PR ref is fetched
    git merge-tree --write-tree --messages <release-branch> <pr-head-sha>

    Exit 0 and no CONFLICT lines → clean against the release branch (DIRECT-MERGE candidate even when GitHub shows BLOCKED/DIRTY). Conflicts printed → HARVEST or DEFER. This is read-only; it writes objects to the object store, not to any branch or working tree.

  6. Assign a disposition with required credit. Per PR, recommend exactly one:

    • DIRECT-MERGE — diff is sound, checks are green or trivially-fixable, merge-tree is clean against the release head. Land via cherry-pick to preserve the original author automatically.
    • HARVEST — the change is good but conflicts, needs fmt/rebase, or is entangled with the release work. Reimplement on the release branch and credit with trailers (cherry-pick is not preserving authorship here):
      Co-authored-by: Name <email>
      
      Harvested from PR #<N> by @handle
      The Harvested from PR #<N> by @handle body line is what the auto-close-at-main workflow greps for; a Harvested-from: trailer does not match. See gh-credit-harvest for the exact shape.
    • DEFER — sound but blocked by an open question, missing tests, or a release freeze. Leave a positive, specific comment; do not close.
    • CLOSE-WITH-NOTE — superseded, duplicated, or out of scope. Propose the close to the maintainer with a crediting, appreciative note; never close it yourself.
  7. Report, don't act. Output a compact table: PR | author | landing-branch verdict | check summary | disposition | credit line. Stop there for maintainer approval.

Show full SKILL.md (136 more words)Show less

Red flags / don't

  • Don't judge by title. "fix(...)" / "feat(...)" / emoji-prefixed test PRs prove nothing. Open the diff every time.
  • Don't trust mergeStateStatus for the real target. CLEAN/BLOCKED/DIRTY are vs main; always confirm with git merge-tree <release> <pr-head>.
  • Don't conflate trivial and real check failures. A fmt-only Lint red is harvestable; a failing Test (...) is not — read the log.
  • Don't drop credit. Every harvest carries Co-authored-by: + a Harvested from PR #N body line; every cherry-pick keeps the original author. No silent reimplementation.
  • Don't merge, close, retarget, tag, publish, or release. Recommend; the maintainer decides.
  • Don't post negative or nitpicking comments. GitHub-facing comments are positive and crediting; keep critique in your internal report to the maintainer.
  • Don't modify the working tree or any branch. git merge-tree --write-tree is the only "write" allowed — it touches the object store only.

© codewhale-hq, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/skills/gh-find-prs of codewhale-hq/Codewhale.

Open the folder on GitHubat commit 64bb073

Compare with similar skills

Open PR Queue Triage next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Open PR Queue Triage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Open PR Queue Triage this skillcodewhale-hq/Codewhale41k—~1.4kAutomated safety check: PassMIT
PR Createposit-dev/skills535—~4.3kAutomated safety check: WarnMIT
Qv Devops PR Reviewtetherto/qvac685—~2.5kAutomated safety check: PassApache-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0

Similar skills

  • PR Create

    posit-dev/skills

    Creates a pull request from current changes, monitors GitHub CI, and debugs any failures until CI passes.

    535 GitHub stars~4.3k tokensUpdated 3 days ago
    DevelopmentAuto-check: warnings
  • Qv Devops PR Review

    tetherto/qvac

    PR review for DevOps changes — runs the generic /qv-pr-review flow then layers a structured GitHub Actions security audit (action pinning, permissions, OIDC, secrets handling).

    685 GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Pull Request Title and Body Writer

    openinterpreter/openinterpreter

    Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.

    69k GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check passed

More from codewhale-hq/Codewhale

All 63 skills in this repo
  • Codewhale Dogfood Install

    codewhale-hq/Codewhale

    Proves a Codewhale change in the real product: a stamped release build, an atomic local install, fresh-shell verification and manual QA that automated gates cannot cover.

    41k GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Codewhale Session Handoff

    codewhale-hq/Codewhale

    Writes a paste-ready handoff for the next agent session, opening with a state-check command block and separating done, suspected and blocked work.

    41k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Codewhale Landing Workflow

    codewhale-hq/Codewhale

    Decides how verified work should reach main, directly, in a worktree or on an integration branch, while keeping contributor credit and respecting merge gates.

    41k GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Sub-Agent Delegation

    codewhale-hq/Codewhale

    Guides when and how to split multi-step coding, research or verification work into focused sub-agent runs while the parent keeps integration and final checks.

    41k GitHub stars~790 tokensUpdated today
    Auto-check passed
  • Codewhale Fleet Manager

    codewhale-hq/Codewhale

    Triages and manages Codewhale fleet runs and workers with typed commands, classifying failures and choosing a safe restart, resume or escalation.

    41k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • GitHub Issue Bulk Assigner

    codewhale-hq/Codewhale

    Moves a list of GitHub issues into a milestone or assigns them to owners with the gh CLI, checking each one before and after the change.

    41k GitHub stars~953 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Open PR Queue Triage

What does Open PR Queue Triage do?

Surveys every open Codewhale pull request and proposes a direct-merge, harvest, defer or close-with-note disposition for each, tested against the real release branch rather than main. This skill is read-and-recommend only: it never merges, closes, tags or publishes, surfacing evidence and a proposed disposition per PR for the maintainer to approve. It starts by inventorying the open queue in one structured call that includes each PR's mergeStateStatus, noting that this flag is computed against main and is only a hint, since the real landing target is usually a different, often local-only, release branch found by checking recent branches and the release head's latest commit.

When should I use Open PR Queue Triage?

Open PR Queue Triage fits situations like: answering what's in the PR queue or what can we land before a release; sweeping community contributions into the active release branch before a cut; deciding whether a failing CI check is trivial formatting drift or a real problem; proposing a per-PR disposition for a maintainer to approve.

How do I install Open PR Queue Triage in Claude Code?

Run `npx skills add codewhale-hq/Codewhale --skill gh-find-prs -a claude-code`. Or copy the skill folder (docs/skills/gh-find-prs in codewhale-hq/Codewhale) into .claude/skills/gh-find-prs in your project. Claude Code loads it when a task matches its description.

How do I install Open PR Queue Triage in Codex?

Run `npx skills add codewhale-hq/Codewhale --skill gh-find-prs -a codex`. Or copy the skill folder (docs/skills/gh-find-prs in codewhale-hq/Codewhale) into .agents/skills/gh-find-prs in your project. Codex loads it when a task matches its description.

Can I use Open PR Queue Triage in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add codewhale-hq/Codewhale --skill gh-find-prs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/gh-find-prs, .gemini/skills/gh-find-prs, .github/skills/gh-find-prs and .opencode/skills/gh-find-prs in your project.

What does Open PR Queue Triage need to run?

Going by SKILL.md and its folder, Open PR Queue Triage needs the command-line tools its instructions call (git, cargo, gh and npm). Our summary lists: The GitHub CLI (gh); A local checkout with the release branch available.

Does Open PR Queue Triage access the network?

SKILL.md contains no URLs. Its commands use git, gh and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Open PR Queue Triage safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Open PR Queue Triage use?

Open PR Queue Triage is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Open PR Queue Triage use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Open PR Queue Triage?

Skills that share tags, products or a category with Open PR Queue Triage: PR Create (posit-dev/skills, 535 stars), Qv Devops PR Review (tetherto/qvac, 685 stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars) and Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Open PR Queue Triage?

codewhale-hq (a GitHub organization) maintains it in codewhale-hq/Codewhale, which has 41,076 GitHub stars. The repository holds 63 skills in this directory. The repository was last updated on October 10, 2026.

Source: codewhale-hq/Codewhale on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.