Review loop
Plugin with opinionated set of Claude Code agents nad skills
npx -y skills add lklimek/claudius --skill review-loopAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use to autonomously handle peer review — request, wait, fix comments, push, repeat until resolved.
SKILL.md
3.3 KB, as published. Nobody here has run it
Peer Review Loop
Autonomous loop for addressing peer review feedback on a pull request. Repeats until the reviewer has no new actionable comments.
User Confirmation
Before starting the loop, present the user with a summary of what this skill will do (request review, wait for feedback, apply fixes, commit, push, and re-request — potentially multiple iterations) and ask for explicit permission to proceed. Do not begin the loop until the user confirms.
Prerequisites
- Load
claudius:git-and-githubskill first — all git, gh, and GitHub conventions come from there - A pull request already exists on GitHub
- Changes are pushed to the remote branch
- The reviewer is specified (default:
@copilot)
Loop Steps
1. Request review
Request review from the specified reviewer. See the git-and-github skill (§ Requesting Reviewers) for the wrapper script and @copilot requirements.
2. Wait for review completion
Poll until a new review appears. Use the ${CLAUDE_SKILL_DIR}/../../scripts/gh-fetch-reviews.sh wrapper from the git-and-github skill (PR Review Comments section). Reviews are ordered by submitted_at; compare against the last known review ID to detect new ones.
- Track the latest review ID before requesting. A new review has a higher ID.
- Timeout after ~10 minutes of polling — inform the user if no review arrives.
3. Read review comments
Fetch inline comments associated with the latest review. See the github skill (PR Review Comments > Fetching inline review comments section) for the wrapper script.
- Filter comments by the new review's ID to avoid re-processing stale comments from earlier reviews.
- Distinguish actionable comments (code suggestions, requested changes) from informational ones (praise, acknowledgments).
4. Evaluate comments
For each new comment:
- If the issue is already fixed in the current code (stale comment from before a force-push), skip it.
- If the comment is not actionable (e.g., "looks good", informational), skip it.
- If the comment identifies a real issue, fix it.
If no actionable comments remain → exit the loop successfully.
5. Fix issues
- Apply the necessary code changes.
- Run the project's test suite locally to verify fixes don't break anything.
- If the fix changes behavior described in the PR, update the PR description.
6. Push fixes
Commit per the git-and-github skill's commit message format (§ Committing), then push.
7. Re-request review
Go back to Step 1 and repeat.
Exit conditions
- Success: The latest review has no new actionable comments.
- Timeout: No new review appears within ~10 minutes of polling.
- Error: Push or test failure that cannot be resolved automatically — inform the user.
Notes
- If the reviewer requests changes that conflict with the PR's intent, flag it to the user rather than making the change autonomously.
- Update the PR description if review feedback reveals missing context (e.g., unrelated fixes bundled into the PR).