triage-pr
Installation
SKILL.md
Triage PR
Fetch, categorize, and address pull request review comments in priority order.
Prerequisites
Fail immediately with an explicit error if any check fails: gh installed (command -v gh), authenticated (gh auth status), inside a git repo (git rev-parse --is-inside-work-tree).
Step 1 -- Identify PR
Use $ARGUMENTS as the PR number if provided. Otherwise detect from the current branch via gh pr view --json number --jq '.number'. Stop if no PR is found, or if the PR state is CLOSED or MERGED.
Step 2 -- Fetch
Get owner/repo: gh repo view --json owner,name --jq '"\(.owner.login)/\(.name)"'
Run all fetches in parallel: