elephant-goldfish-model
Skill2 starsChanged 29 days agoApache-2.0View on GitHub
Implements Google's Elephant-Goldfish Model (EGM) for Spec-Driven Development. Use when designing non-trivial features or architecture to orchestrate a deep-context Elephant session for brainstorming and living design documents with strict no-code rules, paired with stateless Goldfish subagents for zero-bias adversarial review.
In this repository108 other files it gives its agents.
- AGENTS.mdAGENTS.md
- everything-gemini-maintainerSkill
- adversarial-fuzz-generatorSkill
- agent-evalsSkill
- ai-first-engineeringSkill
- alloydb-omni-vectorSkill
- apache-kafka-streamsSkill
- api-craftsmanSkill
- architecture-designerSkill
- argon-3d-game-engineSkill
- argon-3d-scene-architectSkill
- argon-procedural-asset-generatorSkill
- argon-visual-critique-loopSkill
- argo-workflowsSkill
- autonomous-incident-healerSkill
- axum-web-serviceSkill
- bigquery-vector-searchSkill
- browser-qa-testerSkill
- chromadb-vector-storeSkill
- cilium-ebpf-networkingSkill
- clickhouse-analyticsSkill
- cloud-deploy-canarySkill
- cloudflare-r2-object-storageSkill
- cloudflare-workersSkill
- cloud-run-agentsSkill
- context-cachingSkill
- context-distillation-compressorSkill
- context-warmerSkill
- continuous-learningSkill
- cost-oracle-finopsSkill
- cross-repo-swarm-syncSkill
- cve-remediation-orchestratorSkill
- database-architectSkill
- dataproc-spark-analyticsSkill
- dbt-transformationSkill
- debezium-cdcSkill
- devops-pipelineSkill
- distributed-rate-limitingSkill
- docker-compose-orchestratorSkill
- duckdb-local-olapSkill
- dynamic-thinking-allocationSkill
- ebpf-microvm-sandboxSkill
- ebpf-sandbox-enforcerSkill
- envoy-ai-gatewaySkill
- ephemeral-swarm-orchestratorSkill
- fastapi-productionSkill
- fullstack-nextjsSkill
- game-audio-synthesizerSkill
- game-studioSkill
- gemini-function-callingSkill
- gemini-groundingSkill
- gemini-live-audio-transcriberSkill
- gemini-live-multimodalSkill
- gemini-live-screen-visionSkill
- gemini-multimodalSkill
- genetic-prompt-cross-pollinatorSkill
- git-craftsmanSkill
- github-opsSkill
- google-axSkill
- google-flow-orchestratorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 61
Rule: No code may be written. Exploration produces a structured concept brief in docs/designs/concept_brief.md.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Google Elephant-Goldfish Model (elephant-goldfish-model)
The Elephant-Goldfish Model (EGM) is an architectural framework and design-first methodology developed by Google Distinguished Engineer Dave Rensin ("Elephants, Goldfish, and the New Golden Age of Software Engineering", open-sourced at google/elephant-goldfish-model).
EGM directly eliminates the two greatest failure modes of autonomous coding agents: Context Collapse (conversational bloat and hallucination) and Model Sycophancy (agents agreeing with flawed developer prompts over time).
1. Architectural Model & Core Invariants
┌─────────────────────────────────────────────────────────────────────────────┐
│ GOOGLE'S ELEPHANT-GOLDFISH MODEL (EGM) │
│ │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ 🐘 THE ELEPHANT (Deep Context, Long-Horizon Memory) │ │
│ │ • Ingests codebase history, architecture blueprints, & contracts.│ │
│ │ • MANDATORY INVARIANT: STRICT "NO CODE" RULE. │ │
│ │ • Purpose: Brainstorming, architectural trade-offs, and drafting │ │
│ │ living technical design documents in `docs/designs/<feature>.md│ │
│ └──────────────────────────────────┬──────────────────────────────────┘ │
│ │ Passes design doc ONLY │
│ ▼ │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ 🐟 THE GOLDFISH (Zero Context, Stateless Fresh Eyes) │ │
│ │ • Brand-new isolated subagents with zero chat history or bias. │ │
│ │ • Receives ONLY the generated design document + live code. │ │
│ │ • Reviews design across 4 adversarial lenses: │ │
│ │ 1. Design Critic: Holes in requirements & unhandled edge cases │ │
│ │ 2. Naive Reader: Ambiguities, jargon, and missing definitions │ │
│ │ 3. Tech Lead: Feasibility, blast radius, and security risks │ │
│ │ 4. Codebase Auditor: Schema conflicts & contract violations │ │
│ └──────────────────────────────────┬──────────────────────────────────┘ │
│ │ Produces review findings │
│ ▼ │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ 👤 THE HUMAN ARCHITECT (Final Authority) │ │
│ │ • Adjudicates findings, resolves trade-offs, and signs off. │ │
│ └──────────────────────────────────┬──────────────────────────────────┘ │
│ │ Passes approved spec │
│ ▼ │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ ⚡ EXECUTION HANDOFF (Superpowers Red-Green TDD) │ │
│ │ • Takes hardened design spec and executes via atomic TDD cycles. │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────┘2. The 4-Stage EGM Protocol
Stage 1: Hypothesis Exploration (/egm-brainstorm)
- Conducted exclusively inside the Elephant session.
- Discusses user problems, historical constraints, latency budgets, and security posture.
- Rule: No code may be written. Exploration produces a structured concept brief in
docs/designs/concept_brief.md.
Stage 2: Living Technical Design Document (/egm-draft)
- The Elephant translates the concept brief into a complete, self-contained technical specification:
docs/designs/<feature>.md- Sections:
- Context & Motivation: Why this change is necessary.
- Non-Goals: Explicit boundaries of what will not be implemented.
- Architecture & Component Boundaries: Sequence diagrams, data models, and API contracts.
- Failure Modes & Fallbacks: 429 backoff, network partition recovery, zero-trust constraints.
- Verification & Acceptance Criteria: Measurable success gates.
Stage 3: Stateless Adversarial Review (/egm-review)
- Spawns fresh Goldfish subagents (
agents/goldfish-reviewer.md) with clean context windows. - The Goldfish have zero memory of the brainstorm. They evaluate the document strictly on its written merits:
- Does the document stand on its own without conversational context?
- Are failure recovery paths concrete or hand-waving?
- Are API contracts backwards-compatible with existing schema?
- Results in a structured Findings Matrix:
BLOCKER,WARNING,SUGGESTION.
Stage 4: Resolution & Drift Reporting (/egm-drift-report)
- The human architect signs off on the resolved design.
- Post-implementation, the EGM drift detector scans the repository to ensure the code matches the approved design document without undocumented architectural drift.
3. Synergy with the Superpowers Skill
Google's EGM and Jesse Vincent's Superpowers form the complete end-to-end autonomous engineering pipeline:
$$\text{EGM (Phase 0: Design & Antagonistic Review)} \longrightarrow \text{Superpowers (Phase 1–5: Red-Green TDD Execution)}$$
- EGM guarantees the architecture is sound, secure, and stress-tested before writing code.
- Superpowers takes the approved specification and executes it with strict Red/Green TDD discipline.
4. CLI Automation
Manage the EGM workflow natively in everything-gemini:
# 1. Brainstorm with the Elephant (generates concept brief)
everything-gemini egm brainstorm "Distributed rate limiting with Redis"
# 2. Draft the living design document
everything-gemini egm draft --feature rate-limiter
# 3. Dispatch stateless Goldfish subagents for adversarial review
everything-gemini egm review --stateless --json
# 4. Check for post-implementation architectural drift
everything-gemini egm drift-reportDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

