Agent skill · Elephant-Goldfish Model (EGM)
/egm-bootstrap Write grounded README contracts for an existing codebase
Egm-bootstrap documents a code tree directory by directory without touching source code. Read-only scout subagents extract each package's public interface, invariants and side effects with file and symbol citations, leaf READMEs are written first, parent directories roll up their children, and a final pass re-reads every file to check links, test commands and that nothing was invented.
Works with
- Claude Code
- Codex CLI
- Antigravity CLI
When to use it
- A codebase has little or outdated documentation and agents keep misreading its structure.
- You want each package to state its interface and side effects for humans and agents alike.
- You need existing READMEs corrected without losing the notes developers already wrote.
How it works
- 1Find the test command
The agent reads build manifests such as package.json, Cargo.toml or go.mod to pick the verification command each README will reference.
- 2Map the tree safely
It lists directories one level at a time, skips ignored and test-only folders, and asks your approval if more than 15 subdirectories turn up.
- 3Scout each directory
Read-only scouts read source in chunks and return interface, invariants and side effects with file and symbol citations.
- 4Write bottom-up
It writes or corrects leaf READMEs first, then parent and root blueprints that index their children, splitting large trees across parallel workers.
- 5Verify everything
It re-reads every created or changed file to check sections, links and test targets, then offers to run a drift report.
What it steers the agent away from
- Changing or generating functional source code
- Committing changes to git on your behalf
- Documenting routes, enums or invariants guessed from file names
Install this skill
It installs with the Elephant-Goldfish Model (EGM) pack.
Claude CodeSkills are then called with the /egm: prefix, for example /egm:egm-review.
claude plugin marketplace add google/elephant-goldfish-model
claude plugin install egm@egmCodex CLIPick EGM skills from the Codex skill picker.
codex plugin marketplace add google/elephant-goldfish-model
codex plugin add egm@egmAntigravity CLIKeep the /egm: prefix, since some agy versions do not complete bare names.
agy plugin install https://github.com/google/elephant-goldfish-modelCommands come from the author’s README; check it for changes before you run them.
Questions
Will it overwrite READMEs I already have?
No. Existing files are read and corrected in place, keeping developer notes; you can also target a different filename such as EGM.md.
Does it need subagents?
It uses them for scouts and parallel workers, but if your agent has none it runs the scout steps inline.
More guides from Elephant-Goldfish Model (EGM)
/egm-brainstormTurn a half-formed idea into a reviewed concept briefQuestions you in open chat until the idea is clear, then has seven fresh reviewer lenses critique it and writes concepts_brief.md.Read the guide →/egm-reviewReview a design doc with reviewers who never saw the chatRuns a design document through five review stages, from zoom-out and comprehension to critique and implementation readiness.Read the guide →
Also in this pack
/egm-draftBuilds a design document section by section from the concept brief or your notes, pausing for your feedback after each part.↗/egm-resolveSorts each reviewer finding as contest, escalate, propose fix or decline, citing evidence, and applies the fixes you approve.↗/egm-review-loopRuns a chosen set of reviewer personas against chosen standards on any document and loops through fixes with you.↗
Summary by trendhub. The skill itself lives in google/elephant-goldfish-model/skills/egm-bootstrap by Google (Apache-2.0); read the full, current text there.