fix-pr-review-loop

fix-pr-review-loop is a skill for Claude Code from richkuo/rk-skills. It costs 132 tokens per session (3,896 once invoked), scanned A, original, MIT.

An automated cycle for taking an open GitHub pull request with review feedback toward approval. It repeatedly applies the review-fixing process and waits for another review until the feedback is resolved or the cycle reaches its stopping conditions.

In plain words
What is it for?
Use it on the current branch's PR or provide a PR number, URL, or repository reference. It is intended for resolving feedback through several review cycles until the PR reaches an acceptable review state.
Why use it?
It removes the need to monitor repeated review rounds and manually restart the fixer after every response. It also stops when the same earlier problems keep returning instead of changing the code forever.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; positional $N argument; mentions AGENTS.md.

Part of the rk-skills plugin — 39 skills, 1 command shipped together

Good fit Use it on the current branch's PR or provide a PR number, URL, or repository reference. It is intended for resolving feedback through several review cycles until the PR reaches an acceptable review state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richkuo/rk-skills/fix-pr-review-loop
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add richkuo/rk-skills --skill fix-pr-review-loop
Clone the repo
git clone --depth 1 https://github.com/richkuo/rk-skills

Made for: Claude Code.

Or install rk-skills, the plugin that ships this one along with the rest of its 39 skills, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for fix-pr-review-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/richkuo/rk-skills/fix-pr-review-loop/github.svg)](https://agentmods.dev/skills/richkuo/rk-skills/fix-pr-review-loop)
Your own site
<a href="https://agentmods.dev/skills/richkuo/rk-skills/fix-pr-review-loop"><img src="https://agentmods.dev/badge/skills/richkuo/rk-skills/fix-pr-review-loop/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for fix-pr-review-loop

Your own site · 80×15
<a href="https://agentmods.dev/skills/richkuo/rk-skills/fix-pr-review-loop"><img src="https://agentmods.dev/badge/skills/richkuo/rk-skills/fix-pr-review-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 132 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,896 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00132 $0.03896
Opus 5.5 $0.00053 $0.01558
Sonnet 5.5 $0.00026 $0.00779
Haiku 4.5 $0.00013 $0.00390

Measured 20d ago against content hash b19ef087aa3a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

fix-pr-review-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/fix-pr-review-loop/SKILL.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

fix-pr-review-loop

Resolve the latest review with fix-pr-review, wait for the bot's re-review, repeat. This skill owns the step 3 stop rules and the step 5 table. work-on-issue-loop runs steps 2 to 4 and reuses step 5's table with deltas; edit its step 4 with that table.

Input

Nothing (the current branch's PR via gh pr view), or #<N> / <N> / URL / owner/repo#N.

Steps

1. Resolve the PR and establish the starting state

Run gh pr view <N|--> --json number,headRefName,headRepositoryOwner,baseRefName,url,state,isDraft; merged or closed: stop and report. Compute review_count (0 on a fresh PR) and pr_cycle_count per Round counts in skills/fix-pr-review/rereview-routing.md, which owns both counts and the pending trigger; a verification limitation there stops the loop: report the missing evidence, post nothing. Fetch feedback with fix-pr-review step 1's three-channel query (reviews, issue comments, inline threads). Take the first case that applies:

  • Pending trigger present (per Round counts, naming the selected bot): recover it; never post another. One naming the other bot: stop and report.
  • Unaddressed feedback present (a completed bot round newer than any disposition comment, or trusted feedback failing fix-pr-review step 1's bare-LGTM check): step 3, no trigger.
  • Stale or failed trigger (per Round counts, naming the selected bot: stale, or its round has no verdict and its answering review run finished without one; a queued or in-progress re-run keeps it pending): repost it. A round with a verdict never takes this case; a note from any other run never makes a trigger failed. After a disposition comment, repost the trigger's exact line; else it was cycle 1: post the first-review trigger.
  • Nothing to act on yet (fresh PR, only your own disposition or trigger comments, only untrusted feedback, or only a trusted bare LGTM or empty approval): post the first-review trigger as its own one-line comment, gh pr comment <N> --body "<trigger>".

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed b19ef087aa3a
  2. 22d ago Changed f5c1dfb77c0f
  3. 24d ago Changed 3f3b53ac1676
  4. 27d ago Changed · +8 lines 66ed3c14f013
  5. 29d ago Changed · +24 lines c749ec1acae0
  6. 1mo ago Changed 106fd14023f8
  7. 1mo ago Changed · -8 lines acc980203ea6
  8. 1mo ago Changed 83db0178ae21
  9. 1mo ago Changed · -43 lines · -66 tokens per session 93e7418e205c
  10. 1mo ago First seen · 133 lines · 198 tokens per session scan A baf98db1eb47

Subscribe to this mod's changes

fix-pr-review-loop is a skill published in the GitHub repository richkuo/rk-skills (50 stars, last pushed yesterday), licensed MIT. It adds 132 tokens to every session and 3,896 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.