← Back to KB Index
Kelly Handbook: Software Factory Pattern
kelly-handbook-software-factory.md

Kelly Handbook: Software Factory Pattern

Summary: Chapter 11 describes the Software Factory — a production-line architecture for building software with minimal human intervention. The factory takes product ideas through a staged pipeline: Intake → Research → Planning → Implementation → Testing → Release. Each stage has defined artifacts, gates, and specialized agents. The Kelly Router coordinates everything.

Key Concepts

Notable Patterns

The Six-Stage Pipeline

Idea → Research → Planning → Implementation → Testing → Release   │       │         │            │           │         │ Intake   CIS      PRD+         Sprint      TEA      Operator          Loop    Arch+        Execution   Audit    Decision                   UX Design

Stage 1: Intake

When a new idea arrives, the router:

  1. Creates a timestamped project directory
  2. Writes `intake.md` with project ID, timestamp, original idea, initial classification, and path recommendation
PROJECT_ID=$(date +%Y%m%d-%H%M%S) mkdir -p /clawd/projects/$PROJECT_ID/{research-artifacts,planning-artifacts,implementation-artifacts,test-artifacts}

Stage 2: Research (CIS Loop)

The research-lead agent runs the Context → Information → Synthesis pipeline:

Output: research-artifacts/research-summary.md with gate: READY or NOT-READY

Stage 3: Planning

The project-lead agent creates:

Stage 4: Implementation (Sprint Execution)

Stage 5: Testing (TEA Audit)

Output: tea-summary.md with gate: PASS, PASS-WITH-FOLLOWUPS, or REMEDIATE

Stage 6: Release

Operator decision: SHIP or NO-SHIP

Quick Path vs Full Pipeline

Task TypePath
New productFull pipeline
FeatureFull pipeline
Bug fixQuick path (skip research)

Case Study: CSV Export Feature

From idea to production-ready in ~75 minutes:

Other Sections in Chapter 11

Related

[[kelly-handbook-multi-agent]], [[kelly-tweets-factory]], [[kelly-tweets-agents]]