# ttttstc/vibeflow architecture

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

- Interactive diagram: https://gitdiagram.com/ttttstc/vibeflow
- Repository: https://github.com/ttttstc/vibeflow

## Overview

VibeFlow is a file-driven AI software-delivery orchestrator, not an agent execution engine. Its main workflow turns a change into staged planning, implementation, review, testing, and optional release/retrospective; persisted state enables resumption and handoff. The repository also implements project mapping, rule/contract checks, architecture analysis, and a live dashboard. Several skill playbooks described by the README are not present in the supplied tree, so the graph represents their stages at the orchestration level rather than inventing skill modules. Links are limited to README statements and source-index references.

Main entry points: [`scripts/vibeflow_automation.py`](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_automation.py) (Workflow orchestrator), [`scripts/vibeflow_overview.py`](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_overview.py) (Project overview), [`scripts/spec_analyzer/runner.py`](https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/runner.py) (Analysis runner), [`scripts/vibeflow_dashboard.py`](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_dashboard.py) (Live dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Delivery workflow"]
  node_automation["Workflow orchestrator"]
  node_phase["Phase routing"]
  node_build["Feature execution"]
  node_review["Review and test"]
  node_ship["Ship and reflect"]
end

subgraph group_state["State and controls"]
  node_statefiles[("Workflow state<br/>[vibeflow_paths.py]")]
  node_contracts["Build contracts"]
  node_features["Feature contracts"]
  node_rules["Project rules<br/>[vibeflow_rules.py]"]
  node_invariants["Phase invariants"]
  node_dashboard["Live dashboard"]
end

subgraph group_context["Project context"]
  node_overview["Project overview"]
  node_codebase["Codebase mapping"]
  node_impact["Change impact"]
end

subgraph group_analysis["Architecture analysis"]
  node_analyzer["Analysis runner<br/>[runner.py]"]
  node_python["Python analyzer<br/>[python_analyzer.py]"]
  node_typescript["TypeScript analyzer"]
  node_utils["Analysis utilities<br/>[_utils.py]"]
  node_diagrams["Diagram generation<br/>[diagrams.py]"]
  node_inference["Inference templates<br/>[inference.py]"]
  node_assembler["Architecture assembly<br/>[assembler.py]"]
end

node_engineer(("Engineer"))

node_engineer -->|"starts or resumes"| node_automation
node_automation -->|"routes phases"| node_phase
node_automation -->|"reads and updates"| node_statefiles
node_automation -->|"uses contracts"| node_features
node_automation -->|"uses contracts"| node_contracts
node_automation -->|"uses context"| node_overview
node_automation -->|"applies rules"| node_rules
node_automation -->|"dispatches build"| node_build
node_automation -->|"continues to"| node_review
node_automation -.->|"optionally continues"| node_ship
node_phase -->|"checks invariants"| node_invariants
node_engineer -->|"requests status"| node_dashboard
node_dashboard -->|"reads runtime"| node_automation
node_dashboard -->|"reads state"| node_statefiles
node_overview -->|"uses map"| node_codebase
node_overview -->|"reads paths"| node_statefiles
node_overview -->|"builds architecture"| node_assembler
node_impact -->|"uses map"| node_codebase
node_analyzer -->|"analyzes Python"| node_python
node_analyzer -->|"analyzes TypeScript"| node_typescript
node_analyzer -->|"generates diagrams"| node_diagrams
node_python -->|"uses utilities"| node_utils
node_inference -->|"uses utilities"| node_utils
node_assembler -->|"uses inferences"| node_inference
node_assembler -->|"uses facts"| node_analyzer

click node_automation "https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_automation.py"
click node_phase "https://github.com/ttttstc/vibeflow/blob/main/scripts/get-vibeflow-phase.py"
click node_build "https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_automation.py"
click node_review "https://github.com/ttttstc/vibeflow/tree/main/scripts"
click node_ship "https://github.com/ttttstc/vibeflow/tree/main/scripts"
click node_statefiles "https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_paths.py"
click node_contracts "https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_design_contracts.py"
click node_features "https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_feature_contracts.py"
click node_rules "https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_rules.py"
click node_invariants "https://github.com/ttttstc/vibeflow/blob/main/scripts/validate_phase_invariants.py"
click node_dashboard "https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_dashboard.py"
click node_overview "https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_overview.py"
click node_codebase "https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_codebase.py"
click node_impact "https://github.com/ttttstc/vibeflow/blob/main/scripts/map-change-impact.py"
click node_analyzer "https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/runner.py"
click node_python "https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/python_analyzer.py"
click node_typescript "https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/typescript_analyzer.py"
click node_utils "https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/_utils.py"
click node_diagrams "https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/diagrams.py"
click node_inference "https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/inference.py"
click node_assembler "https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/assembler.py"

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_automation,node_phase,node_build,node_review,node_ship toneBlue
class node_statefiles,node_contracts,node_features,node_rules,node_invariants,node_dashboard toneAmber
class node_overview,node_codebase,node_impact toneMint
class node_analyzer,node_python,node_typescript,node_utils,node_diagrams,node_inference,node_assembler toneRose
class node_engineer toneIndigo
```

## Components

### Delivery workflow

- [Workflow orchestrator](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_automation.py): `scripts/vibeflow_automation.py`
- [Phase routing](https://github.com/ttttstc/vibeflow/blob/main/scripts/get-vibeflow-phase.py): `scripts/get-vibeflow-phase.py`
- [Feature execution](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_automation.py): `scripts/vibeflow_automation.py`
- [Review and test](https://github.com/ttttstc/vibeflow/tree/main/scripts): `scripts`
- [Ship and reflect](https://github.com/ttttstc/vibeflow/tree/main/scripts): `scripts`

### State and controls

- [Workflow state](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_paths.py): `scripts/vibeflow_paths.py`
- [Build contracts](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_design_contracts.py): `scripts/vibeflow_design_contracts.py`
- [Feature contracts](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_feature_contracts.py): `scripts/vibeflow_feature_contracts.py`
- [Project rules](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_rules.py): `scripts/vibeflow_rules.py`
- [Phase invariants](https://github.com/ttttstc/vibeflow/blob/main/scripts/validate_phase_invariants.py): `scripts/validate_phase_invariants.py`
- [Live dashboard](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_dashboard.py): `scripts/vibeflow_dashboard.py`

### Project context

- [Project overview](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_overview.py): `scripts/vibeflow_overview.py`
- [Codebase mapping](https://github.com/ttttstc/vibeflow/blob/main/scripts/vibeflow_codebase.py): `scripts/vibeflow_codebase.py`
- [Change impact](https://github.com/ttttstc/vibeflow/blob/main/scripts/map-change-impact.py): `scripts/map-change-impact.py`

### Architecture analysis

- [Analysis runner](https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/runner.py): `scripts/spec_analyzer/runner.py`
- [Python analyzer](https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/python_analyzer.py): `scripts/spec_analyzer/python_analyzer.py`
- [TypeScript analyzer](https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/typescript_analyzer.py): `scripts/spec_analyzer/typescript_analyzer.py`
- [Analysis utilities](https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/_utils.py): `scripts/spec_analyzer/_utils.py`
- [Diagram generation](https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/diagrams.py): `scripts/spec_analyzer/diagrams.py`
- [Inference templates](https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/inference.py): `scripts/spec_analyzer/inference.py`
- [Architecture assembly](https://github.com/ttttstc/vibeflow/blob/main/scripts/spec_analyzer/assembler.py): `scripts/spec_analyzer/assembler.py`

### Other components

- **Engineer**

## Connections

- Engineer → Workflow orchestrator: starts or resumes (evidence: `README.md`)
- Workflow orchestrator → Phase routing: routes phases (evidence: `README.md`)
- Workflow orchestrator → Workflow state: reads and updates (evidence: `scripts/vibeflow_automation.py`)
- Workflow orchestrator → Feature contracts: uses contracts (evidence: `scripts/vibeflow_automation.py`)
- Workflow orchestrator → Build contracts: uses contracts (evidence: `scripts/vibeflow_automation.py`)
- Workflow orchestrator → Project overview: uses context (evidence: `scripts/vibeflow_automation.py`)
- Workflow orchestrator → Project rules: applies rules (evidence: `scripts/vibeflow_automation.py`)
- Workflow orchestrator → Feature execution: dispatches build (evidence: `README.md`)
- Workflow orchestrator → Review and test: continues to (evidence: `README.md`)
- Workflow orchestrator → Ship and reflect: optionally continues (evidence: `README.md`)
- Phase routing → Phase invariants: checks invariants (evidence: `scripts/get-vibeflow-phase.py`)
- Engineer → Live dashboard: requests status (evidence: `README.md`)
- Live dashboard → Workflow orchestrator: reads runtime (evidence: `scripts/vibeflow_dashboard.py`)
- Live dashboard → Workflow state: reads state (evidence: `scripts/vibeflow_dashboard.py`)
- Project overview → Codebase mapping: uses map (evidence: `scripts/vibeflow_overview.py`)
- Project overview → Workflow state: reads paths (evidence: `scripts/vibeflow_overview.py`)
- Project overview → Architecture assembly: builds architecture (evidence: `scripts/vibeflow_overview.py`)
- Change impact → Codebase mapping: uses map (evidence: `scripts/map-change-impact.py`)
- Analysis runner → Python analyzer: analyzes Python (evidence: `scripts/spec_analyzer/runner.py`)
- Analysis runner → TypeScript analyzer: analyzes TypeScript (evidence: `scripts/spec_analyzer/runner.py`)
- Analysis runner → Diagram generation: generates diagrams (evidence: `scripts/spec_analyzer/runner.py`)
- Python analyzer → Analysis utilities: uses utilities (evidence: `scripts/spec_analyzer/python_analyzer.py`)
- Inference templates → Analysis utilities: uses utilities (evidence: `scripts/spec_analyzer/inference.py`)
- Architecture assembly → Inference templates: uses inferences (evidence: `scripts/spec_analyzer/assembler.py`)
- Architecture assembly → Analysis runner: uses facts (evidence: `scripts/spec_analyzer/assembler.py`)
