# Genesis Sitemap Completion PRD
Focused completion via Gemini Flash 2.0

### US-001: Complete Mermaid Sitemap
**Goal:** Create complete SITEMAP.md with full Mermaid flowchart for Genesis

**Acceptance Criteria:**
- Valid Mermaid flowchart TB syntax
- Subgraphs for CORE, MEMORY, AIVA, SKILLS, INFRA
- Click handlers for VS Code links
- Contains minimum 15 nodes

**Files to Create:**
- /mnt/e/genesis-system/SITEMAP.md

**Technical Hints:**
Use flowchart TB. Subgraphs: CORE has genesis_kernel, heartbeat, blackboard, tool_router. MEMORY has memory_cortex, rlm_bridge, surprise_memory, graph_rag. AIVA has aiva_daemon, triple_gate_validator. SKILLS has ghl_skill, voice_skill, telnyx_skill. INFRA has postgresql, redis, qdrant. Click handlers format: click nodeId "vscode://file/mnt/e/genesis-system/path/file.py". Use classDef for colors.

**Dependencies:** None

---

### US-002: Complete Generator Script
**Goal:** Create functional Python script that regenerates sitemap from codebase scan

**Acceptance Criteria:**
- Scans core, AIVA, skills directories
- Extracts Python file names as components
- Generates valid Mermaid output
- Writes to SITEMAP.md
- Prints component count

**Files to Create:**
- /mnt/e/genesis-system/sitemap/generator.py

**Technical Hints:**
Use os.walk for directory scanning. Build mermaid string with flowchart TB header. Create subgraphs based on parent directory. Write timestamp in output. Include shebang and docstring.

**Dependencies:** None

---

### US-003: Complete Refresh Script
**Goal:** Create CLI refresh script that regenerates all sitemap files

**Acceptance Criteria:**
- Imports and runs generator
- Updates SITEMAP.md
- Prints success message with component count
- Executable with python sitemap/refresh.py

**Files to Create:**
- /mnt/e/genesis-system/sitemap/refresh.py

**Technical Hints:**
Import generator module. Call generate function with correct paths. Print emoji success message. Include timestamp. Use if __name__ == main pattern.

**Dependencies:** US-002
