"Fix unresolved PR review comments. Triggers: 'fix comments', 'fix PR comments', 'address review feedback'."
Resources
2Install
npx skillscat add luan/dot-claude/pr-comments Install via the SkillsCat registry.
PR Comments Fixer
Fix unresolved review comments from a PR.
Safety: NEVER replies to or resolves threads — only fetches and fixes locally. Push requires confirmation (unless --auto). --auto auto-resolves bot comments only (not human comments).
Context
PR: !gh pr view --json number,headRefName -q '{number,headRefName}' 2>/dev/null
Repo: !gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null
Branch: !git branch --show-current 2>/dev/null
Steps
Detect PR: Use injected context above. If empty, ask user.
Verify branch: Compare injected Branch vs PR headRefName — mismatch → ask user and stop. Do not proceed to Step 3 until the user confirms or switches branches.
Fetch comments (execute directly — never prefix with
python3/uv run):${CLAUDE_SKILL_DIR}/scripts/fetch_threads.py --pr <PR> --repo <Repo>--auto→ fix all comments, auto-resolve bot comments (author is a bot/app). Without--auto→ display as numbered list with file:line, author, preview. Ask "Which comment(s) to fix?" — options: "Fix all" / "Other"Plan fixes: For each comment, read code, create one-line fix description.
--auto→ proceed. Without--auto→ ask "Ready to execute?"Execute: Apply fixes, summarize changes.
Run tests: Detect and run the project test suite (look for
testscript in package.json, pytest, cargo test, etc.). Fix failures caused by your changes. If 3+ failures persist after fixes, report and stop.Commit: Use
Skill(commit)to generate message and commit.Push (optional):
--auto→ push automatically. Without--auto→ ask first. UseSkill(gt:submit)if gt plugin is loaded, otherwisegit push.