EGM-Lite: Rapid Ad-Hoc Engineering Protocol
A lightweight 5-phase protocol (critique → checklist → exec → adversarial review → triage) for small fixes, refactors, and spec revisions.
Dev & CodingIntermediate★ 22,749⑂ 1,676AI score 8/10Last updated: Nov 24, 2026
What it does
The skill makes Claude switch between two personas: the Elephant, a high-context structured builder, and the Goldfish, a zero-context reviewer that hunts for defects with fresh eyes.
- Phase 1 – Critique Pause: no code edits yet; it reads target files, callers, and tests, then challenges the proposed approach and optionally records alternatives in
egm_lite_alternatives.md. - Phase 2 – Checklist & Spec Review:
checklistwritesegm_lite_checklist.mdwith each change target as a task item; adaptive gating recommends a spec review when ≥2 production files, async code, public APIs, or unverified assumptions are involved. - Phase 3 – Exec: implementation starts only on explicit
exec/Proceed, stays strictly inside checklist scope, records a review baseline, runs tests, and escalates on stalled failures. - Phase 4 – Adversarial Diff Review: a clean-context subagent audits thread safety, boundary conditions, test coverage, YAGNI, and lingering assumption tags under a binary contract —
[✅ LGTM]only with zero findings. - Phase 5 – Resolution Gate: findings are triaged into
PROPOSE FIXvsCONTESTwith P0–P3 priorities; you can override any classification.
Who it's for
- Developers tired of the assistant jumping straight to code before the problem is understood
- Anyone who wants reviews done in an isolated context instead of self-congratulatory same-context checks
- Teams wanting a consistent quality gate even on small changes or doc/spec edits
- Not for large multi-component features that need a formal design doc (use egm-brainstorm)
Examples
- Bug fix:
/egm-lite sessions drop after 30 minutes→ critique of root-cause hypotheses →checklist→exec→reviewfor a diff audit. - Refactor: de-duplicating payment code touches multiple production files, so the checklist phase recommends a Goldfish spec review before implementation.
- Spec edit: revise
docs/api.md, then rungoldfishto check factual consistency against the checklist, link hygiene, and markdown line length.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/google/elephant-goldfish-model/HEAD/skills/egm-lite/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the skills/egm-lite folder from the GitHub repo google/elephant-goldfish-model into my ~/.claude/skills/egm-lite/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/google/elephant-goldfish-model.git /tmp/egm && mkdir -p ~/.claude/skills && cp -r /tmp/egm/skills/egm-lite ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/google/elephant-goldfish-model.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r elephant-goldfish-model/skills/egm-lite ~/.claude/skills/ - The skill references the repo's
docs/claude.md, so if you prefer the plugin route keep the full repository and register it as a plugin. - Restart Claude Code and start with
/egm-lite <describe your change>. - Drive the flow with the commands
checklist→goldfish/review→exec→review. - Note: the Goldfish review phases require a fresh-context subagent tool in your harness; without it the skill falls back to direct execution.
View source on GitHub ↗License: Apache-2.0