Premium Site Forge
One sentence in → a site that looks like it won Site of the Day.
The method is a funnel: research wide → diverge into 4 directions → let the user pick from real images → converge and build → verify in a browser. Never skip the picking step: it is what makes a one-shot result land.
brief ─► 1 research ─► 2 four directions ─► 3 Codex mockups ─► USER PICKS ─► 4 build ─► 5 3D assets ─► 6 browser QA ─► ship
0 · Intake (≤ 1 question)
Only ask what changes the output: the brand + one-line business (or "use a placeholder"). Everything else has a sensible default. If the user gave no brand, use a fictional placeholder (e.g. NOVAX) and keep all copy swappable. Write copy in the user's language.
1 · Research (parallel, ~5 min)
Spawn one research subagent (background) while you check tooling. Brief it with the sources and the exact deliverable in references/reference-sites.md → "Research brief". It must return concrete visual signatures (hex, fonts, hero composition, signature motion), not adjectives.
Meanwhile check tooling:
codex --version && codex features list | grep image_generation # must be true
node -v
If Codex is unavailable, fall back to describing each direction with a quick HTML mock rendered in the browser and screenshot it — but say so.
2 · Four directions
Synthesize exactly 4 clearly different directions. Start from the proven set in references/directions.md (Dark Precision · Warm Editorial · Aurora Glass · Industrial Instrument) and adapt palette/copy to the brand. Each direction = palette (hex) + fonts + hero picture + signature motion + which references/components it borrows.
3 · Mockups with Codex → user picks
- Write one prompt file per direction using the template in
references/codex-prompts.md(tall 1024×1536 full-page mockup, real short copy in the user's language, nav → hero → logo strip → bento → stats → CTA). - Run them in parallel:
(~2–4 min; images land inscripts/gen-previews.sh previews/prompts previewspreviews/*.png.) - Look at every image yourself before showing it. Regenerate any with broken text or layout.
- Send all 4 to the user (file cards) and ask them to choose with a single multiple-choice question (
AskUserQuestionif available). Recommend one. Do not start building before they pick.
4 · Build
Default stack (fast, AI-friendly, zero design-system lock-in):
Vite + React + TypeScript + Tailwind v4 (@tailwindcss/vite) + motion (motion/react) + lenis.
Fast path for Aurora Glass: copy templates/aurora-glass/ — it is the complete, verified example site (see the repo's examples/). Re-skin tokens in src/index.css and copy in each component.
For other directions, keep the same section blueprint and swap the surface treatment — see references/blueprint.md for:
- section order and what each section must prove
- the component recipe list (shader hero, glass pill nav, blur-in headline, interactive command palette, logo marquee, spotlight bento, sticky scroll story with tracing beam, count-up stats, aurora CTA, giant wordmark footer)
- per-direction swaps (e.g. Industrial → dot-matrix display font, dial SVG, split-flap numbers)
Rules that keep it premium:
- One accent system, tokens on
@theme; 1px hairlines at 8–14% white; film grain at ~5%. - Display type heavy (900) and tight (−0.02em); body 15–19px with relaxed leading; mono for labels.
- Motion uses one ease:
cubic-bezier(0.16, 1, 0.3, 1). Entrances = opacity + y + blur. Nothing bounces. - Every animated thing must respect
prefers-reduced-motion. - Real copy only. No lorem ipsum. Numbers look specific (11.8 ms, not "fast").
5 · 3D assets with Codex
Feature cards look 10× better with glossy object renders. Generate them on pure black and key them to alpha:
scripts/gen-asset.sh public/img/chip.webp "a futuristic AI processor chip, frosted glass top, embossed N glyph"
Run several in parallel (background &). scripts/luma_key.py does the keying; never rely on mix-blend-mode: screen (see pitfalls).
6 · Verify in a real browser — mandatory
Start the dev server and drive a browser (built-in browser pane, Playwright, or scripts/capture.mjs):
node scripts/capture.mjs ./shots http://localhost:5173/ # needs playwright-core + installed Chrome
Check at 1440×900 and 375×812: hero legibility over the shader, every section after scroll-reveal, sticky story at each step, mobile wrapping, console errors. Walk references/pitfalls.md — every item there broke at least once. Fix, re-shoot, then report.
7 · Deliver
Tell the user: how to run it, which file holds what, what is placeholder (brand, copy, numbers), and what you could not verify. Offer the next step (swap in real brand/copy, deploy).
Files
| Path | Use |
|---|---|
references/reference-sites.md | curated cases + research brief for the subagent |
references/directions.md | the 4 proven directions with full specs |
references/codex-prompts.md | mockup + 3D asset prompt templates |
references/blueprint.md | section blueprint, component recipes, direction swaps |
references/pitfalls.md | bugs we hit and their fixes |
scripts/gen-previews.sh | parallel Codex mockups |
scripts/gen-asset.sh + luma_key.py | 3D render → transparent WebP |
scripts/capture.mjs | desktop + mobile screenshots for QA/README |
templates/aurora-glass/ | complete working site (Aurora Glass) |