# brownbull/gabe-suite architecture

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

- Interactive diagram: https://gitdiagram.com/brownbull/gabe-suite
- Repository: https://github.com/brownbull/gabe-suite

## Overview

#### Purpose and Entry Points
Gabe Suite is a Claude Code plugin/distribution that installs a KDBP-guided development workflow: slash-command skills, enforcement hooks, reusable project templates, and generated documentation/command-center surfaces. Primary installation is `install.sh`; Claude discovers plugin metadata through `.claude-plugin/plugin.json` and `.claude-plugin/marketplace.json`. Each command is defined by a skill directory, e.g. `skills/gabe-plan/SKILL.md`, rather than a standalone application server.

#### Skill Command Layer
The `skills/` tree is the principal capability boundary. Each `SKILL.md` provides a compact command contract and loads detailed behavior from colocated references/scripts. Architecturally central command groups are:
- Lifecycle/state: `skills/gabe-init/SKILL.md`, `skills/gabe-plan/SKILL.md`, `skills/gabe-execute/SKILL.md`, `skills/gabe-push/SKILL.md`.
- Governance and quality: `skills/gabe-assess/SKILL.md`, `skills/gabe-commit/SKILL.md`, `skills/gabe-review/SKILL.md`, `skills/gabe-health/SKILL.md`.
- Documentation and command-center publishing: `skills/gabe-docsite/SKILL.md`, `skills/gabe-cc-init/SKILL.md`, `skills/gabe-cc-update/SKILL.md`.
- Human-facing reasoning/artifact generation: `skills/gabe-lens/SKILL.md`, `skills/gabe-imagine/SKILL.md`, `skills/gabe-mockup/SKILL.md`.

Skills operate primarily through Claude-mediated file reads/writes and shell commands; they are not an HTTP API layer.

#### KDBP State and Workflow Control
KDBP is the persistent project-state contract created/adopted by the suite: behavior, values, decisions, pending work, ledger, and active plan. Templates define the canonical files in `templates/BEHAVIOR.md`, `templates/DECISIONS.md`, `templates/PLAN.md`, and `templates/PENDING.md`; schemas formalize machine-readable scope/session data in `schemas/scope-session.schema.json` and `schemas/scope-references.schema.json`.

Primary flow: init/adopt creates `.kdbp/` → scope and plan establish canonical Markdown plus a machine plan mirror → execute/red/commit update evidence and state → handoff/push close or transfer work. The critical boundary is human-readable canonical Markdown versus structured mirrors used by automation and hooks.

#### Enforcement and Automation
Claude Code hooks enforce workflow at tool/session boundaries, especially commit/push gates, red-first work, plan-proof validation, and direction-change assessment. Hook implementations live in `scripts/hooks/kdbp/`, notably `push-gate-guard.sh`, `red-entry-guard.sh`, and `plan-proof-guard.sh`. Supporting shell/Python utilities such as `scripts/suite-doctor.sh`, `scripts/disposition.py`, and `scripts/archmap-census.py` provide deterministic checks or analysis that skills invoke.

This layer is intentionally local and filesystem-based: it modifies project state and Claude settings rather than hosting centralized infrastructure.

#### Documentation and Command-Center Generation
The repository both ships and dogfoods a static documentation/command-center system. Source Markdown and configuration are under `docs/src/`, `docs/docsite.config.py`, and `docs/center/`; generated site output is committed under `docs/site/`. The main site generator is `skills/gabe-docsite/generator/build_docsite.py`; the command-center generator pipeline centers on `docs/center/generators/build_center_a3.py` and `docs/center/generators/_center_data.py`.

Data flows from project facts/configuration and result ingestion into generated HTML pages, using reusable shell layouts/assets from `docs/center/shell/`. `templates/center/` is the distributable starter equivalent, distinct from the repo’s own populated `docs/center/`.

#### Artifact and Visualization Pipeline
Several skills produce static, inspectable artifacts rather than runtime applications: documentation HTML, command-center pages, mockups, and “prism” explanatory pages. Prism source pairs structured metadata with HTML bodies in `docs/prisms/*/prism.json` and `docs/prisms/*/body.html`; generation logic is in `skills/gabe-imagine/generator/build_prisms.py`. Mockup templates support optional React/Vite/Storybook-style downstream projects through `templates/mockup/react/`, but this repository itself is chiefly a plugin/template suite.

