pr-commentslisted
Install: claude install-skill WhatIfWeDigDeeper/agent-skills
# PR Review: Implement and Respond to Review Comments
Work through open PR review threads — implement valid suggestions, explain why invalid ones won't be addressed, and close the loop by resolving threads and committing with commenter credit.
## Arguments
Optional PR number (e.g. `42` or `#42`). If omitted, detect from the current branch. The argument is the text following the skill invocation (in Claude Code: `/pr-comments 42`); in other assistants it may be passed differently.
If `$ARGUMENTS` is `help`, `--help`, `-h`, or `?`, print usage and exit.
Strip a single leading `#` from `$ARGUMENTS` before checking whether it is a number, and pass the cleaned numeric PR number (without `#`) to `gh pr view` (so both `42` and `#42` work). The cleaned value must match `^[1-9][0-9]{0,5}$` before any shell call — reject anything else with: `Invalid PR number: <value>. Must be a positive integer.` See [Security model](#security-model) for the threat model behind this validation.
**Auto mode is the default.** The Step 7 confirmation prompt and the Step 13 push/re-request prompt are skipped automatically — the plan table is shown each iteration for observability, but no user approval is required.
Optional `--manual` flag restores the confirmation gates: the skill pauses at Step 7 with a `Proceed? [y/N/auto]` prompt before applying any changes and pauses again at Step 13 before pushing or re-requesting review. `--manual` is **sticky** — once it appears anywhere in the arguments the