◈ Site Factory V2 — Premium Build Pipeline
⟡ Claude Code CLI · GSD Internal · Single Premium Build · Niche-Aware
V2 vs V1: + Phase 0.7 Niche Research + Claude Code CLI builder + GSD internal discipline ~ 1 premium build (not 3 variants) − Theme Hunter − 6 Planning Agents − Variant selection − Playwright QA
Entry
User Input Form
Boss submits business info via site.coddexa.media/build-v2/
prompt subdomain language demo_link
Phase 0
Reasoning Agent
Extracts structured intake from free-text prompt via AI
DeepSeek business_name niche location tone
⟐ Parallel — Phase 0.5 + 0.6
Phase 0.5
Deep Researcher
Business intelligence via Gemini + Google Search grounding. 3 parallel queries.
Gemini 2.0 Google Search social links reviews
Phase 0.6
Demo Scraper
Extracts visual style keywords and color palette from demo URL.
Firecrawl style_keywords color palette
Phase 0.7 — NEW in V2
Niche Research Agent
3 Gemini grounded queries specific to niche + country. Extracts award-winning UX patterns, top competitor designs, and best-practice signals for the exact vertical.
Gemini 2.0 Google Search best premium {niche} design top {niche} websites {country} award winning UX patterns
Phase 1
Social Image Scraper
Downloads real photos from business social profiles and website.
Instagram · Apify Facebook OG Website · Firecrawl real_images[]
Phase 1.5
Image Curator
Selects and ranks best images for the build. Maps real images to expected site slots.
Gemini Vision curated_images[] hero · gallery · team
Phase 2 — Core Build
Claude Code CLI Builder
Subprocess `claude --print --allowedTools Write,Edit,Bash,Read --max-turns 30`. Full context injected: business data, social intelligence, style inspiration, niche patterns, real images. Claude Code uses GSD internally for structured build discipline.
Claude Code CLI GSD internal Astro build npm install + build 30 min timeout dist/ output
Phase 3 — QA
Lighthouse Validator
Runs Lighthouse on file:// dist/index.html. Pass threshold: performance ≥ 50 AND seo ≥ 50. Fallback: passed=true if Lighthouse unavailable.
Lighthouse CLI --headless --no-sandbox performance score seo score pass / fail
Complete
Site Built ✓
Premium Astro static site on disk. QA score reported. Preview URL available if QA passes.
dist/ on disk QA score /sfv2-preview/{job_id}/
Sequential flow
Parallel zone (yellow)
New in V2 (purple)
Image pipeline (teal)
Build + QA (green)