#### Runtimes and External Dependencies
Core implementation uses Markdown, Bash, Python, JSON, HTML/CSS/JavaScript, with Node `.mjs` utilities for browser/render checks. Claude Code is the key external runtime and integration point. Browser-oriented verification/generation is represented by Playwright helpers in `skills/gabe-docsite/tools/_playwright.mjs`, Mermaid rendering helpers such as `docs/center/generators/_render_mermaid.mjs`, and artifact checks. Some skills reference external services such as memegen.link, while Git/GitHub are operational dependencies for commit, PR, and push workflows.

Main entry points: [`skills/gabe-plan/SKILL.md`](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-plan/SKILL.md) (Lifecycle skills), [`scripts/hooks/kdbp/push-gate-guard.sh`](https://github.com/brownbull/gabe-suite/blob/main/scripts/hooks/kdbp/push-gate-guard.sh) (KDBP hook guards), [`skills/gabe-docsite/SKILL.md`](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-docsite/SKILL.md) (Publishing skills), [`skills/gabe-docsite/generator/build_docsite.py`](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-docsite/generator/build_docsite.py) (Docsite builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_distribution["Plugin Distribution"]
  node_installer["Installer<br/>Bash<br/>[install.sh]"]
  node_plugin_metadata["Plugin metadata<br/>Claude plugin manifest<br/>[plugin.json]"]
  node_marketplace_metadata["Marketplace metadata<br/>Claude marketplace manifest<br/>[marketplace.json]"]
end

subgraph group_skills["Claude Skill Commands"]
  node_lifecycle_skills["Lifecycle skills<br/>skill commands<br/>[SKILL.md]"]
  node_governance_skills["Governance skills<br/>skill commands<br/>[SKILL.md]"]
  node_publishing_skills["Publishing skills<br/>skill commands<br/>[SKILL.md]"]
  node_artifact_skills["Artifact skills<br/>skill commands<br/>[SKILL.md]"]
end

subgraph group_state["KDBP State Contract"]
  node_canonical_kdbp["Canonical KDBP Markdown<br/>project state<br/>[PLAN.md]"]
  node_state_schemas["Scope/session schemas<br/>JSON schemas"]
  node_structured_mirrors[("Structured plan mirrors<br/>automation state")]
end

subgraph group_automation["Local Enforcement"]
  node_hook_guards["KDBP hook guards<br/>Bash hooks<br/>[push-gate-guard.sh]"]
  node_suite_utilities["Suite utilities<br/>Bash and Python tools<br/>[suite-doctor.sh]"]
  node_browser_tools["Browser/render tools<br/>Node utilities<br/>[_playwright.mjs]"]
end

subgraph group_publishing["Publishing &amp; Artifacts"]
  node_docsite_source["Docsite source<br/>Markdown and config"]
  node_docsite_builder["Docsite builder<br/>Python generator<br/>[build_docsite.py]"]
  node_docsite_output["Generated docsite<br/>static HTML"]
  node_center_pipeline["Command-center pipeline<br/>Python generator<br/>[build_center_a3.py]"]
  node_center_output["Command-center source<br/>project command center"]
  node_center_template["Command-center starter<br/>distributable template"]
  node_prism_pipeline["Prism generator<br/>Python generator<br/>[build_prisms.py]"]
  node_prism_source["Prism sources<br/>artifact source"]
end

node_claude_code{{"Claude Code<br/>external runtime"}}
node_git_github{{"Git &amp; GitHub<br/>external operations"}}

node_installer -->|"installs"| node_plugin_metadata
node_plugin_metadata -->|"discovered by"| node_claude_code
node_marketplace_metadata -->|"publishes plugin"| node_claude_code
node_claude_code -->|"runs"| node_lifecycle_skills
node_claude_code -->|"runs"| node_governance_skills
node_claude_code -->|"runs"| node_publishing_skills
node_claude_code -->|"runs"| node_artifact_skills
node_lifecycle_skills -->|"creates and updates"| node_canonical_kdbp
node_lifecycle_skills -->|"maintains"| node_structured_mirrors
node_state_schemas -->|"defines"| node_structured_mirrors
node_governance_skills -->|"assesses evidence"| node_canonical_kdbp
node_hook_guards -->|"validates"| node_canonical_kdbp
node_hook_guards -->|"checks"| node_structured_mirrors
node_claude_code -->|"invokes at boundaries"| node_hook_guards
node_governance_skills -->|"invokes"| node_suite_utilities
node_publishing_skills -->|"invokes"| node_docsite_builder
node_docsite_source -->|"provides content"| node_docsite_builder
node_docsite_builder -->|"generates"| node_docsite_output
node_publishing_skills -->|"invokes"| node_center_pipeline
node_center_output -->|"provides facts and layouts"| node_center_pipeline
node_center_pipeline -->|"updates pages"| node_center_output
node_center_template -.->|"ships starter"| node_publishing_skills
node_artifact_skills -->|"invokes"| node_prism_pipeline
node_prism_source -->|"provides metadata and bodies"| node_prism_pipeline
node_docsite_builder -.->|"verifies rendering"| node_browser_tools
node_lifecycle_skills -->|"commits and pushes"| node_git_github
node_hook_guards -->|"gates push"| node_git_github

click node_installer "https://github.com/brownbull/gabe-suite/blob/main/install.sh"
click node_plugin_metadata "https://github.com/brownbull/gabe-suite/blob/main/.claude-plugin/plugin.json"
click node_marketplace_metadata "https://github.com/brownbull/gabe-suite/blob/main/.claude-plugin/marketplace.json"
click node_lifecycle_skills "https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-plan/SKILL.md"
click node_governance_skills "https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-assess/SKILL.md"
click node_publishing_skills "https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-docsite/SKILL.md"
click node_artifact_skills "https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-imagine/SKILL.md"
click node_canonical_kdbp "https://github.com/brownbull/gabe-suite/blob/main/templates/PLAN.md"
click node_state_schemas "https://github.com/brownbull/gabe-suite/blob/main/schemas/scope-session.schema.json"
click node_hook_guards "https://github.com/brownbull/gabe-suite/blob/main/scripts/hooks/kdbp/push-gate-guard.sh"
click node_suite_utilities "https://github.com/brownbull/gabe-suite/blob/main/scripts/suite-doctor.sh"
click node_docsite_builder "https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-docsite/generator/build_docsite.py"
click node_center_pipeline "https://github.com/brownbull/gabe-suite/blob/main/docs/center/generators/build_center_a3.py"
click node_prism_pipeline "https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-imagine/generator/build_prisms.py"
click node_browser_tools "https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-docsite/tools/_playwright.mjs"

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_installer,node_plugin_metadata,node_marketplace_metadata toneBlue
class node_lifecycle_skills,node_governance_skills,node_publishing_skills,node_artifact_skills toneAmber
class node_canonical_kdbp,node_state_schemas,node_structured_mirrors toneMint
class node_hook_guards,node_suite_utilities,node_browser_tools toneRose
class node_docsite_source,node_docsite_builder,node_docsite_output,node_center_pipeline,node_center_output,node_center_template,node_prism_pipeline,node_prism_source toneIndigo
class node_claude_code,node_git_github toneNeutral
```

## Components

### Plugin Distribution

- [Installer](https://github.com/brownbull/gabe-suite/blob/main/install.sh): Bash · Installs the suite into a Claude Code environment. · `install.sh`
- [Plugin metadata](https://github.com/brownbull/gabe-suite/blob/main/.claude-plugin/plugin.json): Claude plugin manifest · `.claude-plugin/plugin.json`
- [Marketplace metadata](https://github.com/brownbull/gabe-suite/blob/main/.claude-plugin/marketplace.json): Claude marketplace manifest · `.claude-plugin/marketplace.json`

### Claude Skill Commands

- [Lifecycle skills](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-plan/SKILL.md): skill commands · Init, plan, execute, and push manage the project workflow. · `skills/gabe-plan/SKILL.md`
- [Governance skills](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-assess/SKILL.md): skill commands · Assessment, commit, review, and health checks govern delivery. · `skills/gabe-assess/SKILL.md`
- [Publishing skills](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-docsite/SKILL.md): skill commands · Docsite and command-center commands publish project surfaces. · `skills/gabe-docsite/SKILL.md`
- [Artifact skills](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-imagine/SKILL.md): skill commands · Lens, imagine, and mockup commands create inspectable artifacts. · `skills/gabe-imagine/SKILL.md`

### KDBP State Contract

- [Canonical KDBP Markdown](https://github.com/brownbull/gabe-suite/blob/main/templates/PLAN.md): project state · Human-readable behavior, decisions, plan, pending work, and ledger. · `templates/PLAN.md`
- [Scope/session schemas](https://github.com/brownbull/gabe-suite/blob/main/schemas/scope-session.schema.json): JSON schemas · Formalize machine-readable scope and reference data. · `schemas/scope-session.schema.json`
- **Structured plan mirrors**: automation state · Machine-readable state consumed by skills and hooks.

### Local Enforcement

- [KDBP hook guards](https://github.com/brownbull/gabe-suite/blob/main/scripts/hooks/kdbp/push-gate-guard.sh): Bash hooks · Gate push, red-first work, plan proof, and direction changes. · `scripts/hooks/kdbp/push-gate-guard.sh`
- [Suite utilities](https://github.com/brownbull/gabe-suite/blob/main/scripts/suite-doctor.sh): Bash and Python tools · Provide deterministic diagnosis, disposition, and architecture analysis. · `scripts/suite-doctor.sh`
- [Browser/render tools](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-docsite/tools/_playwright.mjs): Node utilities · Support browser checks and Mermaid rendering. · `skills/gabe-docsite/tools/_playwright.mjs`

### Publishing & Artifacts

- **Docsite source**: Markdown and config
- [Docsite builder](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-docsite/generator/build_docsite.py): Python generator · `skills/gabe-docsite/generator/build_docsite.py`
- **Generated docsite**: static HTML · Committed static site output.
- [Command-center pipeline](https://github.com/brownbull/gabe-suite/blob/main/docs/center/generators/build_center_a3.py): Python generator · Builds pages from center data, results, layouts, and assets. · `docs/center/generators/build_center_a3.py`
- **Command-center source**: project command center · The repository's populated command-center content and shell.
- **Command-center starter**: distributable template · Starter equivalent shipped for downstream projects.
- [Prism generator](https://github.com/brownbull/gabe-suite/blob/main/skills/gabe-imagine/generator/build_prisms.py): Python generator · Builds explanatory pages from prism metadata and HTML bodies. · `skills/gabe-imagine/generator/build_prisms.py`
- **Prism sources**: artifact source

### Other components

- **Claude Code**: external runtime · Discovers commands and executes skills, hooks, and shell tools.
- **Git & GitHub**: external operations · Support commit, PR, and push workflows.

## Connections

- Installer → Plugin metadata: installs
- Plugin metadata → Claude Code: discovered by
- Marketplace metadata → Claude Code: publishes plugin
- Claude Code → Lifecycle skills: runs
- Claude Code → Governance skills: runs
- Claude Code → Publishing skills: runs
- Claude Code → Artifact skills: runs
- Lifecycle skills → Canonical KDBP Markdown: creates and updates
- Lifecycle skills → Structured plan mirrors: maintains
- Scope/session schemas → Structured plan mirrors: defines
- Governance skills → Canonical KDBP Markdown: assesses evidence
- KDBP hook guards → Canonical KDBP Markdown: validates
- KDBP hook guards → Structured plan mirrors: checks
- Claude Code → KDBP hook guards: invokes at boundaries
- Governance skills → Suite utilities: invokes
- Publishing skills → Docsite builder: invokes
- Docsite source → Docsite builder: provides content
- Docsite builder → Generated docsite: generates
- Publishing skills → Command-center pipeline: invokes
- Command-center source → Command-center pipeline: provides facts and layouts
- Command-center pipeline → Command-center source: updates pages
- Command-center starter → Publishing skills: ships starter
- Artifact skills → Prism generator: invokes
- Prism sources → Prism generator: provides metadata and bodies
- Docsite builder → Browser/render tools: verifies rendering
- Lifecycle skills → Git & GitHub: commits and pushes
- KDBP hook guards → Git & GitHub: gates push
