From fns-build-factory
Stand up a new autonomous headless coding loop — an AI "army" that writes a software product on its own, one reviewed pull request at a time. ALWAYS use when the user wants to start a new software/product build using Claude Code + GitHub Actions + Supabase + Lovable, set up a "build loop" / "build factory" / "headless loop," scaffold the CI/PR/review/deploy harness, or replicate the PaintOS / Lumira Submit build pattern. Trigger on "set up a new build loop," "spin up the build factory," "new headless coding loop," "autonomous build," "build me the loop harness," or any request to bootstrap an AI-driven build with safe per-PR review. Tailored to the RIC stack (Supabase + RLS + GHL + Lovable + Codex review).
How this skill is triggered — by the user, by Claude, or both
Slash command
/fns-build-factory:build-factoryThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill to help the user (a non-developer) stand up a new **autonomous build loop** for a software product: Claude plans here, headless Claude Code builds in the cloud one task per branch, CI tests every PR, optional Codex review, the human merges (auto-merge only if GitHub allows), and merge can chain the next task.
assets/templates/CLAUDE.mdassets/templates/build-loop/PREAMBLE.mdassets/templates/build-loop/queue.ymlassets/templates/build-loop/scripts/extract-prompt.shassets/templates/build-loop/scripts/select-next-task.shassets/templates/tests/README.mdassets/templates/tests/rls.test.mjsreferences/00_BOOTSTRAP_PROMPT.mdreferences/01_SETUP_CHECKLIST.mdreferences/02_GOTCHAS.mdreferences/03_PROMPT_LIBRARY_TEMPLATE.mdreferences/04_UPGRADES.mdreferences/05_TOY_PROOF.mdUse this skill to help the user (a non-developer) stand up a new autonomous build loop for a software product: Claude plans here, headless Claude Code builds in the cloud one task per branch, CI tests every PR, optional Codex review, the human merges (auto-merge only if GitHub allows), and merge can chain the next task.
Smoke-proven: ~/Projects/build-factory-toy / jzoccali/build-factory-toy (2026-07-18). Read references/05_TOY_PROOF.md before debugging auth.
Orient the user. Roles: you (chat) = planner; Claude Code on GitHub Actions = builder (no Allow clicks); GitHub main = truth; Supabase = backend when needed; Lovable = optional UI path (not required for headless apps); Codex = optional reviewer. The repo is the shared brain.
Build Gate first. Then BuilderOS genesis + charter before product code:
genesis.md from ~/BuilderOS/templates/genesis.mdCLAUDE.md from assets/templates/CLAUDE.md (BuilderOS v3 header)references/03_PROMPT_LIBRARY_TEMPLATE.md)Walk human setup from references/01_SETUP_CHECKLIST.md — screen by screen. Critical path:
claude setup-token → secret CLAUDE_CODE_OAUTH_TOKEN (one continuous paste)LOOP_ENABLED=trueDrop in the harness from assets/templates/ (workflows include live fixes: id-token: write, prompt input, soft auto-merge, PR permission error message).
Run the loop — Actions → Build loop → Run workflow. Merge green PRs (human is normal on free private). Merging can chain the next task.
CLAUDE_CODE_OAUTH_TOKEN from claude setup-token — not a random API key, not a line-wrapped broken paste.~/BuilderOS/OPERATE.md + full deglaze on done.references/02_GOTCHAS.md + references/05_TOY_PROOF.md.build-loop/PREAMBLE.md (template in assets/templates/build-loop/PREAMBLE.md): frontload decisions, freeze acceptance checks, halt only on verify commands — not full loopgen.references/00_BOOTSTRAP_PROMPT.md — paste-into-a-new-project prompt that turns Claude into the planning brain.references/01_SETUP_CHECKLIST.md — human setup: repo, Supabase, Lovable, Codex review, secrets, Variables, GitHub settings, billing table.references/02_GOTCHAS.md — the landmine map.references/03_PROMPT_LIBRARY_TEMPLATE.md — task-queue template + shared preamble + worked examples.references/04_UPGRADES.md — v2 changelog + phase-2 roadmap.references/05_TOY_PROOF.md — live smoke evidence + failure table (2026-07-18).assets/templates/ — drop-in repo files: CLAUDE.md, workflows, queue.yml, scripts, RLS tests.Read the relevant reference file fully before guiding the user through that step; hand them the matching template file from assets/templates/.
Canonical: ~/BuilderOS/ · OPERATE: ~/BuilderOS/OPERATE.md · Bridge: ~/BuilderOS/BUILD-FACTORY-BRIDGE.md
Do not open ~/Documents/BuilderOS v2. 2/ for normal factory builds (archive/librarian only).
Before scaffolding an app:
genesis.md from ~/BuilderOS/templates/genesis.md (why build, build vs buy, one loop, scale honesty, deps, 14-day proof).CLAUDE.md from v3 template (this skill’s assets/templates/CLAUDE.md after merge).~/BuilderOS/library/deglaze/SKILL.md). AI claims are not evidence.manifest.json, court.html).Rebuild checklist: ~/BuilderOS/BUILD-FACTORY-BRIDGE.md.
npx claudepluginhub jzoccali/fns-build-factory --plugin fns-build-factoryCreates, edits, and verifies skills using a test-driven development approach with pressure scenarios and subagents.