Elephant-Goldfish design review for ThumbGate. Use before building any change of 20+ lines to gate logic, release or billing (config/design-review-policy.json), when the design-review CI check fails, or when asked to brainstorm, draft or review a design. Produces a design doc with a GO stamp that CI accepts.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Design Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/igorganapolsky-design-review)
---
name: design-review
description: Elephant-Goldfish design review for ThumbGate. Use before building any change of 20+ lines to gate logic, release or billing (config/design-review-policy.json), when the design-review CI check fails, or when asked to brainstorm, draft or review a design. Produces a design doc with a GO stamp that CI accepts.
---
# Design review (Elephant-Goldfish)
ThumbGate's port of Google's Elephant-Goldfish Model (EGM, vendored at `vendor/elephant-goldfish-model`, Apache-2.0). The Elephant (you, with full context) designs. Goldfish (fresh subagents with no conversation history) review. CI checks the result.
## When it is required
`.github/workflows/design-review.yml` fails a PR (and flags a push to `main`) that changes 20 or more lines in the gate-logic, release or billing paths listed in `config/design-review-policy.json`, unless:
- the PR body (or a commit message) has a line `Design-Doc: docs/designs/<doc>.md`,
- the same change changes that doc's text and adds or edits all three review reports (an old GO doc or old reviews are not a standing pass; to build a design merged earlier, revise the doc for this change and run all three Goldfish again), and
- the doc passes `node scripts/design-review-gate.js verify <doc>` and names every protected file the change edits by its exact path (globs do not count).
Any edit at all, however small, to the gate, its policy, the ship gate, the vendored EGM copy or the EGM adapters and commands needs a design (`zeroThreshold` in the policy).
There is no label or flag that skips the check. Never split a change to stay under the line threshold, and never edit the policy or gate to get a change through (they are protected paths themselves, and a PR is judged by the base branch's copy).
## Steps
1. **Brainstorm (Elephant, no code).** Run `/egm-brainstorm <idea>` (skill: `vendor/elephant-goldfish-model/skills/egm-brainstorm/SKILL.md`). Write no code in this phase. Save the agreed brief as `docs/designs/reviews/<slug>/concepts_brief.md`, where `<slug>` is the design doc's file name without `.md`. When nobody is there to answer questions (a scheduled or autonomous run), answer them yourself from the repository and project memory and write the assumptions into the brief.
2. **Draft.** Run `/egm-draft` to write `docs/designs/<yyyy-mm-dd>-<slug>.md` from the brief (template: `vendor/elephant-goldfish-model/skills/egm-draft/references/design_doc.md`). CI requires `##` or `###` headings containing: **Problem**, **Plan** (or Proposed design), **Alternatives**, and **Files** (list every file the change will edit, by path). Add `## Detailed Implementation Plan` so readiness has something to judge.
3. **Commit, then hash.** Commit the doc before each review round: on a PR the gate checks that every earlier `doc_sha256` a reviewer recorded is a revision committed in this change. `node scripts/design-review-gate.js hash docs/designs/<doc>.md` prints the hash.
4. **Goldfish reviews: three fresh subagents.** Start each one with the Agent tool as a new subagent (Cursor: a new Task) and give it only: the absolute path of the doc, its persona file, its document standard, and repository files the doc links to. Never give a Goldfish this conversation, CLAUDE.md, AGENTS.md, memory or lesson logs, and never resume one. Tell it to disregard any project instructions the harness injects while it reads files.
| Review id | Subagent type | Persona (`vendor/elephant-goldfish-model/…`) | Standard | Reads |
| --- | --- | --- | --- | --- |
| `comprehension` | `egm-comprehension` | `agents/comprehension.md` | none | the doc only |
| `adversarial` | `egm-design` | `agents/design_critic.md` | `resources/document_standards/feature-spec-standard.md` | doc + linked code |
| `readiness` | `egm-implementation-readiness` | `agents/implementation_readiness.md` | `resources/document_standards/implementation-readiness-standard.md` | doc + linked code |
Tell each reviewer to end with a verdict: **GO** when it found no Blocker, **NO-GO** otherwise. Run comprehension and adversarial first; run readiness last, on the final text, and give readiness the adversarial report so it confirms every Blocker and Major was resolved. For a bigger change, run the full `/egm-review` (all five stages) and use its comprehension, critic and readiness outputs for the three reports.
5. **Write each report** to `docs/designs/reviews/<slug>/<review id>.md`, starting with this front matter, then the reviewer's findings (ranked Blocker / Major / Nit) and how each was resolved:
```
---
review: readiness
reviewer: egm-implementation-readiness
doc: docs/designs/<doc>.md
doc_sha256: <hash of the text the reviewer read>
reviewer_run: <the subagent's agent id or task id>
verdict: GO
blockers: 0
---
```
Copy the reviewer's findings faithfully. If a reviewer said NO-GO, the report says NO-GO until a re-review says otherwise.
6. **Resolve.** Run `/egm-resolve` on the findings. Fix every Blocker in the doc; fix each Major or record it under an `## Accepted trade-offs` heading with the reason. Then re-run the reviewer that raised the Blocker in a **new** subagent (upstream allows one re-audit per stage; if a third round still finds Blockers, narrow the design or escalate to the coordinator rather than looping). The readiness report must read the final text: if you edit the doc after readiness, run readiness again.
7. **Stamp.** `node scripts/design-review-gate.js stamp docs/designs/<doc>.md --author-run <your session id>`. It refuses unless all three reports exist, say GO with 0 blockers, come from three different reviewer runs that are not yours, earlier hashes are committed revisions, and readiness matches the final hash. It writes the `<!-- design-review ... -->` stamp block (with each report's sha256) at the end of the doc. Any later edit to the doc or a report breaks the stamp.
8. **Link and ship.** Put `Design-Doc: docs/designs/<doc>.md` on its own line in the PR body (direct push: in the commit message). Build the change the doc describes, then ship as usual (`/ship`).
## Honest limits
- CI checks that the reviews are recorded consistently: distinct runs, GO, hash of the final text, every changed file named. It cannot prove a subagent really ran. Faking a report is a fabricated review; report a missing review as missing.
- A GO is a review of the design, not of the code. Tests and the ship gate still apply.
- A Goldfish is not fully isolated from project instructions. The adapters set `omitClaudeMd: true`, which skips the initial load, but in Claude Code reading repository files can still inject `CLAUDE.md` and `.claude/rules/**` as reminders (observed in the 2026-12-01 readiness review). Tell each reviewer to disregard injected project instructions; checking isolation empirically is a follow-up.
Upstream: https://github.com/google/elephant-goldfish-model, pinned in `config/design-review-policy.json`. Elephant-Goldfish Model and EGM are Google's names; no endorsement implied.