# Elephant-Goldfish Model (EGM)

Source: https://trendhub.net/skills/google-elephant-goldfish-model
Repository: https://github.com/google/elephant-goldfish-model
Author: Google (https://github.com/google)
License: Apache-2.0
GitHub stars: 25,379

The Elephant-Goldfish Model is an open-source plugin from Google's GitHub organization for designing software with an agent before coding. The main agent keeps your project context and drafts the spec, while fresh subagents with no chat history review it for hidden assumptions and implementation risk. It suits teams that write design documents and want them checked against the code.

## What problems it solves

- **Long chats hide unstated assumptions**: Reviewer subagents see only the document and the files it references, so gaps the author's conversation filled in become visible.
- **Design docs drift from the code**: A drift report compares each design document or README with the current source and lists only the differences.
- **Agents agree too readily**: Every skill tells the agent to lead with critique, bans flattery and apologies, and requires counter-arguments.
- **Legacy code has no usable docs**: Bootstrap writes README contracts per directory listing each package's interface, invariants and side effects, grounded in real symbols.

## Install

### Claude Code

Skills are then called with the /egm: prefix, for example /egm:egm-review.

```
claude plugin marketplace add google/elephant-goldfish-model
claude plugin install egm@egm
```

### Codex CLI

Pick EGM skills from the Codex skill picker.

```
codex plugin marketplace add google/elephant-goldfish-model
codex plugin add egm@egm
```

### Antigravity CLI

Keep the /egm: prefix, since some agy versions do not complete bare names.

```
agy plugin install https://github.com/google/elephant-goldfish-model
```

Install the whole plugin rather than single skills, because the skills read reviewer personas and document standards from elsewhere in the repo, then start a new session. Brainstorm and review need an agent that can create fresh subagents; without one, EGM stops instead of reviewing in the same context.

## Skills

Skill names are shown as /name. Depending on the agent, a skill runs when it is relevant or when you call it by name; plugin installs may add a prefix.

- `/egm-bootstrap`: Writes or corrects README contracts for every code directory, listing interfaces, invariants and side effects from real source. (https://trendhub.net/skills/google-elephant-goldfish-model/egm-bootstrap.markdown)
- `/egm-brainstorm`: Questions you in open chat until the idea is clear, then has seven fresh reviewer lenses critique it and writes concepts_brief.md. (https://trendhub.net/skills/google-elephant-goldfish-model/egm-brainstorm.markdown)
- `/egm-draft`: Builds a design document section by section from the concept brief or your notes, pausing for your feedback after each part. (https://github.com/google/elephant-goldfish-model/tree/main/skills/egm-draft)
- `/egm-drift-report`: Checks each design doc or README in a folder against current code and writes a dated report of only the differences. (https://github.com/google/elephant-goldfish-model/tree/main/skills/egm-drift-report)
- `/egm-resolve`: Sorts each reviewer finding as contest, escalate, propose fix or decline, citing evidence, and applies the fixes you approve. (https://github.com/google/elephant-goldfish-model/tree/main/skills/egm-resolve)
- `/egm-review-loop`: Runs a chosen set of reviewer personas against chosen standards on any document and loops through fixes with you. (https://github.com/google/elephant-goldfish-model/tree/main/skills/egm-review-loop)
- `/egm-review`: Runs a design document through five review stages, from zoom-out and comprehension to critique and implementation readiness. (https://trendhub.net/skills/google-elephant-goldfish-model/egm-review.markdown)

## Questions

### Is EGM free to use?

Yes. It is open source under the Apache 2.0 license.

### Which agents does it support?

The README gives install steps for Claude Code, Codex CLI, Antigravity CLI and the ChatGPT and Codex desktop apps, with a setup guide covering the Antigravity app, Claude Cowork and ChatGPT Work.

### Does it only work for software designs?

The built-in drafting and design review target software specifications, but egm-review-loop lets you pick reviewers and standards for other kinds of documents.

### Do I have to follow the full sequence?

No. Each skill can be used on its own, for example reviewing an existing design doc or checking a docs folder for drift without brainstorming first.

## Before you install

The skills write Markdown files such as concepts_brief.md, design_draft.md, review reports and directory READMEs, spawn subagents that read your source code, and may run shell commands for directory discovery or an optional markdown formatter. They do not commit to git, and the bootstrap skill is told never to change functional source code.
