Introduction
What is crucible?
crucible (npm: create-crucible) is a CLI scaffold for landing pages. It generates a complete project with a full AI agent system built in — not just a component library, but a constraint system that shapes how AI writes code and copy for your specific brand.
The problem it solves
Most AI-generated landing pages look the same because the AI has no information about the brand. Without constraints, it defaults to:
- Generic copy ("Professional solutions for discerning clients")
- 3-column equal grids with stock icons
- Hex values hardcoded in every component
- Missing
<form>wrappers, broken Enter key submission - Black placeholder OG images
crucible solves this by generating a constraint system alongside the code:
your-project/
CLAUDE.md ← AI reads this every session
DESIGN.md ← exact colors, fonts, anti-patterns
GUARDRAILS.md ← learned failure patterns
.claude/skills/ ← role-based AI constraints
scripts/ ← automated enforcementThe core idea
Slop = AI without constraints
Not slop = AI inside a design system + guardrails + concrete specsA crucible is the vessel where raw material transforms into refined output. Your brand inputs go in — a constrained, AI-ready scaffold comes out. The walls are set. The AI works inside them.
What gets generated
Running npm create crucible@latest my-project generates:
- AI meta-files —
CLAUDE.md,DESIGN.md,GUARDRAILS.mdpre-filled with your brand - Claude Code skills —
copywriter,qa-mobile,ui-designerin.claude/skills/ - Token enforcement — script blocks hardcoded hex at commit time
- Precommit pipeline — lint + typecheck + token check
- Component skeletons — Hero, Services, Process, Contact, Header, Footer
- Data layer —
src/lib/site.ts,services.ts,process.ts— content separate from markup - API route — contact form with Zod validation + honeypot (Next.js)
- UI library — your chosen lib's deps injected + providers wired
- Design theme notes — typography, motion, component, and anti-pattern guidance for your chosen aesthetic injected into
DESIGN.md § 0 - Profile-aware copy — individual portfolio vs brand/org: CTA labels, section headers, and DESIGN.md adapt to who the page is for
- Figma tokens (optional) — real colors + typography extracted from your Figma file and written into
DESIGN.mdandtokens.css
Who is it for?
- Developers building brand landing pages with Claude Code, Cursor, or Copilot
- Agencies who want a repeatable AI-assisted workflow per client
- Indie builders who want to ship faster without generating generic output