skills/triage-pr/SKILL.md
Fetch, categorize, and address PR review comments in priority order. Classifies each comment as BLOCKER, QUESTION, SUGGESTION, or NITPICK and works through blockers first. Use when the user says "address PR comments", "fix review feedback", "respond to PR", "handle review comments", "triage PR", "what does the reviewer want", "address feedback", "PR comments", "review feedback", or needs to work through pull request review comments systematically.
npx skillsauth add indrasvat/claude-code-skills triage-prInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fetch, categorize, and address pull request review comments in priority order.
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).
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.
Get owner/repo: gh repo view --json owner,name --jq '"\(.owner.login)/\(.name)"'
Run all fetches in parallel:
gh pr view <num> --json title,body,baseRefName,headRefName,state,reviewDecisiongh api repos/{owner}/{repo}/pulls/{num}/commentsgh api repos/{owner}/{repo}/pulls/{num}/reviewsgh api graphql -f query='
query($owner:String!,$repo:String!,$num:Int!){
repository(owner:$owner,name:$repo){
pullRequest(number:$num){
reviewThreads(first:100){nodes{id isResolved
comments(first:10){nodes{id body author{login} path line createdAt}}
}}
}
}
}' -f owner=OWNER -f repo=REPO -F num=NUM
Discard all threads where isResolved is true. Only unresolved threads proceed.
For each unresolved comment, record: reviewer, file:line, full text, category. Assign exactly one category (first match wins):
| Category | Signals |
|----------|---------|
| BLOCKER | Required change, bug, security issue, "must", "please fix", CHANGES_REQUESTED reviewer |
| QUESTION | Asks for clarification, "why", "can you explain", "what about", substantive ? |
| SUGGESTION | Optional improvement, "consider", "maybe", "might be nice", "what if", "could we" |
| NITPICK | Minor style, starts with "nit:", "nitpick", "minor", formatting-only |
Default to SUGGESTION if no pattern matches.
Work through BLOCKERs, then QUESTIONs, then SUGGESTIONs, then NITPICKs.
gh without user permission.Track each comment as: FIXED, DRAFTED, SKIPPED, or PENDING.
| # | Category | Reviewer | File:Line | Status |
|---|------------|----------|--------------------|---------|
| 1 | BLOCKER | alice | src/auth.ts:42 | FIXED |
| 2 | QUESTION | bob | lib/utils.go:118 | DRAFTED |
| 3 | SUGGESTION | alice | src/auth.ts:55 | SKIPPED |
| 4 | NITPICK | carol | README.md:12 | FIXED |
Safe to re-run. Fetches fresh state each time. Resolved threads are automatically skipped via the GraphQL isResolved check.
$ARGUMENTS -- PR number. If omitted, detected from the current branch.
testing
Create a pull request with a standards compliance review gate. Reviews the diff against CLAUDE.md and repo conventions before creating the PR, stopping on discrepancies. Supports tiered PR templates (small, standard, complex). Use when the user says "create PR", "open PR", "ship it", "ship PR", "make a pull request", "push and PR", "ready for review", "send for review", "create a pull request", or wants to create a GitHub pull request from the current branch.
testing
Verify Kubernetes deployment health — pod status, rollout progress, events, readiness, HPA state, and recent errors. Use when the user says "check rollout", "is deploy healthy", "rollout status", "deployment health", "pod status", "check pods", "why is deploy failing", "k8s health", "verify deployment", "are pods ready", "check deployment", or wants to verify a Kubernetes deployment is healthy after a rollout.
documentation
Generate comprehensive Product Requirements Documents with interactive discovery, progress tracking, and True Ralph Loop support for autonomous implementation. Use when user wants to (1) create a PRD for a new project/feature, (2) implement a PRD autonomously with fresh Claude sessions, (3) track implementation progress, (4) recover context after session loss. Creates docs/PRD.md and docs/PROGRESS.md.
testing
Analyze database schema migrations for safety — lock risk, backward compatibility, rollback path, and data preservation. Use when the user says "check migration", "migration safe", "migration review", "schema change review", "will this lock", "migration guard", "review schema changes", "database migration check", "is this migration safe", or when a migration file has been created or modified.