pr-review-loop
Skill2 starsChanged 3 months agoMITView on GitHub
Agent-owned CodeRabbit review loop for implementation branches. Use when reviewing or fixing a branch before closeout, with or without a hosted pull request.
- Commits and pushes
8 other projects use a version of this.
Adopted by
Most recently taken up by
- GavinGreenwood/agentic-workflow-templatetheir own version, first seen Oct 2, 2026
- fagemx/eddatheir own version, first seen Sep 1, 2026
- xpepper/pr-review-agent-skilltheir own version, first seen Aug 25, 2026
- gabonio/agent-operator-toolkittheir own version, first seen Aug 4, 2026
- wollemiahq/skillstheir own version, first seen Jul 30, 2026
- basicmachines-co/basic-memorytheir own version, first seen Jul 20, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- basicmachines-co/basic-memory★ 4.1ksame name
- fagemx/gstack-game★ 70same name
- fagemx/edda★ 36same name
- GavinGreenwood/agentic-workflow-template★ 4same name
- xpepper/pr-review-agent-skill★ 3same name
- wollemiahq/skills★ 2same name
- gabonio/agent-operator-toolkit★ 1same name
- touyou/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-workflow-modernizerSkill
- architecture-reviewSkill
- code-structureSkill
- diagnoseSkill
- engineering-quality-lensSkill
- implementation-plan-builderSkill
- implementation-plan-wikiSkill
- overnight-agent-runbookSkill
- overnight-setupSkill
- prd-to-task-queueSkill
- pr-review-loopSkill
- stacked-pr-orchestratorSkill
- tddSkill
- agent-workflow-modernizerSkill
- architecture-reviewSkill
- code-structureSkill
- diagnoseSkill
- engineering-quality-lensSkill
- implementation-plan-builderSkill
- implementation-plan-wikiSkill
- overnight-agent-runbookSkill
- overnight-setupSkill
- prd-to-task-queueSkill
- pr-review-loopSkill
- stacked-pr-orchestratorSkill
- tddSkill
- agent-workflow-modernizerSkill
- architecture-reviewSkill
- code-structureSkill
- diagnoseSkill
- engineering-quality-lensSkill
- implementation-plan-builderSkill
- implementation-plan-wikiSkill
- overnight-agent-runbookSkill
- overnight-setupSkill
- prd-to-task-queueSkill
- stacked-pr-orchestratorSkill
- tddSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 11 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
11
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when an implementation branch needs review before closeout.
- Distinctive: line 12
Do not delegate review state to polling daemons or a separate review state machine.
- Distinctive: line 35
Before implementation or review, ask whether the requested work should be:
- Distinctive: line 41
If the work is too large for one clean review, write a short slice plan in the final report or relevant plan doc.
- Very specific: line 48
Start from the branch workspace.
- Very specific: line 58
If a hosted PR/MR/review request already exists, record its URL from the provider or from the user.
- Very specific: line 79
If gh is unavailable or not authenticated, use the provider web UI if available and report that CLI PR inspection was unavailable.
- Distinctive: line 87
If CodeRabbit CLI is installed and authenticated, run it against the current branch diff.
- Very specific: line 103
If cr is unavailable, try coderabbit as the equivalent binary name.
- Distinctive: line 107
If a hosted PR exists, also read unresolved comments, top-level review comments, CI/check status, branch protection status, and reviewer …
- Distinctive: line 156
Run the narrowest relevant tests/checks for the changed area.
- Very specific: line 171
If feedback is entirely invalid/duplicate/out-of-scope, do not make a noise commit.
- Distinctive: line 176
After each changed head, request or run a fresh independent review:
- Distinctive: line 183
If the workflow explicitly forbids pushing, stop locally and report the head that needs review.
- Distinctive: line 185
Keep the loop bounded. Two CodeRabbit passes are usually enough: one to find issues, one to verify the fixes.
- Distinctive: line 209
When the branch is clean and local validation is recorded, report whether it is ready for review, ready to merge, or blocked according to …
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PR Review Loop
Use this skill when an implementation branch needs review before closeout. Despite the name, the default workflow is local-first and does not require a hosted code review provider. The implementation agent owns the loop for its own branch.
Do not delegate review state to polling daemons or a separate review state machine.
Default Stance
- CodeRabbit CLI is the preferred review surface when available.
- A hosted pull/merge request is optional. The default hosted surface is GitHub
via the
ghCLI. Use it when the user wants visible PR discussion, CI checks, branch protection status, or a human merge gate. Azure DevOps (az repos) and GitLab also work if that is where the remote lives. - An external issue tracker is optional for planning or follow-up issues. Do not use it as the review queue, comment source of truth, or clean/dirty verdict.
- Workspace status files are optional local coordination aids. Do not require them for routine reporting and do not store a review state machine in them.
- In unattended mode, agents may push commits to their own task branch and create or update draft PRs for visibility. Human approval is required to merge/complete PRs, bypass policies, modify protected branches, delete branches, rewrite history, or change credentials.
- Finish the review loop when no valid actionable findings remain. If a precise blocker prevents progress, record it and the exact input needed.
1. Split First
Before implementation or review, ask whether the requested work should be:
- one focused branch;
- several independent branches that can run in parallel;
- a stacked sequence where branch two should start only after branch one lands.
If the work is too large for one clean review, write a short slice plan in the final report or relevant plan doc. Do not create a central queue or automation controller. Each slice should have its own branch, head SHA, validation, and review loop.
2. Establish The Review Target
Start from the branch workspace. The default base is origin/main; any
non-main base works if the task says so:
git status --short --branch
git fetch origin
git diff --stat origin/main...
git rev-parse --short HEADIf a hosted PR/MR/review request already exists, record its URL from the provider or from the user. If no hosted review request exists and this is unattended task work, creating a draft PR is allowed for visibility after the branch has a coherent first head. Do not create non-draft PRs unless the user explicitly asks.
In normal human-steered work, use focused local validation as the inner loop and defer hosted review until the branch is stable enough to certify. The heavy review loop is for stable heads, final readiness, high-assurance dependencies, or unattended work named by the task/manifest.
Inspect or create visible PRs with the GitHub CLI when it is installed and authenticated:
gh pr view
gh pr create --draft --base main --fill
gh pr checks
gh pr view --commentsIf gh is unavailable or not authenticated, use the provider web UI if
available and report that CLI PR inspection was unavailable. Azure DevOps
(az repos pr list|show|create) and GitLab (glab mr) are equivalent
alternatives when the remote lives there. Existing configured credentials may be
used; do not create, rotate, or reconfigure credentials unless the user asks.
3. Run Or Read CodeRabbit
If CodeRabbit CLI is installed and authenticated, run it against the current
branch diff. Use main as the base unless the task says otherwise:
cr --agent --base mainUseful variants:
cr --plain --base main
cr --agent --type uncommitted --base main
cr review findings
cr doctorIf cr is unavailable, try coderabbit as the equivalent binary name. If
CodeRabbit is not installed or authenticated, record the blocker and use the
narrowest local validation available until the user provides review access.
If a hosted PR exists, also read unresolved comments, top-level review comments, CI/check status, branch protection status, and reviewer votes. Use the provider web UI or CLI available in the workspace; do not add a provider integration just for this workflow.
For repos with a strict signal probe, run it on certifiable heads: final readiness, promoted dependency heads, integration checkpoints, or heads whose manifest explicitly selects unattended/high-assurance mode. Do not spend strict signal checks on every intermediate push in normal human-steered work.
4. Use A Fresh Reviewer When Useful
For non-trivial implementation work, use a fresh independent review pass after the implementation head is ready. This can be:
- CodeRabbit CLI on the exact head SHA;
- a separate reviewer thread/session prompted only to review the branch;
- both, when the branch is risky.
The reviewer should inspect the diff and validation evidence, then return findings only. The implementation session owns fixes. When the implementation session commits a fix, that creates a new head and should trigger a fresh review of that new head.
For tiny docs-only or metadata-only changes, CodeRabbit plus local validation is enough unless the user asks for another reviewer.
5. Classify Each Finding
Make a short local checklist before fixing:
| Class | Meaning | Required action |
| actionable | Valid, in scope, and fixable in this branch | Fix it and validate. |
| invalid | Based on wrong facts or contradicted by code/tests | Do not change code; explain briefly in final report. |
| duplicate | Same root issue as another finding | Fix once; note duplicates. |
| blocked | Needs credentials, product decision, unavailable service, or unsafe action | Stop with blocker and exact next input. |
| out-of-scope | Real issue but not caused by this branch or too broad for this task | Do not fix; record follow-up recommendation. |
Fix only valid actionable findings. Avoid drive-by refactors and broad cleanup.
6. Fix, Validate, Commit
For each fix pass:
git diff --checkRun the narrowest relevant tests/checks for the changed area. Commit only the intended changes:
git status --short
git add <focused files>
git commit -m "<scope>: address review feedback"
git rev-parse --short HEADFor normal human-steered work, row-specific local validation is the inner loop; hosted CI/review/signals are the readiness or certification gate. Narrow checks alone do not satisfy final readiness when the repo requires stronger hosted evidence.
If feedback is entirely invalid/duplicate/out-of-scope, do not make a noise commit. Record why no code change was made.
7. Request Fresh Independent Review
After each changed head, request or run a fresh independent review:
- Local-first default: rerun
cr --agent --base mainorcr --plain --base mainon the new head. - In unattended mode, push the new head to the agent's own task branch and let CI/branch protection evaluate the draft PR. Recheck PR comments, policies, and reviewer votes before closeout.
- If the workflow explicitly forbids pushing, stop locally and report the head that needs review.
- Keep the loop bounded. Two CodeRabbit passes are usually enough: one to find issues, one to verify the fixes. Continue only for major/critical actionable findings.
Then reread CodeRabbit output and any external comments/checks. Repeat classification and fix passes until no valid actionable findings remain.
8. Closeout Report
Final reports must include:
- Slice shape: one branch, independent branches, or stacked sequence.
- Review target: branch, base, latest local head, and optional hosted PR URL/ID.
- Latest remote head if pushed; if not, say the clean head is local-only.
- Draft PR URL/ID when created or updated.
- CodeRabbit command(s) run and result, or blocker if unavailable.
- Independent reviewer used, if any, and the reviewed head SHA.
- Other validation commands and results.
- Feedback classification summary.
- Unresolved risks, invalid findings, out-of-scope follow-ups, or blockers.
- Whether a fresh CodeRabbit pass and, if applicable, CI/branch protection evaluation ran for the latest head.
When the branch is clean and local validation is recorded, report whether it is ready for review, ready to merge, or blocked according to the task's normal closeout path.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

