triage-pr-comments
Installation
SKILL.md
triage-pr-comments
Analyze every review comment on a PR. For each comment, deeply understand the concern and the code, assess the ramifications of fixing vs not fixing, and recommend whether to fix. Double-check each recommendation.
Step 1: Parse Input and Gather Data
Parse $ARGUMENTS to extract repository and PR number. Support:
- No arguments (default): Run
gh pr view --json number,url -q .numberto find the PR associated with the current branch. If no PR exists for the current branch, tell the user and stop. - Full URL:
https://github.com/owner/repo/pull/42 - Shorthand:
owner/repo#42 - Bare number:
42(assumes current repo fromgh repo view --json nameWithOwner -q .nameWithOwner)
Fetch PR metadata: