Website Factory
Build a complete, production-ready Next.js 16 enterprise website — with WOW-level animations, typography, and visuals — from a client brief in 40-60 minutes. This skill is self-contained: all animation systems, component code, color tokens, and industry defaults live in data/, so the skill works end-to-end on day one without depending on any external template repo.
Pillars (read these first)
data/motion-system.md— Animation vocabulary (easing, Framer variants, GSAP). Every component uses these constants. Don't invent new ones.data/components/_index.md— Catalog of all 31 components. Check this BEFORE writing any new UI code.data/pattern-recipes.md— Copy-paste recipes for common compositions.data/color-systems.md+data/typography-presets.md— 4 palettes, 4 font stacks.data/industry-defaults.ts— 15 industry presets (color, font, hero pattern, CTA, badges).data/globals-base.css+data/keyframes.css— Drop into the new project'sglobals.css.
Prerequisites
- Node.js 20+
- Next.js 16 (or the latest version the target project is on)
- Claude Code with parallel agent support
- For cinematic-hero-gsap.tsx (optional):
npm install gsap
Phase 0 — Brief Collection (5 min)
Option A: Interactive Brief
Ask the user for the minimum:
- Company name (e.g., "Acme Corp")
- Domain (e.g., "acmecorp.com")
- Industry — one of the 15 in
data/industry-defaults.ts - Primary brand color (hex) — OR let industry defaults pick it
- Tagline
- Animation intensity — subtle / dynamic / cinematic (maps to hero choice)
For anything not provided, look up defaults from data/industry-defaults.ts.
Option B: Brief Document
Accept a markdown file matching data/brief-template.md. Parse all fields.
Option C: URL Scrape
If the user provides a URL: WebFetch → extract company name, tagline, colors (from meta theme-color), logo URLs, nav structure. Present extracted data, confirm, fill gaps with industry defaults.
Option D: Quick Mode
/website-factory quick [company] [domain] [industry] — all defaults from data/industry-defaults.ts. Only logo files need manual placement.
Output
Generate brief.json with the complete site config. Save at src/data/brief.json in the target project.
Phase 1 — Scaffold (5 min, 1 agent)
Steps
- If target directory is empty:
npx create-next-app@latest . --typescript --tailwind --app --no-src-dir(then move intosrc/yourself — the skill's components expectsrc/components/ui). - Install dependencies:
npm install framer-motion npm install gsap # only if using cinematic-hero npm install clsx tailwind-merge # for cn() util - Copy
data/globals-base.css→ project'ssrc/app/globals.css. ReplaceBRAND_*placeholders with chosen color system (pull fromdata/color-systems.md). - Append
data/keyframes.csscontent after the base globals, OR keep as separate file and@import './keyframes.css'. - Set up fonts in
src/app/layout.tsx— pick the preset fromdata/typography-presets.mdthat matches the industry. - Write
brief.jsontosrc/data/brief.json. - Generate
src/data/site-config.ts— a typed object that all components read from. Example shape:export const siteConfig = { company: { name, domain, description }, brand: { primary, accent, surface }, nav: [...], hero: { headline, subtitle, cta }, features:[...], stats: [...], faqs: [...], footer: {...}, } as const - Copy
data/industry-defaults.ts→src/data/industry-defaults.ts. - Run
npm install+npx tsc --noEmitto verify.
Validation
site-config.tsexports without TS errors.globals.csshas no remainingBRAND_*placeholders.npm run buildpasses (no page content yet, just scaffold).
Phase 1.5 — Foundation Setup (5 min, 1 agent)
NEW in v2. Pre-install the UI kit before Phase 2 agents start.
Steps
- Create
src/lib/motion.ts— copydata/components/motion.tsverbatim. - Create
src/lib/utils.tsif it doesn't exist:import { clsx, type ClassValue } from 'clsx' import { twMerge } from 'tailwind-merge' export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } - Copy ALL files from
data/components/→src/components/ui/(components) andsrc/hooks/(hooks starting withuse-). - Verify imports resolve:
npx tsc --noEmit.
Component installation order (if selective)
If you only want a subset to keep bundle size low, install in this order to preserve dependency chain:
motion.ts(always)use-animation-config.ts(required by gradient-mesh, interactive-dot-grid)use-magnetic.ts(required by magnetic-button)reveal-on-scroll.tsx(required by most scroll-triggered sections)- Everything else can be added on-demand.
Phase 2 — Core Build (15 min, 4 Parallel Agents)
CRITICAL: File Ownership Rules
Each agent ONLY touches its assigned files. No agent may read, write, or modify another agent's files. Every agent MUST read data/components/_index.md first to know what components exist. Compose from the kit; don't invent.
Agent A: Homepage + Layout
Owns: src/app/(site)/page.tsx, src/components/layout/header.tsx, src/components/layout/footer.tsx, src/app/(site)/layout.tsx
- Compose
page.tsxby importing hero example fromdata/examples/that matchesbrief.animationIntensity:subtle→premium-saas-hero.tsxdynamic→ai-tech-hero.tsxORreal-estate-hero.tsx(by industry)cinematic→cinematic-hero-example.tsx
- Adapt the example to use
siteConfigvalues instead of hardcoded strings. - Build header with nav from
siteConfig.nav. - Build footer with columns from
siteConfig.footer. - Use
<RevealOnScroll>on every major section below the hero.
Agent B: Core Pages
Owns: src/app/(site)/about/page.tsx, src/app/(site)/platform/page.tsx, src/app/(site)/pricing/page.tsx, src/app/(site)/contact/page.tsx
- About — use
VerticalCutRevealfor the headline,TimelineContentfor company history. - Platform/Services — use
BounceCardorBauhausCardfor feature grids. - Pricing — CountUp for annual-savings numbers.
- Contact — form with shadcn primitives; fire
<Confetti active={submitted} />on success. - Each page has proper
generateMetadata().
Agent C: Programmatic Pages (only if brief includes them)
Owns: src/app/(site)/compare/[competitor]/page.tsx, src/app/(site)/solutions/[audience]/page.tsx, src/app/(site)/[geo]/page.tsx
- Use
generateStaticParams()on each — pre-render all variants. - Share a common layout component that uses
RevealOnScrollfor reveals. - Unique H1 + meta description per variant (no content duplication).
Agent D: SEO Infrastructure
Owns: src/app/sitemap.ts, src/app/robots.ts, src/lib/schema-builders/, src/app/opengraph-image.tsx, src/lib/metadata.ts
- Dynamic sitemap that auto-discovers routes (don't hardcode dates).
robots.tswith granular per-bot rules (allow GPTBot/ClaudeBot/PerplexityBot for SEO/AEO).- JSON-LD builders: Organization, WebSite, Product, FAQPage, BreadcrumbList, LocalBusiness (if geo pages).
- OG image generation via
opengraph-image.tsx. - Shared
generatePageMetadata()utility.
Phase 3 — Polish (10 min, 3 Parallel Agents)
Agent E: Content Optimization
- Every page title, meta description, H1 contains target keyword.
- Internal links between related pages.
- CTAs use action-oriented verbs.
- Meta descriptions 150-160 chars.
Agent F: Design / Animation Audit
Check data/motion-system.md for specs, then verify:
- Every animation uses
ease = [0.22, 1, 0.36, 1](oreaseSnap = [0.16, 1, 0.3, 1]for GSAP). fadeUpusesy: 10. Noy: 24on small elements.- Cards use
border+ subtle--shadow-card, NOT heavy drop-shadows. - Color contrast meets WCAG AA (primary text ≥ 4.5:1 on background).
prefers-reduced-motionis respected — checkuseAnimationConfig()is called wherever needed.useInView({ once: true, margin: '-60px' })everywhere.- No orphan text — every h1/h2/h3 has
text-wrap: balanceapplied.
Agent G: Programmatic Content (only if programmatic pages exist)
- Each competitor/audience/geo page has unique body content (< 30% overlap).
- Unique testimonials, unique FAQ, unique CTA copy.
Phase 4 — QA + Deploy (5-10 min, 2 Parallel Agents)
Agent H: Quality Assurance
npx tsc --noEmit— fix any errors.npx next lint— fix any errors.npm run build— fix any errors.- Verify route count in build output matches expected pages.
- Verify sitemap includes all routes.
Agent I: Deployment
- Verify
vercel.json(or deployment config). - Set env vars (GTM ID, NEXT_PUBLIC_SITE_URL, Sanity IDs if applicable).
- Run deploy command.
- Verify live URL returns 200.
- Verify
/sitemap.xmland/robots.txtaccessible.
Quality Gates
Before declaring the site complete, ALL must pass:
-
npm run buildpasses with zero errors - All pages return 200
- Every page has unique title + meta description
- Every page has an H1
- Organization JSON-LD is on every page
- FAQPage schema is on pages with FAQs
- Sitemap includes all static + dynamic routes
- robots.txt allows GPTBot, ClaudeBot, PerplexityBot
- OG image is set for every page (dynamic or fallback)
- No hardcoded placeholder strings remain (grep for
BRAND_,PLACEHOLDER,TODO) - All animations respect
prefers-reduced-motion - Color contrast meets WCAG AA
- Mobile responsive (no horizontal scroll)
- Cinematic hero (if used) passes Lighthouse > 90 performance
- At least 3 components from the UI kit used on the homepage
Fallback Handling
- Missing brief field → use industry default from
data/industry-defaults.ts - Missing logo → text-based fallback (company name in heading font)
- Missing pricing data → skip pricing page
- Missing testimonials → skip testimonials section
- Build fails → Agent H has 3 retry attempts before escalating to user
Time Budget
| Phase | Duration | Agents |
|---|---|---|
| Phase 0 — Brief | 5 min | 1 (interactive) |
| Phase 1 — Scaffold | 5 min | 1 |
| Phase 1.5 — Foundation (NEW) | 5 min | 1 |
| Phase 2 — Core Build | 15 min | 4 parallel |
| Phase 3 — Polish | 10 min | 3 parallel |
| Phase 4 — QA + Deploy | 5-10 min | 2 parallel |
| Total | 45-50 min |
Non-negotiables (the quality bar)
Read data/motion-system.md section "What NOT to do" — but the key ones:
- Always
useInView({ once: true })in production - Always respect
prefers-reduced-motion(useuseAnimationConfig()) - Always
text-wrap: balanceon headings - Always
font-variant-numeric: tabular-numson stats - Never hardcode easing curves in components — import from
@/lib/motion - Never invent a new animation pattern when one exists in
data/components/
