# Cmd Fix Pr Review

> Fix review comments on current PR

- Skill: `gsmlg-dev/cmd-fix-pr-review` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gsmlg-dev/cmd-fix-pr-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gsmlg-dev/cmd-fix-pr-review/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: gsmlg-dev (https://skillmd.com/u/gsmlg-dev)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/gsmlg-dev/cmd-fix-pr-review

---


Determine the current PR number. Create a git worktree at `.trees/pr-<number>-review` for the PR branch.

Fetch pending review comments using `gh pr view` and `gh api` for review threads.

For each unresolved comment:
1. Read the comment context and referenced code
2. Apply the requested change in the worktree
3. Commit with message referencing the review comment
4. Resolve the thread if possible via `gh api`

After all comments are addressed, spawn 3 parallel review subagents on the full diff:
1. Code quality reviewer — correctness, patterns, regressions
2. Business logic reviewer — requirements alignment, edge cases
3. Security reviewer — vulnerabilities, input validation

Aggregate findings. If any reviewer flags issues:
1. Fix flagged issues in the worktree
2. Re-run the review team (max 3 iterations)

Push all changes to the remote branch once all reviewers pass.

Clean up the worktree on exit.

Run autonomously without approval checkpoints.
