# kennedykjj/shipfloor architecture

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

- Interactive diagram: https://gitdiagram.com/kennedykjj/shipfloor
- Repository: https://github.com/kennedykjj/shipfloor

## Overview

Shipfloor is a local Claude Code software factory that moves GitHub issues through refinement, development, validation, and deployment, with owner approvals at spec review and pull-request stages. The dispatcher starts ready work; gates enforce checks independently of agent claims, and deployment merges approved changes after CI. The dashboard supports decisions and operational visibility, alongside cost controls, notifications, health reporting, and owner messages to active runs. Workflow relationships follow the README; internal links use the sampled excerpts and SOURCE INDEX, so unsampled wiring is omitted where it cannot be verified.

Main entry points: [`scripts/dashboard.py`](https://github.com/kennedykjj/shipfloor/blob/main/scripts/dashboard.py) (Local dashboard), [`scripts/dispatch.sh`](https://github.com/kennedykjj/shipfloor/blob/main/scripts/dispatch.sh) (Dispatcher), [`skills/refine/SKILL.md`](https://github.com/kennedykjj/shipfloor/blob/main/skills/refine/SKILL.md) (Refinement), [`skills/validate/SKILL.md`](https://github.com/kennedykjj/shipfloor/blob/main/skills/validate/SKILL.md) (Validation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Factory workflow"]
  node_dispatcher["Dispatcher<br/>[dispatch.sh]"]
  node_refine["Refinement<br/>[SKILL.md]"]
  node_develop["Development<br/>[SKILL.md]"]
  node_validate["Validation<br/>[SKILL.md]"]
  node_gates["Quality gates<br/>[gate.sh]"]
  node_deploy["Deployment<br/>[deploy.sh]"]
end

subgraph group_oversight["Owner oversight"]
  node_dashboard["Local dashboard<br/>[dashboard.py]"]
  node_review_page["Spec review page<br/>[review_page.py]"]
  node_owner_inbox["Run message hook<br/>[inbox_hook.py]"]
end

subgraph group_operations["Factory operations"]
  node_costs["Cost estimates<br/>[dashboard_cost.py]"]
  node_notifications["Notifications"]
  node_health["Health history"]
end

subgraph group_foundation["Local configuration"]
  node_config["Config validation"]
  node_local_state[("Local factory state")]
end

node_owner(("Owner"))
node_github["GitHub board"]
node_pull_requests["Pull requests and CI"]
node_claude["Claude Code"]
node_notification_channels["Toast or ntfy"]

node_owner -->|"creates and picks"| node_github
node_github -->|"supplies ready cards"| node_dispatcher
node_dispatcher -->|"starts pipeline"| node_refine
node_dispatcher -->|"starts pipeline"| node_develop
node_dispatcher -->|"starts pipeline"| node_validate
node_refine -->|"runs session"| node_claude
node_develop -->|"runs session"| node_claude
node_validate -->|"runs session"| node_claude
node_refine -->|"must pass"| node_gates
node_develop -->|"must pass"| node_gates
node_validate -->|"must pass"| node_gates
node_owner -->|"reviews and decides"| node_dashboard
node_dashboard -->|"moves cards"| node_github
node_refine -.->|"produces review"| node_review_page
node_owner -->|"approves shipment"| node_pull_requests
node_validate -->|"opens PR"| node_pull_requests
node_deploy -->|"waits for CI and merges"| node_pull_requests
node_owner -->|"sends run message"| node_owner_inbox
node_owner_inbox -->|"delivers context"| node_claude
node_dashboard -->|"imports estimates"| node_costs
node_dashboard -->|"imports config"| node_config
node_dashboard -->|"imports health"| node_health
node_health -->|"reads factory state"| node_dashboard
node_health -->|"checks cost limits"| node_costs
node_health -->|"reads config"| node_config
node_dashboard -->|"reads and updates"| node_local_state
node_costs -->|"caches transcript data"| node_local_state
node_notifications -->|"reads and saves state"| node_local_state
node_notifications -->|"sends alerts"| node_notification_channels
node_dispatcher -.->|"runs notification cycle"| node_notifications

click node_dispatcher "https://github.com/kennedykjj/shipfloor/blob/main/scripts/dispatch.sh"
click node_refine "https://github.com/kennedykjj/shipfloor/blob/main/skills/refine/SKILL.md"
click node_develop "https://github.com/kennedykjj/shipfloor/blob/main/skills/develop/SKILL.md"
click node_validate "https://github.com/kennedykjj/shipfloor/blob/main/skills/validate/SKILL.md"
click node_gates "https://github.com/kennedykjj/shipfloor/blob/main/scripts/gate.sh"
click node_deploy "https://github.com/kennedykjj/shipfloor/blob/main/scripts/deploy.sh"
click node_dashboard "https://github.com/kennedykjj/shipfloor/blob/main/scripts/dashboard.py"
click node_review_page "https://github.com/kennedykjj/shipfloor/blob/main/scripts/review_page.py"
click node_owner_inbox "https://github.com/kennedykjj/shipfloor/blob/main/scripts/inbox_hook.py"
click node_costs "https://github.com/kennedykjj/shipfloor/blob/main/scripts/dashboard_cost.py"
click node_notifications "https://github.com/kennedykjj/shipfloor/blob/main/scripts/shipfloor_notify.py"
click node_health "https://github.com/kennedykjj/shipfloor/blob/main/scripts/shipfloor_health.py"
click node_config "https://github.com/kennedykjj/shipfloor/blob/main/scripts/shipfloor_config.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_dispatcher,node_refine,node_develop,node_validate,node_gates,node_deploy toneBlue
class node_dashboard,node_review_page,node_owner_inbox toneAmber
class node_costs,node_notifications,node_health,node_pull_requests toneMint
class node_config,node_local_state toneRose
class node_owner,node_github,node_claude,node_notification_channels toneIndigo
```

## Components

### Factory workflow

- [Dispatcher](https://github.com/kennedykjj/shipfloor/blob/main/scripts/dispatch.sh): `scripts/dispatch.sh`
- [Refinement](https://github.com/kennedykjj/shipfloor/blob/main/skills/refine/SKILL.md): `skills/refine/SKILL.md`
- [Development](https://github.com/kennedykjj/shipfloor/blob/main/skills/develop/SKILL.md): `skills/develop/SKILL.md`
- [Validation](https://github.com/kennedykjj/shipfloor/blob/main/skills/validate/SKILL.md): `skills/validate/SKILL.md`
- [Quality gates](https://github.com/kennedykjj/shipfloor/blob/main/scripts/gate.sh): `scripts/gate.sh`
- [Deployment](https://github.com/kennedykjj/shipfloor/blob/main/scripts/deploy.sh): `scripts/deploy.sh`

### Owner oversight

- [Local dashboard](https://github.com/kennedykjj/shipfloor/blob/main/scripts/dashboard.py): `scripts/dashboard.py`
- [Spec review page](https://github.com/kennedykjj/shipfloor/blob/main/scripts/review_page.py): `scripts/review_page.py`
- [Run message hook](https://github.com/kennedykjj/shipfloor/blob/main/scripts/inbox_hook.py): `scripts/inbox_hook.py`

### Factory operations

- [Cost estimates](https://github.com/kennedykjj/shipfloor/blob/main/scripts/dashboard_cost.py): `scripts/dashboard_cost.py`
- [Notifications](https://github.com/kennedykjj/shipfloor/blob/main/scripts/shipfloor_notify.py): `scripts/shipfloor_notify.py`
- [Health history](https://github.com/kennedykjj/shipfloor/blob/main/scripts/shipfloor_health.py): `scripts/shipfloor_health.py`

### Local configuration

- [Config validation](https://github.com/kennedykjj/shipfloor/blob/main/scripts/shipfloor_config.py): `scripts/shipfloor_config.py`
- **Local factory state**

### Other components

- **Owner**
- **GitHub board**
- **Pull requests and CI**
- **Claude Code**
- **Toast or ntfy**

## Connections

- Owner → GitHub board: creates and picks (evidence: `README.md`)
- GitHub board → Dispatcher: supplies ready cards (evidence: `README.md`)
- Dispatcher → Refinement: starts pipeline (evidence: `README.md`)
- Dispatcher → Development: starts pipeline (evidence: `README.md`)
- Dispatcher → Validation: starts pipeline (evidence: `README.md`)
- Refinement → Claude Code: runs session (evidence: `README.md`)
- Development → Claude Code: runs session (evidence: `README.md`)
- Validation → Claude Code: runs session (evidence: `README.md`)
- Refinement → Quality gates: must pass (evidence: `README.md`)
- Development → Quality gates: must pass (evidence: `README.md`)
- Validation → Quality gates: must pass (evidence: `README.md`)
- Owner → Local dashboard: reviews and decides (evidence: `README.md`)
- Local dashboard → GitHub board: moves cards (evidence: `README.md`)
- Refinement → Spec review page: produces review
- Owner → Pull requests and CI: approves shipment (evidence: `README.md`)
- Validation → Pull requests and CI: opens PR (evidence: `README.md`)
- Deployment → Pull requests and CI: waits for CI and merges (evidence: `README.md`)
- Owner → Run message hook: sends run message (evidence: `README.md`)
- Run message hook → Claude Code: delivers context (evidence: `scripts/inbox_hook.py`)
- Local dashboard → Cost estimates: imports estimates (evidence: `scripts/dashboard.py`)
- Local dashboard → Config validation: imports config (evidence: `scripts/dashboard.py`)
- Local dashboard → Health history: imports health (evidence: `scripts/dashboard.py`)
- Health history → Local dashboard: reads factory state (evidence: `scripts/shipfloor_health.py`)
- Health history → Cost estimates: checks cost limits (evidence: `scripts/shipfloor_health.py`)
- Health history → Config validation: reads config (evidence: `scripts/shipfloor_health.py`)
- Local dashboard → Local factory state: reads and updates (evidence: `scripts/dashboard.py`)
- Cost estimates → Local factory state: caches transcript data (evidence: `scripts/dashboard_cost.py`)
- Notifications → Local factory state: reads and saves state (evidence: `scripts/shipfloor_notify.py`)
- Notifications → Toast or ntfy: sends alerts (evidence: `scripts/shipfloor_notify.py`)
- Dispatcher → Notifications: runs notification cycle
