Open-source skills for designing and reviewing software with AI agents
Python agent-skillsai-agentsantigravityclaude-codeclaude-code-pluginclaude-skillscodexcodex-plugincoding-agentscontext-engineeringdeveloper-toolsgeminillmmulti-agentprompt-engineeringspec-driven-development
Document the first design workflow in the README
n3wth3896c664b2e1
diff --git a/README.md b/README.mdindex 351cf2c..deff1ba 100644--- a/README.md+++ b/README.md@@ -1,59 +1,123 @@-# Elephant-Goldfish Model (EGM)+<p align="center">+ <a href="https://egm.dev"><img src="docs/assets/readme-header.svg" width="480" height="116" alt="Elephant-Goldfish Model"></a>+</p>-[](LICENSE)-[](https://egm.dev)+<p align="center">Design with an elephant. Review with a goldfish.</p>-Elephant-Goldfish Model (EGM) is an open-source plugin for Spec-Driven Development with AI coding agents. Deep-context Elephant sessions draft specifications, and isolated zero-context Goldfish subagents stress-test them before you write code.+<p align="center">+ <a href="#install">Install</a>  · + <a href="#try-your-first-design">Quickstart</a>  · + <a href="docs/getting_started.md">Documentation</a>  · + <a href="https://egm.dev">Website</a>+</p>++<br>++Thousands of Google engineers use EGM, an open-source plugin, to draft specs with deep-context agents and stress-test them with zero-context subagents before writing code.++The **Elephant** holds your project context and drafts the specification. **Goldfish** reviewers examine the draft and referenced source material without the earlier conversation, helping expose unstated assumptions and blind spots. **You** make the architectural trade-offs and approve the specification before implementation.++Use it when a feature needs design decisions before implementation. For a small, clear bug fix, use your normal coding workflow.## Install-| Harness | Install |-| :--- | :--- |-| **Any AI agent** | Ask your agent: `Install https://github.com/google/elephant-goldfish-model` |-| **Antigravity** | `agy plugin install https://github.com/google/elephant-goldfish-model` (or `/plugin` in IDE) |-| **Claude Code** | `claude plugin marketplace add google/elephant-goldfish-model && claude plugin install egm@egm` |-| **Codex** | `codex plugin marketplace add google/elephant-goldfish-model && codex plugin add egm@egm` |-| **Claude Cowork / ChatGPT** | See [Harnesses](docs/harnesses.md) for desktop and workspace setup |+Choose your coding agent. Install the complete plugin so its skills can read the reviewer prompts and document standards.-## Quickstart+### Antigravity-1. **Ideate & Stress-Test**: Run `/egm-brainstorm` to explore problem boundaries and test early concepts with a Goldfish swarm.-2. **Draft**: Run `/egm-draft` to convert the concept brief into a living design document under `docs/designs/<feature>.md`.-3. **Review & Resolve**: Run `/egm-review docs/designs/<feature>.md` to run the multi-stage Goldfish reviewer swarm.-4. **Submit & Implement**: Submit the verified design doc via pull request and implement code against the approved specification.+```sh+agy plugin install https://github.com/google/elephant-goldfish-model+```-In Claude Code, commands use the `/egm:` prefix (for example `/egm:egm-brainstorm`).+### Claude Code-For detailed setup guides and walkthroughs, see [Getting Started](docs/getting_started.md), [Harnesses](docs/harnesses.md), and [Framework Architecture](https://github.com/google/elephant-goldfish-model/blob/main/docs/designs/architecture.md).+```sh+claude plugin marketplace add google/elephant-goldfish-model+claude plugin install egm@egm+```-## Skills+### Codex-| Skill | Command | Description |-| :---- | :------ | :---------- |-| **Brainstorm** | `/egm-brainstorm` | Zero-doc ideation tool using a multi-lens Goldfish shootdown swarm to stress-test early concepts. |-| **Draft** | `/egm-draft` | Iterative, section-by-section markdown design specification compiler. |-| **Review** | `/egm-review` | Multi-stage verification pipeline orchestrator (Zoom Out -> Comprehension -> Critic -> Readiness). |-| **Review Loop** | `/egm-review-loop` | Concurrent review subagent dispatch engine supporting direct and hierarchical dispatch. |-| **Review Resolve** | `/egm-resolve` | Interactive triage and automated patch application engine for review findings. |-| **Drift Report** | `/egm-drift-report` | Sequential AST scanner detecting divergence between checked-in specs and live code. |-| **Bootstrap** | `/egm-bootstrap` | Recursive bottom-up codebase documentation generator and sentinel-block upserting engine. |+```sh+codex plugin marketplace add google/elephant-goldfish-model+codex plugin add egm@egm+```-## Philosophy+Start a new session after installation. For **Claude Cowork** and **ChatGPT Work**, see the [setup and support guide](docs/harnesses.md).-EGM uses two animal metaphors to structure AI agents across the software development lifecycle:+## Try your first design-* 🐘 **The Elephant (Remembers Everything)**: Deep-context agents load system history, architecture diagrams, component boundaries, and user journeys. The Elephant runs structured brainstorming, probes operational limits, and drafts comprehensive specifications.-* 🐠 **The Goldfish (Zero-Context Memory)**: Stateless, isolated subagents read only the draft spec and live source code, without conversational bias. The Goldfish swarm stress-tests designs from conflicting perspectives. Personas in `agents/` include Design Critic, Naive Reader, Tech Lead, Codebase Auditor, Structural Validator, Style Editor, and Zoom Out Architect.-* 🧑💻 **The Human (Owns the Outcomes)**: AI is an exploration partner and automated auditor, while human engineers own architectural decisions, trade-offs, and final outcomes.+Open your project in your coding agent and choose a feature that needs design decisions. This example adds webhook delivery: what should happen when a delivery fails, or the same event arrives twice?-For the foundational essay introducing this methodology, see Dave Rensin's article: [Elephants, Goldfish, and the New Golden Age of Software Engineering](https://medium.com/@drensin/elephants-goldfish-and-the-new-golden-age-of-software-engineering-c33641a48874).+Use the commands below in Antigravity. In Claude Code, use the `/egm:` prefix, for example `/egm:egm-brainstorm`. In Codex, select the corresponding EGM skill from the skill picker. Brainstorming and review require a session that can create fresh subagents.-## Contributing+**1. Explore the idea**-We welcome community contributions! Please review [Harnesses](docs/harnesses.md) and our [Contribution Guidelines](https://github.com/google/elephant-goldfish-model/blob/main/CONTRIBUTING.md) before submitting pull requests.+```text+/egm-brainstorm Add webhook delivery to this project.+```-## License+Discuss requirements and trade-offs with the agent. Fresh reviewers challenge the proposal, and the agent saves the agreed direction in `concepts_brief.md`.++**2. Draft the specification**++```text+/egm-draft+```++The agent turns the brief into `design_draft.md`, pausing after each section for your feedback in chat.++**3. Review the draft**++Use the draft path returned by the agent, for example:++```text+/egm-review design_draft.md+```++Fresh reviewers check the design, its clarity, its fit with the code, and its implementation plan. Choose which findings to address. When you approve the design, ask your coding agent to implement it.-Apache 2.0 License applies to this project - see the [LICENSE](LICENSE) file for details.+See the [workflow guide](docs/getting_started.md) for the full process, including saving approved specifications under `docs/designs/`.++## How it works++<table>+ <thead><tr><th align="left">Role</th><th align="left">Context</th><th align="left">Responsibility</th></tr></thead>+ <tbody>+ <tr valign="top"><td><strong>Elephant</strong></td><td>Your project, requirements, and earlier decisions</td><td>Explore the problem and draft the specification.</td></tr>+ <tr valign="top"><td><strong>Goldfish</strong></td><td>The document and its referenced source material, without the earlier conversation</td><td>Find missing assumptions, unclear requirements, and implementation risks.</td></tr>+ <tr valign="top"><td><strong>You</strong></td><td>The goals and constraints that matter</td><td>Resolve trade-offs, approve the design, and decide what to build.</td></tr>+ </tbody>+</table>++Goldfish reviews require fresh subagent contexts. If your agent cannot create them, EGM stops the review. A review does not replace tests or human judgment. See [supported environments and verification limits](docs/harnesses.md#support-status--contributing-other-harnesses).++## Choose a skill++You can use each skill when you need it. You do not have to follow the full sequence.++| Skill | Use it to… |+| :--- | :--- |+| [`egm-brainstorm`](skills/egm_brainstorm/SKILL.md) | Test an idea and write a concept brief. |+| [`egm-draft`](skills/egm_draft/SKILL.md) | Turn a brief or existing notes into a design document. |+| [`egm-review`](skills/egm_review/SKILL.md) | Review a design with fresh agents across five stages. |+| [`egm-resolve`](skills/egm_resolve/SKILL.md) | Work through review findings and agree on changes. |+| [`egm-drift-report`](skills/egm_drift_report/SKILL.md) | Compare checked-in documents with the current source code. |+| [`egm-bootstrap`](skills/egm_bootstrap/SKILL.md) | Create or update documentation for an existing codebase. |+| [`egm-review-loop`](skills/egm_review_loop/SKILL.md) | Run a configured group of reviewers for a specific review task. |++## Learn more++- [Getting started](docs/getting_started.md): the workflow and project layout.+- [Setup and support](docs/harnesses.md): installation, agent capabilities, and known limits.+- [Architecture](https://github.com/google/elephant-goldfish-model/blob/main/docs/designs/architecture.md): how the skills and reviewers fit together.+- [Testing](https://github.com/google/elephant-goldfish-model/blob/main/TESTING.md): checks, execution records, and verification limits.+- [Dave Rensin’s original essay](https://medium.com/@drensin/elephants-goldfish-and-the-new-golden-age-of-software-engineering-c33641a48874): the ideas behind EGM.++## Contribute++Read the [contribution guidelines](https://github.com/google/elephant-goldfish-model/blob/main/CONTRIBUTING.md) before opening a pull request. Use [issues](https://github.com/google/elephant-goldfish-model/issues) for bugs and [discussions](https://github.com/google/elephant-goldfish-model/discussions) for questions and ideas.++## License-This is not an officially supported Google product.+[Apache 2.0](LICENSE). This is not an officially supported Google product.diff --git a/distributions/claude/README.md b/distributions/claude/README.mdindex 351cf2c..deff1ba 100644--- a/distributions/claude/README.md+++ b/distributions/claude/README.md@@ -1,59 +1,123 @@-# Elephant-Goldfish Model (EGM)+<p align="center">+ <a href="https://egm.dev"><img src="docs/assets/readme-header.svg" width="480" height="116" alt="Elephant-Goldfish Model"></a>+</p>-[](LICENSE)-[](https://egm.dev)+<p align="center">Design with an elephant. Review with a goldfish.</p>-Elephant-Goldfish Model (EGM) is an open-source plugin for Spec-Driven Development with AI coding agents. Deep-context Elephant sessions draft specifications, and isolated zero-context Goldfish subagents stress-test them before you write code.+<p align="center">+ <a href="#install">Install</a>  · + <a href="#try-your-first-design">Quickstart</a>  · + <a href="docs/getting_started.md">Documentation</a>  · + <a href="https://egm.dev">Website</a>+</p>++<br>++Thousands of Google engineers use EGM, an open-source plugin, to draft specs with deep-context agents and stress-test them with zero-context subagents before writing code.++The **Elephant** holds your project context and drafts the specification. **Goldfish** reviewers examine the draft and referenced source material without the earlier conversation, helping expose unstated assumptions and blind spots. **You** make the architectural trade-offs and approve the specification before implementation.++Use it when a feature needs design decisions before implementation. For a small, clear bug fix, use your normal coding workflow.## Install-| Harness | Install |-| :--- | :--- |-| **Any AI agent** | Ask your agent: `Install https://github.com/google/elephant-goldfish-model` |-| **Antigravity** | `agy plugin install https://github.com/google/elephant-goldfish-model` (or `/plugin` in IDE) |-| **Claude Code** | `claude plugin marketplace add google/elephant-goldfish-model && claude plugin install egm@egm` |-| **Codex** | `codex plugin marketplace add google/elephant-goldfish-model && codex plugin add egm@egm` |-| **Claude Cowork / ChatGPT** | See [Harnesses](docs/harnesses.md) for desktop and workspace setup |+Choose your coding agent. Install the complete plugin so its skills can read the reviewer prompts and document standards.-## Quickstart+### Antigravity-1. **Ideate & Stress-Test**: Run `/egm-brainstorm` to explore problem boundaries and test early concepts with a Goldfish swarm.-2. **Draft**: Run `/egm-draft` to convert the concept brief into a living design document under `docs/designs/<feature>.md`.-3. **Review & Resolve**: Run `/egm-review docs/designs/<feature>.md` to run the multi-stage Goldfish reviewer swarm.-4. **Submit & Implement**: Submit the verified design doc via pull request and implement code against the approved specification.+```sh+agy plugin install https://github.com/google/elephant-goldfish-model+```-In Claude Code, commands use the `/egm:` prefix (for example `/egm:egm-brainstorm`).+### Claude Code-For detailed setup guides and walkthroughs, see [Getting Started](docs/getting_started.md), [Harnesses](docs/harnesses.md), and [Framework Architecture](https://github.com/google/elephant-goldfish-model/blob/main/docs/designs/architecture.md).+```sh+claude plugin marketplace add google/elephant-goldfish-model+claude plugin install egm@egm+```-## Skills+### Codex-| Skill | Command | Description |-| :---- | :------ | :---------- |-| **Brainstorm** | `/egm-brainstorm` | Zero-doc ideation tool using a multi-lens Goldfish shootdown swarm to stress-test early concepts. |-| **Draft** | `/egm-draft` | Iterative, section-by-section markdown design specification compiler. |-| **Review** | `/egm-review` | Multi-stage verification pipeline orchestrator (Zoom Out -> Comprehension -> Critic -> Readiness). |-| **Review Loop** | `/egm-review-loop` | Concurrent review subagent dispatch engine supporting direct and hierarchical dispatch. |-| **Review Resolve** | `/egm-resolve` | Interactive triage and automated patch application engine for review findings. |-| **Drift Report** | `/egm-drift-report` | Sequential AST scanner detecting divergence between checked-in specs and live code. |-| **Bootstrap** | `/egm-bootstrap` | Recursive bottom-up codebase documentation generator and sentinel-block upserting engine. |+```sh+codex plugin marketplace add google/elephant-goldfish-model+codex plugin add egm@egm+```-## Philosophy+Start a new session after installation. For **Claude Cowork** and **ChatGPT Work**, see the [setup and support guide](docs/harnesses.md).-EGM uses two animal metaphors to structure AI agents across the software development lifecycle:+## Try your first design-* 🐘 **The Elephant (Remembers Everything)**: Deep-context agents load system history, architecture diagrams, component boundaries, and user journeys. The Elephant runs structured brainstorming, probes operational limits, and drafts comprehensive specifications.-* 🐠 **The Goldfish (Zero-Context Memory)**: Stateless, isolated subagents read only the draft spec and live source code, without conversational bias. The Goldfish swarm stress-tests designs from conflicting perspectives. Personas in `agents/` include Design Critic, Naive Reader, Tech Lead, Codebase Auditor, Structural Validator, Style Editor, and Zoom Out Architect.-* 🧑💻 **The Human (Owns the Outcomes)**: AI is an exploration partner and automated auditor, while human engineers own architectural decisions, trade-offs, and final outcomes.+Open your project in your coding agent and choose a feature that needs design decisions. This example adds webhook delivery: what should happen when a delivery fails, or the same event arrives twice?-For the foundational essay introducing this methodology, see Dave Rensin's article: [Elephants, Goldfish, and the New Golden Age of Software Engineering](https://medium.com/@drensin/elephants-goldfish-and-the-new-golden-age-of-software-engineering-c33641a48874).+Use the commands below in Antigravity. In Claude Code, use the `/egm:` prefix, for example `/egm:egm-brainstorm`. In Codex, select the corresponding EGM skill from the skill picker. Brainstorming and review require a session that can create fresh subagents.-## Contributing+**1. Explore the idea**-We welcome community contributions! Please review [Harnesses](docs/harnesses.md) and our [Contribution Guidelines](https://github.com/google/elephant-goldfish-model/blob/main/CONTRIBUTING.md) before submitting pull requests.+```text+/egm-brainstorm Add webhook delivery to this project.+```-## License+Discuss requirements and trade-offs with the agent. Fresh reviewers challenge the proposal, and the agent saves the agreed direction in `concepts_brief.md`.++**2. Draft the specification**++```text+/egm-draft+```++The agent turns the brief into `design_draft.md`, pausing after each section for your feedback in chat.++**3. Review the draft**++Use the draft path returned by the agent, for example:++```text+/egm-review design_draft.md+```++Fresh reviewers check the design, its clarity, its fit with the code, and its implementation plan. Choose which findings to address. When you approve the design, ask your coding agent to implement it.-Apache 2.0 License applies to this project - see the [LICENSE](LICENSE) file for details.+See the [workflow guide](docs/getting_started.md) for the full process, including saving approved specifications under `docs/designs/`.++## How it works++<table>+ <thead><tr><th align="left">Role</th><th align="left">Context</th><th align="left">Responsibility</th></tr></thead>+ <tbody>+ <tr valign="top"><td><strong>Elephant</strong></td><td>Your project, requirements, and earlier decisions</td><td>Explore the problem and draft the specification.</td></tr>+ <tr valign="top"><td><strong>Goldfish</strong></td><td>The document and its referenced source material, without the earlier conversation</td><td>Find missing assumptions, unclear requirements, and implementation risks.</td></tr>+ <tr valign="top"><td><strong>You</strong></td><td>The goals and constraints that matter</td><td>Resolve trade-offs, approve the design, and decide what to build.</td></tr>+ </tbody>+</table>++Goldfish reviews require fresh subagent contexts. If your agent cannot create them, EGM stops the review. A review does not replace tests or human judgment. See [supported environments and verification limits](docs/harnesses.md#support-status--contributing-other-harnesses).++## Choose a skill++You can use each skill when you need it. You do not have to follow the full sequence.++| Skill | Use it to… |+| :--- | :--- |+| [`egm-brainstorm`](skills/egm_brainstorm/SKILL.md) | Test an idea and write a concept brief. |+| [`egm-draft`](skills/egm_draft/SKILL.md) | Turn a brief or existing notes into a design document. |+| [`egm-review`](skills/egm_review/SKILL.md) | Review a design with fresh agents across five stages. |+| [`egm-resolve`](skills/egm_resolve/SKILL.md) | Work through review findings and agree on changes. |+| [`egm-drift-report`](skills/egm_drift_report/SKILL.md) | Compare checked-in documents with the current source code. |+| [`egm-bootstrap`](skills/egm_bootstrap/SKILL.md) | Create or update documentation for an existing codebase. |+| [`egm-review-loop`](skills/egm_review_loop/SKILL.md) | Run a configured group of reviewers for a specific review task. |++## Learn more++- [Getting started](docs/getting_started.md): the workflow and project layout.+- [Setup and support](docs/harnesses.md): installation, agent capabilities, and known limits.+- [Architecture](https://github.com/google/elephant-goldfish-model/blob/main/docs/designs/architecture.md): how the skills and reviewers fit together.+- [Testing](https://github.com/google/elephant-goldfish-model/blob/main/TESTING.md): checks, execution records, and verification limits.+- [Dave Rensin’s original essay](https://medium.com/@drensin/elephants-goldfish-and-the-new-golden-age-of-software-engineering-c33641a48874): the ideas behind EGM.++## Contribute++Read the [contribution guidelines](https://github.com/google/elephant-goldfish-model/blob/main/CONTRIBUTING.md) before opening a pull request. Use [issues](https://github.com/google/elephant-goldfish-model/issues) for bugs and [discussions](https://github.com/google/elephant-goldfish-model/discussions) for questions and ideas.++## License-This is not an officially supported Google product.+[Apache 2.0](LICENSE). This is not an officially supported Google product.diff --git a/distributions/claude/docs/assets/readme-header.svg b/distributions/claude/docs/assets/readme-header.svgnew file mode 100644index 0000000..22f9e5c--- /dev/null+++ b/distributions/claude/docs/assets/readme-header.svg@@ -0,0 +1,24 @@+<svg xmlns="http://www.w3.org/2000/svg" width="480" height="116" viewBox="0 0 480 116" role="img" aria-labelledby="title">+ <title id="title">Elephant-Goldfish Model</title>+ <style>+ .title { fill: #1f2328; }+ .elephant { fill: #1b6ef3; stroke: #1b6ef3; }+ .goldfish { fill: #e86e00; stroke: #e86e00; }+ @media (prefers-color-scheme: dark) {+ .title { fill: #f0f6fc; }+ .elephant { fill: #7cacf8; stroke: #7cacf8; }+ .goldfish { fill: #ff8d41; stroke: #ff8d41; }+ }+ </style>+ <g transform="translate(180 -24) scale(5)" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">+ <g class="elephant">+ <path stroke="none" d="M10.30,6.80 A5.20,5.20 0 0 0 10.30,17.20 A1.20,1.20 0 0 0 11.50,16.00 L11.50,8.00 A1.20,1.20 0 0 0 10.30,6.80Z"/>+ <path fill="none" d="M7.20,12.00 C6.80,14.60 3.40,14.70 3.20,12.60 C3.10,11.20 3.30,10.20 3.60,9.40"/>+ </g>+ <g class="goldfish">+ <path stroke="none" d="M13.70,6.80 A5.20,5.20 0 0 1 13.70,17.20 A1.20,1.20 0 0 1 12.50,16.00 L12.50,8.00 A1.20,1.20 0 0 1 13.70,6.80Z"/>+ <path fill="none" d="M16.80,12.00 L18.00,12.00 C18.80,12.00 19.40,10.60 20.90,9.40 M18.00,12.00 C18.80,12.00 19.40,13.40 20.90,14.60"/>+ </g>+ </g>+ <text class="title" x="240" y="108" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-size="32" font-weight="600" letter-spacing="-0.8">Elephant-Goldfish Model</text>+</svg>diff --git a/docs/assets/readme-header.svg b/docs/assets/readme-header.svgnew file mode 100644index 0000000..22f9e5c--- /dev/null+++ b/docs/assets/readme-header.svg@@ -0,0 +1,24 @@+<svg xmlns="http://www.w3.org/2000/svg" width="480" height="116" viewBox="0 0 480 116" role="img" aria-labelledby="title">+ <title id="title">Elephant-Goldfish Model</title>+ <style>+ .title { fill: #1f2328; }+ .elephant { fill: #1b6ef3; stroke: #1b6ef3; }+ .goldfish { fill: #e86e00; stroke: #e86e00; }+ @media (prefers-color-scheme: dark) {+ .title { fill: #f0f6fc; }+ .elephant { fill: #7cacf8; stroke: #7cacf8; }+ .goldfish { fill: #ff8d41; stroke: #ff8d41; }+ }+ </style>+ <g transform="translate(180 -24) scale(5)" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round">+ <g class="elephant">+ <path stroke="none" d="M10.30,6.80 A5.20,5.20 0 0 0 10.30,17.20 A1.20,1.20 0 0 0 11.50,16.00 L11.50,8.00 A1.20,1.20 0 0 0 10.30,6.80Z"/>+ <path fill="none" d="M7.20,12.00 C6.80,14.60 3.40,14.70 3.20,12.60 C3.10,11.20 3.30,10.20 3.60,9.40"/>+ </g>+ <g class="goldfish">+ <path stroke="none" d="M13.70,6.80 A5.20,5.20 0 0 1 13.70,17.20 A1.20,1.20 0 0 1 12.50,16.00 L12.50,8.00 A1.20,1.20 0 0 1 13.70,6.80Z"/>+ <path fill="none" d="M16.80,12.00 L18.00,12.00 C18.80,12.00 19.40,10.60 20.90,9.40 M18.00,12.00 C18.80,12.00 19.40,13.40 20.90,14.60"/>+ </g>+ </g>+ <text class="title" x="240" y="108" text-anchor="middle" font-family="-apple-system, BlinkMacSystemFont, Segoe UI, sans-serif" font-size="32" font-weight="600" letter-spacing="-0.8">Elephant-Goldfish Model</text>+</svg>