Skip to content
cccskills
FreePublished on GitHub

gh-find-prs

Review open pull requests against the actual release branch, inspect code changes and failed checks, and produce an evidence-based table recommending direct integration, selective reuse, deferral, or closure, with contributor credit.

OriginalShow the original description

Survey open Codewhale PRs and triage each for mergeability and disposition against the real landing branch.

Works withGitHub
See how to install

Good for

  • Reviewing the open pull request queue
  • Selecting contributions for an upcoming release
  • Checking conflicts against a local release branch
  • Planning contributor credit when reusing changes

Files included (1)

  • SKILL.md5.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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.

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.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

batch

FreeSummary

Split a large goal into clearly bounded tasks that can run in parallel. Coordinate existing agent and worktree tools, then combine and verify the results. The skill starts only when explicitly requested.

  • Splitting a large goal into parallel tasks
  • Coordinating work across multiple agents
  • Running tasks in separate worktrees
codewhale-hq/Codewhale41.1KUpdated Oct 19, 2026

best-of-n

FreeSummary

Generate independent options for design, implementation, explanations, or debugging, then compare them using one shared rubric. Code candidates use separate working copies and undergo independent verification before a winner is presented for review.

  • Comparing several plausible design approaches
  • Evaluating independent implementations of the same task
  • Comparing explanations or debugging approaches
codewhale-hq/Codewhale41.1KUpdated Oct 19, 2026

Check Codewhale release readiness through ordered tests, builds, version checks, and manual terminal checks. Record command results and observed behavior, including responsiveness, route isolation, and follow-up input handling, while explicitly identifying any skipped checks.

  • Run automated checks on the actual release branch
  • Check whether a PR merges into the release branch
  • Manually test terminal responsiveness and input behavior
codewhale-hq/Codewhale41.1KUpdated Oct 19, 2026

computer-use

FreeSummary

Operate desktop apps and isolated browsers on registered computers by inspecting interface controls, entering information, and checking results. The skill also covers screenshots and recording, with separate routing for the user's signed-in Chrome through Chromewhale.

  • Entering information through a desktop app interface
  • Working in an isolated browser session
  • Capturing screenshots or recordings for a task
codewhale-hq/Codewhale41.1KUpdated Oct 19, 2026

Check a local Codewhale checkout before contributing: inspect branch and sync status, build the CLI, and run the repository’s CI checks. Present recent commits and changelog entries from local files, with clear status for each step.

  • Checking a checkout before contributing
  • Reviewing local changes and sync status
  • Running the build and CI verification commands
codewhale-hq/Codewhale41.1KUpdated Oct 19, 2026

cw-dogfood

FreeSummary

Builds and installs Codewhale with a source revision identifier, then verifies the installed version in a fresh shell. It guides hands-on runtime checks for interface behavior, routing, approvals, and other changes that automated tests may miss.

  • Verifying terminal interface changes in the actual product
  • Installing and checking a local release build
  • Checking model routing and approval behavior
codewhale-hq/Codewhale41.1KUpdated Oct 19, 2026

See all skills by codewhale-hq

Report a problem with this skill