review-loop
Skill1 starsChanged 6 days agoUnlicenseView on GitHub
Performs multi-expert code review and iterative automated repair loops on workspace changes, commits, or pull requests. Evaluates code against correctness, architecture, security, readability, and code taste, formatting findings as outcome-first plain-English leads (<= 2 code pills) with collapsible <details> blocks for symbol/code traces. Supports both single-pass report-only review (for PRs and branches) and iterative fix-and-verify loops with full CDD/SDD context awareness. Use when asked to "review my changes", "do a code review", "review and fix issues", "check code quality", or "make changes review-ready".
54 other projects use a version of this.
Adopted by
Most recently taken up by
- revisit-studies/studytheir own version, first seen Nov 9, 2026
- Mmbugraaslan/motion-plustheir own version, first seen Nov 8, 2026
- zane-tv/holdframetheir own version, first seen Nov 8, 2026
- seankoji-com/.agentstheir own version, first seen Nov 8, 2026
- BK202503/open-claude-alltheir own version, first seen Nov 8, 2026
- Latand/delegatustheir own version, first seen Nov 8, 2026
Used with
Projects with it also use polish, to-spec and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
HK-hubSkillpolish
Performs a final quality pass fixing alignment, spacing, consistency, and micro-detail issues before shipping. Use when the user mentions polish, finishing touches, pre-launch review, something looks off, or wants to go from good to great.
Also in 3 projects that use this
GoogleSkillto-spec
Turn the current conversation into a spec and publish it to the project issue tracker — no interview, just synthesis of what you've already discussed.
Also in 4 projects that use this
GoogleSkillgrilling
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
Also in 5 projects that use this
AWSSkillship
Finalize dev work on an issue branch — update docs, push, and open a PR.
Also in 4 projects that use this
MicrosoftSkillcouncil
Convene the persona panel — six orthogonal review lenses — on a target. Cold independent fan-out, debate-to-consensus, synthesized verdict with recorded dissent and a roster manifest.
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 5 projects that use this
- +2 more from google
Other versions54 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 54
- didi/mpx★ 4ksame name
- blockscout/frontend★ 310same name
- microsoft/bocpy★ 184same name
- 9thLevelSoftware/legion★ 76same name
- microsoft/Trieste★ 53same name
- revisit-studies/study★ 46same name
- timharris707/skills★ 44same name
- Latand/delegatus★ 37same name
- spxrogers/agentsync★ 35same name
- mathruffian-dot/claude-motion-explainer★ 30same name
44 more not listed
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 repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ad-copy-writerSkill
- ae-inspect-describeSkill
- algorithmic-artSkill
- animation-directorSkill
- assembly-guideSkill
- brainstorming-and-ideatingSkill
- brainstorming-research-ideasSkill
- brainstormingSkill
- brief-to-tasksSkill
- canvas-designSkill
- cli-designSkill
- cli-output-hierarchySkill
- commit-messageSkill
- craft-uiSkill
- creative-directorSkill
- design-briefSkill
- design-flowSkill
- design-mock-auditSkill
- design-reviewSkill
- design-system-patternsSkill
- design-tokensSkill
- deslopifySkill
- diagnoseSkill
- diagramming-app-routesSkill
- doc-restructureSkill
- eval-criticSkill
- formatting-open-markdownsSkill
- frontend-designSkill
- frontend-slidesSkill
- gdocs-tab-writerSkill
- gemini-apiSkill
- gif-creationSkill
- github_repo_researchSkill
- grill-meSkill
- grill-with-docsSkill
- hallmarkSkill
- handoffSkill
- html-presentationSkill
- humanizerSkill
- i-have-adhdSkill
- improve-codebase-architectureSkill
- information-architectureSkill
- install-skill-from-githubSkill
- markdown-output-hierarchySkill
- marketing-psychologySkill
- merge-latestSkill
- modern-web-performanceSkill
- motion-designSkill
- pdf-readerSkill
- pm-brainstormingSkill
- pm-discovery-brainstormSkill
- product-marketingSkill
- prototypeSkill
- pull-requestSkill
- ralph_loopSkill
- react-best-practicesSkill
- sandbox-explainerSkill
- skill-creatorSkill
- skill-optSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. 0 are common, 8 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 47 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Before inspecting diffs, scan the repository root and docs/ for intentional architectural context:
- Distinctive: line 49
Default to Mode B (Fix-and-Verify) for "review and fix", "clean up", or "prepare code for review".
- Very specific: line 50
Default to Mode A (Report-Only) for "review only", "report only", PR reviews, or when passed --report-only.
- Distinctive: line 63
Run configured repository tools on modified files:
- Distinctive: line 71
When subagent dispatch is supported in the host harness, spawn an independent reviewer subagent with a fresh context window to evaluate the …
- Distinctive: line 85
Treat confirmed project specs, track plans, and ADRs as authoritative ground truth.
- Very specific: line 86
If a finding flags a pattern, dependency, or trade-off that was explicitly decided in a loaded spec or ADR, drop it immediately (status: …
- Distinctive: line 90
Exit on Zero Findings: If 0 actionable comments remain, exit the loop and report a clean review.
- Distinctive: line 156
Do not edit any workspace source files.
- Distinctive: line 157
If reviewing a PR and requested to post comments, format each thread using the two-layer structure above.
- Very specific: line 158
Write review_loop_details.md and present the findings summary table in chat.
- Very specific: line 163
Verify Each Fix: Run the corresponding verification_command and project test suites (pytest, pnpm test, cargo test, go test ./...).
- Distinctive: line 164
If tests fail, diagnose and fix.
- Very specific: line 165
If a fix causes an unresolvable regression, revert that specific change (git checkout -- <file>) and record it under Unapplied Comments.
- Very specific: line 167
If iteration < MAX_ITERATIONS and at least one fix was applied, increment iteration = iteration + 1 and return to Step 3.
- Very specific: line 168
If iteration == MAX_ITERATIONS or no fixes were applied (all findings were skipped or clean), proceed to Step 7.
- Very specific: line 174
Write a markdown report (review_loop_details.md) in the workspace or scratch directory using the template below, and output a concise …
“Common” is measured: kept by at least 6 in 10 of the 47 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
Review Loop
Overview
This skill executes a multi-perspective review and verification pipeline over local workspace changes, branch commits, or pull requests.
It operates in two modes:
- Mode A: Report-Only Review (
--report-only/MAX_ITERATIONS = 1): Evaluates changes, filters false positives against project specs/ADRs, and formats humanized review feedback without modifying workspace source files (for PRs or teammates' branches). - Mode B: Fix-and-Verify Loop (
MAX_ITERATIONS = 3): Evaluates changes, applies valid fixes in priority order (P0–P3), verifies each fix against test suites and linters, rolls back any regressions, and repeats until clean.
Findings use two-layer progressive disclosure: a 3-second plain-English summary on top, backed by a collapsible <details> disclosure block containing exact symbol paths and suggested code replacements.
Workflow
1. Prime Project Context (CDD / SDD & Invariants)
Before inspecting diffs, scan the repository root and docs/ for intentional architectural context:
- Agent Rules & Entry Points:
AGENTS.md,CLAUDE.md,.cursorrules,.cursor/rules/*.mdc,.github/copilot-instructions.md. - CDD / SDD Frameworks:
armature/or_armature/: Silently load foundation docs (product.md,tech-stack.md,guidelines.md,workflow.md), active track specs (armature/tracks/<id>/spec.md), and ADRs. Invoke/arm-chat armature/if supported by the host.conductor/: Loadconductor/product.md,conductor/tech-stack.md, and active tracks inconductor/tracks/.specs/,docs/specs/,rfcs/,docs/rfcs/: Scan active feature specs and RFCs.
- Architecture Decision Records (ADRs):
docs/adr/*.md,adr/, orarchitecture/decisions/. - Core Architecture & Invariants:
ARCHITECTURE.mdor architecture sections inREADME.md.
Extracted Baseline: Identify system boundaries, active feature intent, accepted trade-offs/ADRs, and testing conventions before reviewing lines.
2. Resolve Mode & Diff Scope
- Select Mode:
- Default to Mode B (Fix-and-Verify) for "review and fix", "clean up", or "prepare code for review".
- Default to Mode A (Report-Only) for "review only", "report only", PR reviews, or when passed
--report-only.
- Resolve Diff Scope:
- Dirty working tree (
git status --porcelainis non-empty): Review staged and unstaged changes againstHEAD(git diff HEAD) plus untracked files. - Feature branch: Review commits against the base branch (
git diff $(git merge-base HEAD main)..HEADorgit diff HEAD~1..HEAD). - Pull request: Inspect diff via
gh pr diffand fetch open review threads viagh pr view --commentsto avoid duplicating feedback.
- Dirty working tree (
3. Run Review & Verification Pipeline
In each iteration, run both static analysis and specialist review passes over the modified files:
A. Deterministic Linters & Type Checkers
Run configured repository tools on modified files:
- Python:
ruff check,ruff format --check,mypy/pyright - TypeScript / JavaScript:
eslint,tsc --noEmit,prettier --check - Rust:
cargo clippy --all-targets,cargo fmt --check - Go:
golangci-lint run,go vet ./... - C / C++:
clang-tidy,clang-format --dry-run -Werror
B. Multi-Perspective Review Pass
When subagent dispatch is supported in the host harness, spawn an independent reviewer subagent with a fresh context window to evaluate the diff without author bias. Otherwise, perform a structured self-review evaluating four dimensions:
- Correctness & Edge Cases: Bounds checking, nullability, error propagation, resource leaks, race conditions, and state transitions.
- Architecture & Invariants: Boundary separation, API consistency, avoidance of unnecessary abstractions, and alignment with loaded specs/ADRs.
- Security & Trust Boundaries: Input sanitation, injection protection, authentication/authorization checks, secrets/tokens, and sensitive logging.
- Readability & Craft: Idiomatic conventions, clear naming, and targeted test coverage for newly introduced branches.
4. Filter Findings & Enforce Spec Precedence
Consolidate all linter outputs and review findings into a single deduplicated list.
Filtering Guardrails
- Spec / ADR Precedence Rule (MANDATORY):
- Treat confirmed project specs, track plans, and ADRs as authoritative ground truth.
- If a finding flags a pattern, dependency, or trade-off that was explicitly decided in a loaded spec or ADR, drop it immediately (
status: skipped_spec_adr_precedence). - Conversely, flag code changes that violate explicit boundary rules or tech-stack constraints defined in project documentation.
- Drop Noise & Existing Feedback: Omit pre-existing unchanged-code issues, trivial nitpick bloat, and items already raised in open PR comments.
- Strict Single-Finding Purity: Enforce strictly one finding per comment. Never staple secondary style comments or description nits onto an unrelated inline issue. Anchor distinct findings to their own files and lines.
- Exit on Zero Findings: If 0 actionable comments remain, exit the loop and report a clean review.
Ranking & Metadata Schema
Each finding records:
priority:P0(critical/security/data-loss/broken build),P1(high — probable bug or structural flaw),P2(medium — edge case, test gap, maintainability),P3(low — minor idiomatic polish)severity:S0(critical),S1(major),S2(moderate),S3(minor)path: File path relative to repository rootline: 1-based target line number or rangereviewer_identifier: Tool or lens (CorrectnessReviewer,SecurityReviewer,RuffLinter,TypeScriptCompiler)category: Short category label (Error Handling,Resource Leak,Type Safety)plain_lead: Outcome-first human lead sentence + friendly suggestiondetails_body: Precise symbol trace, doc citation (if applicable), and 2–5 line fenced code replacementverification_command: Linter or test command validating the resolution
Sort findings strictly by:
- Priority:
P0 > P1 > P2 > P3 - Severity:
S0 > S1 > S2 > S3
Count iteration comments strictly via len(comments).
5. Format Comments via Progressive Disclosure
Structure every finding for two audiences: a 3-second human scan on top and complete symbol/code precision inside a collapsible <details> block.
Layer 1 — Visible Plain-English Lead (Human Scan)
- Outcome-first: Sentence 1 states what fails or behaves unexpectedly in direct product or domain terms. Never start with bottom-up call stacks ("In
parseData()(line 42), wheninputis..."). - Warm, collegial tone: Sentence 2 asks or suggests the fix naturally ("Worth also checking that
statusisn't reset here so retry isn't skipped?"). - Inline code cap: At most 2 inline code spans (
<= 2backtick pills). Refer to routes, flags, and concepts in plain English. - Humanizer pass:
- NO template headers (
**Problem:**,**Proposed Solution:**,**Rationale:**). - NO AI clichés (crucial, pivotal, underscores, delve, robust, seamless, additionally).
- NO negative parallelisms (Not only... but...), forced rule-of-three lists, or robotic sign-offs.
- NO template headers (
Layer 2 — Collapsible <details> Block (Deep Inspection & Agents)
- Standard GFM/CommonMark blank-line syntax:
<details>on its own line preceded by a blank line.- A blank line, followed by
<summary>Code path and suggested fix</summary>on its own line using plain ASCII letters only (strictly no<,>,&, or backticks inside<summary>). - A blank line, followed by symbol/line traces, architectural citations, and a 2–5 line fenced code block.
- A blank line, followed by
</details>on its own line.
When the connection drops during sync, the error boundary clears the cached profile before the retry timer fires, leaving the UI in an unrecoverable blank state. Worth preserving the previous profile cache until a retry succeeds?
<details>
<summary>Code path and suggested fix</summary>
`SyncManager.handleDisconnect()` (lines 88-102) resets `this.activeProfile` to `null` before scheduling `scheduleRetry()`.
```typescript
if (!this.activeProfile) {
this.activeProfile = this.lastKnownProfile;
}
this.scheduleRetry();</details>
```6. Execution: Mode A vs. Mode B
If Operating in Mode A (Report-Only)
- Do not edit any workspace source files.
- If reviewing a PR and requested to post comments, format each thread using the two-layer structure above.
- Write
review_loop_details.mdand present the findings summary table in chat.
If Operating in Mode B (Fix-and-Verify)
- Process Findings in Sorted Order: Address
P0andP1issues beforeP2andP3. - Apply High-Confidence Fixes: Apply code edits for valid findings; skip and document reasons for findings that are out-of-scope or conflict with ADRs.
- Verify Each Fix: Run the corresponding
verification_commandand project test suites (pytest,pnpm test,cargo test,go test ./...).- If tests fail, diagnose and fix.
- If a fix causes an unresolvable regression, revert that specific change (
git checkout -- <file>) and record it under Unapplied Comments.
- Loop Decision:
- If
iteration < MAX_ITERATIONSand at least one fix was applied, incrementiteration = iteration + 1and return to Step 3. - If
iteration == MAX_ITERATIONSor no fixes were applied (all findings were skipped or clean), proceed to Step 7.
- If
7. Write Review Loop Report & Summarize
Write a markdown report (review_loop_details.md) in the workspace or scratch directory using the template below, and output a concise summary in chat.
Report Template (review_loop_details.md)
# Review Loop Execution Details
## Execution Metadata
- **Workspace**: `/path/to/repo`
- **Mode**: `{Report-Only | Fix-and-Verify}`
- **Diff Scope**: `HEAD` (or `<base>..<head>`)
- **Total Iterations**: {total_iterations}
- **Final Status**: `{PASS | PASS_WITH_UNAPPLIED_COMMENTS | NEEDS_ATTENTION}`
## Review Loop Iteration Breakdown
| Iteration | Total Comments | Applied | Unapplied | P0 | P1 | P2 | P3 | S0 | S1 | S2 | S3 |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| 1 | {total} | {applied} | {unapplied} | {p0} | {p1} | {p2} | {p3} | {s0} | {s1} | {s2} | {s3} |
> Note: For every row, `Total Comments` must exactly equal `Applied + Unapplied`, `P0 + P1 + P2 + P3`, and `S0 + S1 + S2 + S3`.
---
## Findings & Actions
### Iteration 1
#### 1. [{priority} / {severity}] `{path}:{line}` — {category}
{plain_lead}
<details>
<summary>Code path and suggested fix</summary>
{details_body}
</details>
- **Reviewer**: `{reviewer_identifier}`
- **Status**: `{Applied | Unapplied}`
- **Resolution**: {explanation of applied fix and test verification, or specific rationale why skipped/reverted}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.

