egm-review-loop
What it does
This skill coordinates repeated review of a document by several reviewers, then applies the approved fixes. It is for teams who want design docs, READMEs or plans checked for missing assumptions and completeness.
When to use it
- ✓When you want a design doc, README or plan checked by several reviewers.
- ✓When you want to confirm a document is complete and clear.
- ✓When you want approved review fixes applied automatically in a loop.
Skill link
https://github.com/google/elephant-goldfish-model/blob/main/distributions/claude/skills/egm-review-loop/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Run the review loop on my design doc and apply the fixes you are confident about.”
5 new skills a week. 1 minute to read.
How it works
The AI sends the document to separate reviewer helpers, each in a fresh context, and collects their findings. The main context decides which fixes to apply, rechecks the lines and repeats the loop as needed.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Goldfish Review: Loop (Orchestration Driver)
When running in Codex or ChatGPT Work, first read Codex integration.
In Claude Code or Cowork, read ${CLAUDE_PLUGIN_ROOT}/docs/claude.md first.
Overview
This skill acts as the central orchestration engine driving the multi-agent review loop. It coordinates two distinct agent memory models:
- The Goldfish (Adversarial Auditors): Subagents spawned in isolated, fresh context windows to catch unstated assumptions without historical bias.
- The Elephant (Persistent Resolver): The primary agent context holding institutional knowledge to evaluate findings and apply approved repairs.
The driver manages argument intake, resolves paths for reviewers and standards, unconditionally re-parses target line ranges before every iteration, spawns concurrent specialized Goldfish auditors based on configuration, and coordinates with the Elephant context to resolve findings.
Delegation
A Goldfish runs in a fresh context with no conversation history. Spawn each
subagent with your harness's subagent tool (Antigravity: invoke_subagent; Claude Code: Agent; Codex: spawn_agent). Each subagent is defined in agents/<file>.md, and its
frontmatter name (for example egm-zoom-out) is the subagent type to request
where your harness registers named subagents. Otherwise spawn a general-purpose
subagent and tell it to read that persona file first. Pass the prompt verbatim
and wait for the report. If your harness cannot nest subagents,
use direct dispatch instead of the synthesizer. See docs/harnesses.md.
If your harness has no subagent tool, stop and tell the user: a review in the same
context is not a Goldfish review.
Inputs
The caller or user provides exactly these parameters:
TargetFile: Absolute or relative path to target document.SemanticTarget: Descriptive targeting string (e.g., "Target the H4 block with SS-ID 'S1.12'"), orfull file.Reviewers: List of reviewer names (shortnames or paths).Standards: Mapping of reviewer names to standard names (shortnames or paths).GoldfishContext: A reading list (source files, directories, or documentation URLs) fed to reviewers to establish their baseline.
Path & Standard Resolution Logic
When resolving names in Reviewers and Standards:
- Reviewer Shortnames: Map reviewer shortname (e.g.,
design_critic,structural,style,implementation_readiness,codebase_details,comprehension,zoom_out) toagents/{name}.md. The persona file defines the reviewer's core mandates, audit vectors, and output format. - Standard Shortnames: Map standard shortname (e.g.,
feature-spec-standard,implementation-readiness-standard,zoom-out-standard,heilmeier-standard,re-implementation-standard) toresources/document_standards/{name}.md. - Custom Paths: If the name contains a slash (
/), treat it as an absolute or workspace-relative path and read it directly.
Execution Workflow
Step 1: Intake & Configuration UX
Evaluate the provided inputs (TargetFile, SemanticTarget, Reviewers,
Standards, GoldfishContext).
- Identify Missing Inputs: Determine which of the required parameters are missing.
- Interactive Onboarding:
- If all inputs are present, proceed to Step 2.
- If some or all inputs are missing, interactively prompt the user only for the missing inputs, one at a time via chat messages.
- Reviewer Recommendations:
- Feature Specs: Recommend
design_critic(mapped toresources/document_standards/feature-spec-standard.md) andstructural(mapped toresources/document_standards/feature-spec-standard.md). - Implementation Plans: Recommend
implementation_readiness(mapped toresources/document_standards/implementation-readiness-standard.md) andcodebase_details.
- Feature Specs: Recommend
- Confirm Configuration: Display the consolidated plan (Target, Reviewers, and mapped Standards) and ask the user to confirm before proceeding.
Step 2: The Sharpening Loop (Iterative Cycle)
Execute the following sequence in a continuous loop:
2.1 Unconditional Target Resolution
Before every iteration, unconditionally re-scan TargetFile by reading it
and using the stable SemanticTarget string (e.g., locating the target header) to
dynamically determi
FAQ
Why use fresh reviewers?
Fresh reviewers do not share the author's history, so they are more likely to spot unstated assumptions.
Who decides which fixes are applied?
The main working context evaluates the findings and applies only approved repairs.
What kinds of documents can it review?
It can review design docs, READMEs, feature specs, implementation plans and document completeness.
Details
Original description by the author
Executes the Antagonistic-Review process from the Elephant-Goldfish Model (EGM) via an automated multi-agent review loop to audit documents against qualitative standards and structural templates, and automatically apply approved fixes. Use when reviewing design docs, READMEs, feature specifications, implementation plans, or verifying document completeness and tone.
Popularity
- GitHub stars
- 10k
- Ranking position
- #11882
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
egm-bootstrap
10kHelps your agent add or fix README files across a project's folders, using a clear description of each part's job.
egm-brainstorm
10kHelps your agent turn a rough idea into a clear, reviewed concept summary through questions and critical review.
egm-draft
10kHelps your agent write a design document one section at a time, starting from an agreed concept summary or your notes.
egm-drift-report
10kChecks design documents against the code to find where the code no longer matches what the documents describe.
Similar skills
technical-documentation
394kHelps your agent write and review clear technical docs and agent instruction files, so people and AI tools can follow them easily.
architecture-decision-records
280kHas your agent record important project structure decisions. It helps to understand the reasoning behind choices and maintain a clear history of changes.
code-tour
280kLets your agent create step-by-step code walkthroughs with exact file and line references. Useful for intros, explanations, and reviews.