# jrojha/elephantgoldfish architecture

> Architecture diagram of the GitHub repository jrojha/elephantgoldfish, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jrojha/elephantgoldfish
- Repository: https://github.com/jrojha/elephantgoldfish

## Overview

EGM is a collection of AI-assistant plugin skills and reviewer prompts for collaborative design, fresh-context review, codebase documentation, and drift analysis. The core journey is user request → brainstorm/brief → specification drafting → staged independent review → human resolution and approval; other skills provide standalone codebase bootstrap, drift checks, quick iterations, and configurable review loops. The tree and README establish these capabilities, but skill implementations are prompt documents and were not sampled, so workflow edges are documented rather than inferred from runtime calls.

Main entry points: [`skills/egm-review/SKILL.md`](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-review/SKILL.md) (Design review), [`skills/egm-brainstorm/SKILL.md`](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-brainstorm/SKILL.md) (Brainstorm), [`site/src/components/docs`](https://github.com/jrojha/elephantgoldfish/tree/main/site/src/components/docs) (HTML documentation pages), [`skills/egm-draft/SKILL.md`](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-draft/SKILL.md) (Specification draft)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Design workflow"]
  node_brainstorm["Brainstorm<br/>[SKILL.md]"]
  node_brief["Concept brief"]
  node_draft["Specification draft<br/>[SKILL.md]"]
  node_resolve["Resolve findings<br/>[SKILL.md]"]
  node_approval(("Human approval"))
  node_lite["Lite iterations<br/>[SKILL.md]"]
end

subgraph group_review["Review and analysis"]
  node_reviewstage["Design review<br/>[SKILL.md]"]
  node_reviewers["Fresh reviewers"]
  node_reviewloop["Configured review loop<br/>[SKILL.md]"]
  node_bootstrap["Codebase bootstrap<br/>[SKILL.md]"]
  node_drift["Drift report<br/>[SKILL.md]"]
end

subgraph group_runtime["Plugin content"]
  node_standards["Document standards"]
  node_instructions["Execution guidance"]
  node_harnesses["Assistant adapters"]
  node_installer["OpenCode installer<br/>[install.py]"]
end

subgraph group_site["Documentation site"]
  node_content["Site content"]
  node_contentconfig["Content collection<br/>[content.config.ts]"]
  node_markdown["Repository Markdown links"]
  node_pages["HTML documentation pages"]
  node_markdownexport["Markdown export<br/>[&#91;...slug&#93;.md.ts]"]
  node_stars["GitHub stars<br/>[github-stars.ts]"]
end

node_user(("Project user"))
node_siteuser(("Documentation visitor"))
node_github["GitHub API"]

node_user -->|"starts idea"| node_brainstorm
node_brainstorm -->|"writes brief"| node_brief
node_brief -->|"informs draft"| node_draft
node_draft -->|"submits draft"| node_reviewstage
node_reviewstage -->|"dispatches reviewers"| node_reviewers
node_reviewstage -->|"presents findings"| node_resolve
node_resolve -->|"seeks approval"| node_approval
node_user -->|"configures review"| node_reviewloop
node_user -->|"requests documentation"| node_bootstrap
node_user -->|"requests comparison"| node_drift
node_user -->|"requests iteration"| node_lite
node_brainstorm -.->|"uses standards"| node_standards
node_reviewstage -.->|"checks against"| node_standards
node_harnesses -.->|"loads guidance"| node_instructions
node_installer -->|"installs bundle"| node_harnesses
node_siteuser -.->|"views docs"| node_pages
node_content -->|"provides source"| node_contentconfig
node_contentconfig -.->|"feeds pages"| node_pages
node_pages -->|"rewrites links"| node_markdown
node_markdownexport -->|"transforms export"| node_markdown
node_stars -->|"fetches count"| node_github

click node_brainstorm "https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-brainstorm/SKILL.md"
click node_draft "https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-draft/SKILL.md"
click node_reviewstage "https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-review/SKILL.md"
click node_reviewers "https://github.com/jrojha/elephantgoldfish/tree/main/agents"
click node_resolve "https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-resolve/SKILL.md"
click node_reviewloop "https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-review-loop/SKILL.md"
click node_bootstrap "https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-bootstrap/SKILL.md"
click node_drift "https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-drift-report/SKILL.md"
click node_lite "https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-lite/SKILL.md"
click node_standards "https://github.com/jrojha/elephantgoldfish/tree/main/resources/document_standards"
click node_instructions "https://github.com/jrojha/elephantgoldfish/blob/main/resources/execution_instructions.md"
click node_harnesses "https://github.com/jrojha/elephantgoldfish/tree/main/adapters"
click node_installer "https://github.com/jrojha/elephantgoldfish/blob/main/adapters/opencode/install.py"
click node_content "https://github.com/jrojha/elephantgoldfish/tree/main/docs/site"
click node_contentconfig "https://github.com/jrojha/elephantgoldfish/blob/main/site/src/content.config.ts"
click node_markdown "https://github.com/jrojha/elephantgoldfish/blob/main/site/src/lib/repository-markdown.mjs"
click node_pages "https://github.com/jrojha/elephantgoldfish/tree/main/site/src/components/docs"
click node_markdownexport "https://github.com/jrojha/elephantgoldfish/blob/main/site/src/pages/%5B...slug%5D.md.ts"
click node_stars "https://github.com/jrojha/elephantgoldfish/blob/main/site/src/lib/github-stars.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_brainstorm,node_brief,node_draft,node_resolve,node_approval,node_lite,node_user toneBlue
class node_reviewstage,node_reviewers,node_reviewloop,node_bootstrap,node_drift toneAmber
class node_standards,node_instructions,node_harnesses,node_installer,node_github toneMint
class node_content,node_contentconfig,node_markdown,node_pages,node_markdownexport,node_stars toneRose
class node_siteuser toneIndigo
```

## Components

### Design workflow

- [Brainstorm](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-brainstorm/SKILL.md): `skills/egm-brainstorm/SKILL.md`
- **Concept brief**
- [Specification draft](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-draft/SKILL.md): `skills/egm-draft/SKILL.md`
- [Resolve findings](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-resolve/SKILL.md): `skills/egm-resolve/SKILL.md`
- **Human approval**
- [Lite iterations](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-lite/SKILL.md): `skills/egm-lite/SKILL.md`

### Review and analysis

- [Design review](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-review/SKILL.md): `skills/egm-review/SKILL.md`
- [Fresh reviewers](https://github.com/jrojha/elephantgoldfish/tree/main/agents): `agents`
- [Configured review loop](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-review-loop/SKILL.md): `skills/egm-review-loop/SKILL.md`
- [Codebase bootstrap](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-bootstrap/SKILL.md): `skills/egm-bootstrap/SKILL.md`
- [Drift report](https://github.com/jrojha/elephantgoldfish/blob/main/skills/egm-drift-report/SKILL.md): `skills/egm-drift-report/SKILL.md`

### Plugin content

- [Document standards](https://github.com/jrojha/elephantgoldfish/tree/main/resources/document_standards): `resources/document_standards`
- [Execution guidance](https://github.com/jrojha/elephantgoldfish/blob/main/resources/execution_instructions.md): `resources/execution_instructions.md`
- [Assistant adapters](https://github.com/jrojha/elephantgoldfish/tree/main/adapters): `adapters`
- [OpenCode installer](https://github.com/jrojha/elephantgoldfish/blob/main/adapters/opencode/install.py): `adapters/opencode/install.py`

### Documentation site

- [Site content](https://github.com/jrojha/elephantgoldfish/tree/main/docs/site): `docs/site`
- [Content collection](https://github.com/jrojha/elephantgoldfish/blob/main/site/src/content.config.ts): `site/src/content.config.ts`
- [Repository Markdown links](https://github.com/jrojha/elephantgoldfish/blob/main/site/src/lib/repository-markdown.mjs): `site/src/lib/repository-markdown.mjs`
- [HTML documentation pages](https://github.com/jrojha/elephantgoldfish/tree/main/site/src/components/docs): `site/src/components/docs`
- [Markdown export](https://github.com/jrojha/elephantgoldfish/blob/main/site/src/pages/%5B...slug%5D.md.ts): `site/src/pages/[...slug].md.ts`
- [GitHub stars](https://github.com/jrojha/elephantgoldfish/blob/main/site/src/lib/github-stars.ts): `site/src/lib/github-stars.ts`

### Other components

- **Project user**
- **Documentation visitor**
- **GitHub API**

## Connections

- Project user → Brainstorm: starts idea (evidence: `README.md`)
- Brainstorm → Concept brief: writes brief (evidence: `README.md`)
- Concept brief → Specification draft: informs draft (evidence: `README.md`)
- Specification draft → Design review: submits draft (evidence: `README.md`)
- Design review → Fresh reviewers: dispatches reviewers (evidence: `README.md`)
- Design review → Resolve findings: presents findings (evidence: `README.md`)
- Resolve findings → Human approval: seeks approval (evidence: `README.md`)
- Project user → Configured review loop: configures review (evidence: `README.md`)
- Project user → Codebase bootstrap: requests documentation (evidence: `README.md`)
- Project user → Drift report: requests comparison (evidence: `README.md`)
- Project user → Lite iterations: requests iteration (evidence: `README.md`)
- Brainstorm → Document standards: uses standards
- Design review → Document standards: checks against
- Assistant adapters → Execution guidance: loads guidance
- OpenCode installer → Assistant adapters: installs bundle (evidence: `adapters/opencode/install.py`)
- Documentation visitor → HTML documentation pages: views docs
- Site content → Content collection: provides source (evidence: `site/src/content.config.ts`)
- Content collection → HTML documentation pages: feeds pages
- HTML documentation pages → Repository Markdown links: rewrites links
- Markdown export → Repository Markdown links: transforms export (evidence: `site/src/pages/[...slug].md.ts`)
- GitHub stars → GitHub API: fetches count (evidence: `site/src/lib/github-stars.ts`)
