← LeaderboardThe Skill Leaderboard

triage-prs

This skill should be used when the user asks to "triage PRs", "triage contributions", "check PR queue", "review incoming PRs", "close invalid PRs", or explicitly invokes "triage-prs".

Published by fcakyon ↗fcakyon/claude-codex-settings

Try your first task

A source-grounded starter task has not been verified for this skill yet.

SKILL.md

name: triage-prsdescription: This skill should be used when the user asks to "triage PRs", "triage contributions", "check PR queue", "review incoming PRs", "close invalid PRs", or explicitly invokes "triage-prs".

Triage PRs

Evaluate open pull requests (or incoming issue-linked PRs) against repository contribution policy using deterministic checks plus grounded judgment, with safe dry-run output by default.

Accept extra invocation text as specific PR numbers, search filters, or --apply vs --dry-run. Always default to dry-run (--dry-run) unless the user explicitly asks to post comments, apply labels, or close PRs.

Workflow

  1. Load repository policy first

    • Read CONTRIBUTING.md, AGENTS.md, .github/triage/, .github/pull_request_template.md, and any vouch/exemption configs present in the repo.
    • Follow that repo's exact eligibility, size, vouch, and labeling rules instead of generic assumptions.
  2. Phase 1: Deterministic facts

    • T3 Code: Call pull_request_list and pull_request_read (include: ["diff", "checks", "threads"]) to gather author, draft/open state, base/head refs, diff scope, and checks.
    • CLI clients: Run gh pr view <pr> --json number,author,isDraft,mergeable,baseRefName,headRefName,changedFiles,additions,deletions,commits,closingIssuesReferences,statusCheckRollup,body (note gh rejects authorAssociation in --json, so read .author_association via gh api repos/{owner}/{repo}/pulls/<n> --jq .author_association or GraphQL).
    • Flag immediate structural blockers: missing reproduction or linked issue when required, bundled unrelated changes (one problem per PR), forbidden committed PR assets, failing required checks, duplicate PRs (gh pr list --search ...), or unredacted sensitive data.
  3. Phase 2: Engineering fit and quality

    • Inspect the PR diff (pull_request_read or gh pr diff <pr>, skipping locks/generated files) to verify whether the implementation actually solves the stated problem without dead complexity, broken platform parity, tautological tests, or unreviewed generated churn.
  4. Assign clear triage outcomes

    • Eligible / ready: Matches repo scope and standards, ready for human reviewer assignment or automated review trigger.
    • Needs author action: Missing issue link, missing verification/Before-After screenshots, oversized mixed scope, or failing checks.
    • Duplicate / superseded: Point to the canonical PR or issue.
    • Ineligible / close: Clearly violates repo contribution policy, spam, or out-of-scope rewrite.
  5. Dry-run report and safe execution

    • Print a structured table (PR | Author | Scope | Checks | Verdict | Proposed Action) with exact verified facts and drafted contributor comments (direct, polite, naming exact missing requirements without robotic filler).
    • Execute remote mutations (pull_request_update, pull_request_respond without reviewThreadId, or gh pr comment / gh pr edit --add-label / gh pr close) only when the user explicitly authorized live triage (--apply), reading back each modified PR afterward to confirm final state.