agentleFS
ntorgantorga/agent-starter-kit/skills/review-loop/SKILL.md

review-loop

Skill146 starsChanged 3 months agoMITView on GitHub

Two-mode review loop — single reviewer per epic, three reviewers for full branch.

23 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use polish, research and 2 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.
  • QredenceSkill

    polish

    Run a final Figma Design or Figma Make quality pass that refines spacing, alignment, typography, color consistency, component state coverage, copy consistency, accessibility basics, and visual coherence without changing the underlying concept. Use when a UI is close and needs launch-ready finish rather than redesign. Not for Figma Sites publish readiness (site-launch-checklist) or Dev Mode handoff preparation (dev-handoff-prep).

    Also in 3 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 3 projects that use this

  • AWSSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

  • AWSSkill

    grill-me

    A relentless interview to sharpen a plan or design.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 22 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no files changed, skip the review loop.

    line 31
  2. Distinctive:

    Merge findings: When all dispatched reviewers return:

    line 50
  3. Distinctive:

    If verdicts conflict, the stricter verdict wins.

    line 53
  4. Distinctive:

    Verify findings: Before acting on any reviewer output, spot-check each blocker and warning against the codebase.

    line 57
  5. Very specific:

    Handle failure: If the verdict is fail:

    line 70
  6. Very specific:

    If the failed artifact is a plan, re-dispatch the Architect (personas/architect.md) (follows: skills/dispatch/SKILL.md) with the confirmed …

    line 73
  7. Distinctive:

    When the Coder returns, restart this procedure from step 1 with the new deliverable.

    line 74
  8. Very specific:

    Handle success: If the verdict is pass and the artifact is code from a plan, mark the epic as delivered in impl.md (follows: …

    line 77
  9. Distinctive:

    Never skip the verify step (step 5).

    line 81
  10. Distinctive:

    Never re-dispatch after a hallucination without investigating and fixing the cause first.

    line 82

“Common” is measured: kept by at least 6 in 10 of the 22 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

This skill defines how the Maestro reviews sub-agent work before it reaches the user. Two modes serve different needs. Incremental reviews (per epic) use one reviewer. Full branch reviews (at feature completion) dispatch three reviewers for full coverage.

Procedure

  1. Determine mode.

    • Incremental (default) — used for per-epic reviews during plan execution.
    • Full branch — used when all epics in impl.md are marked ✓ and the review covers the entire branch's accumulated changes. Triggered by skills/plan-management/SKILL.md → Tracking Progress.
  2. Identify scope. Determine the changed files. Use the command matching the current mode:

    • Incremental — files changed since the last commit:
      git diff HEAD --name-only; git ls-files --others --exclude-standard
    • Full branch — files changed against the base branch:
      git diff "$(git merge-base HEAD main)" --name-only; git ls-files --others --exclude-standard

    If no files changed, skip the review loop.

  3. Dispatch. Dispatch the reviewer (personas/reviewer.md) (follows: skills/dispatch/SKILL.md).

    Incremental mode — single dispatch. Reviewer runs all three lenses.

    Full branch mode — three dispatches with focused <task>:

    • First: coherence focus (follows: skills/code-coherence-review/SKILL.md).
    • Second: quality focus (follows: skills/code-quality-review/SKILL.md).
    • Third: security focus (follows: skills/code-sec-review/SKILL.md).

    For plans and non-code work, use a single dispatch regardless of mode.

    The <task> for every reviewer dispatch must include:

    • What was produced (artifact type and affected scope).
    • The original <task> or acceptance criteria.
    • For code: the list of changed files.
    • The focus area (for Full branch mode).
  4. Merge findings. When all dispatched reviewers return:

    • Union all blockers, warnings, and notes across all reviewers.
    • Deduplicate identical entries — same file, same line, same issue counts once. Dedup before verify is intentional; step 5 verifies each remaining finding.
    • If verdicts conflict, the stricter verdict wins.

    For single-dispatch reviews (incremental mode), use its findings directly.

  5. Verify findings. Before acting on any reviewer output, spot-check each blocker and warning against the codebase. Reviewers can hallucinate — flag false positives (invented violations, misread paths, fabricated rules) and discard them. Only confirmed findings proceed. When confirmed hallucinations appear, classify the cause before re-dispatching:

    • Missing context — the boot payload lacked information the reviewer needed. Fix: enrich the task brief, add memory or skills.
    • Ambiguous input — the task brief had multiple interpretations. Fix: tighten the brief.
    • Design flaw — a skill or persona instruction led the reviewer astray. Fix: patch the framework file and record the fix in long-term memory.
    • Model limitation — the model cannot handle the task at this tier. Fix: switch provider.

    After verifying reported findings, spot-check for missing findings. Pick the first 3 paths in the changed code that involve error handling, authentication, authorization, data mutation, or external I/O, and verify the reviewers addressed them. A reviewer that returns zero findings on complex changes is suspect. A clean bill from a skimmed review is a false pass.

  6. Determine the verdict.
    • pass — zero confirmed blockers and all review steps completed.
    • partial-pass — zero confirmed blockers but one or more review steps were skipped (e.g., external tool unavailable). Surface the gap to the user.
    • fail — one or more confirmed blockers.
  7. Handle failure. If the verdict is fail:
    1. Present the verified findings to the user before re-dispatching.
    2. The user may provide additional input — incorporate it into the re-dispatch.
    3. If the failed artifact is a plan, re-dispatch the Architect (personas/architect.md) (follows: skills/dispatch/SKILL.md) with the confirmed findings. If the failed artifact is code, re-dispatch the Coder (personas/coder.md) (follows: skills/dispatch/SKILL.md) with the findings (blockers, warnings, notes).
    4. When the Coder returns, restart this procedure from step 1 with the new deliverable.
    5. Repeat until the verdict is pass or partial-pass. If the cycle exceeds 2 re-dispatches without reaching a passing verdict, yield to the user with the confirmed findings, conflicting verdicts, or ambiguous trade-offs that could not be resolved.
  8. Handle success. If the verdict is pass and the artifact is code from a plan, mark the epic as delivered in impl.md (follows: skills/plan-management/SKILL.md → Tracking Progress).

Guardrails

  • Never skip the verify step (step 5). Unverified findings from reviewers must not reach the user or trigger re-dispatches.
  • Never re-dispatch after a hallucination without investigating and fixing the cause first. Blind re-dispatch repeats the same failure.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.