# enzed/vibe-coding architecture

> Architecture diagram of the GitHub repository enzed/vibe-coding, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/enzed/vibe-coding
- Repository: https://github.com/enzed/vibe-coding

## Overview

##### Project type and purpose
- This “project” isn’t a traditional codebase—it’s a structured workflow guide for “vibe coding” a game (or app) using AI tools.
- Its purpose is to orchestrate interactions between:
- You (the developer)
- AI partners (Gemini 2.5 Pro Thinking, Claude Sonnet 3.7 Thinking, etc.)
- Your local files and memory bank
- External utilities (Superwhisper, BrowserTools, Git, etc.)

##### File structure
- Top-level: only a README.md—no source tree yet.
- But the README prescribes creating:
- `/memory-bank` directory with multiple `.md` documents
- A `.cursor/rules` file in the project root
- A future code directory (for the game code)

##### README for additional insights
- It describes a step-by-step pipeline:
1. Generate and refine the Game Design Document
2. Tech-stack and configure Cursor rules
3. Produce an implementation plan
4. Use the memory-bank to store context for AI
5. Iteratively develop features, tests, and documentation
- Emphasizes modularity, small steps, automated tests, and Git commits.

##### Detail
- Every file in `memory-bank` as a separate component
- Cyclical nature: Plan → Code → Test → Commit → Document → Plan
- Don’t just lump “AI” into one blob—distinguish between Gemini and Claude where they serve different roles

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Developer
    Developer["Developer"]:::person

    %% AI Engines
    subgraph "AI Engines"
        direction TB
        Gemini(("Gemini 2.5 Pro Thinking")):::ai
        Claude(("Claude Sonnet 3.7 Thinking")):::ai
    end

    %% External Services
    subgraph "External Tools"
        direction TB
        Superwhisper(("Superwhisper")):::service
        BrowserTools(("BrowserTools")):::service
        RepoPrompt(("RepoPrompt/uithub")):::service
    end

    %% File System
    subgraph "Local File System"
        direction TB
        README["README.md"]:::fs
        CursorRules[".cursor/rules"]:::fs
        subgraph "memory-bank/"
            direction TB
            GDD["GDD.md"]:::fs
            TechStack["tech-stack.md"]:::fs
            Plan["implementation-plan.md"]:::fs
            Progress["progress.md"]:::fs
            Architecture["architecture.md"]:::fs
        end
        Code["src/"]:::fs
    end

    %% Version Control
    Git[(Git Repo)]:::db

    %% Interactions
    Developer -.prompt.-> Gemini
    Developer -.prompt.-> Claude
    Gemini -->|"writes context"| GDD
    Gemini -->|writes context| TechStack
    Claude -->|writes context| Plan
    Claude -->|writes context| Architecture
    Developer -->|reads/writes| Progress
    Developer -->|runs tests| Code
    Code -->|captures errors| BrowserTools
    BrowserTools -->|reports errors| Developer
    Developer -->|voice commands| Superwhisper
    Superwhisper -->|transcribes| Developer
    Developer -->|commits| Git
    Git <-->|"version sync"| Developer
    Code -->|refs docs| GDD
    Code -->|refs docs| Architecture
    Developer -->|backup code| RepoPrompt

    %% Click Events
    click README "https://github.com/enzed/vibe-coding/blob/main/README.md"

    %% Styles
    classDef person fill:#f9f,stroke:#333,stroke-width:2px
    classDef ai fill:#9f9,stroke:#333,stroke-width:2px
    classDef fs fill:#ff9,stroke:#333,stroke-width:2px
    classDef service fill:#9ff,stroke:#333,stroke-width:2px
    classDef db fill:#f99,stroke:#333,stroke-width:2px
```
