Forge any website into a clean Next.js app — with Cursor, Claude Code, and other AI agents.
Use this template · Quick start · How it works · Agents
Live landing: cloneforge-orcin.vercel.app · click the image to open it.
Point your AI coding agent at a URL, run /clone-website, and watch it:
- Inspect the live page (screenshots, tokens, interactions)
- Extract assets + exact
getComputedStyle()values - Spec every section before building
- Forge components in parallel worktrees
- Ship a compiling Next.js + Tailwind v4 + shadcn site
Why CloneForge? Same powerful clone pipeline as the community original — plus Cursor-first docs, Node 20+ (not 24-only), a showcase landing you can demo, and a one-command
npm run setup.
Use Use this template so you get your own repo. Don’t open PRs here with generated website clones.
# after creating your copy from the template
git clone https://github.com/YOUR-USERNAME/YOUR-REPO.git
cd YOUR-REPO
npm run setup # Node 20+ check + npm install
npm run dev # preview CloneForge landing
# then in Cursor / Claude Code / your agent:
/clone-website https://example.comCursor: open the project → Agent chat → /clone-website <url> (browser MCP enabled).
Claude Code: claude then /clone-website <url> (Chrome MCP recommended).
Other agents: see AGENTS.md.
npm run dev serves a CloneForge showcase page (forge aesthetic + pipeline UI).
Running /clone-website replaces src/app/page.tsx with your clone — that’s expected.
Smoke test included: Playwright extraction of example.com → /demos/example
npm run smoke:example # re-extract tokens + screenshot
npm run dev # open http://localhost:3000/demos/exampleArtifacts: docs/research/example.com/, docs/design-references/example.com/
| Agent | Notes |
|---|---|
| Cursor | First-class — built-in browser MCP + /clone-website command |
| Claude Code | Excellent with Opus + Chrome MCP |
| Codex CLI | Supported |
| GitHub Copilot | Supported |
| Windsurf | Supported |
| OpenCode | Supported |
| Gemini CLI | Supported |
| Cline / Roo | Supported |
| Aider / Continue / Amazon Q / Augment | Supported |
- Node.js 20+
- An AI coding agent with browser automation (Cursor Browser, Chrome MCP, Playwright MCP, etc.)
- Next.js 16 — App Router, React 19, TypeScript
- shadcn/ui + Tailwind CSS v4 — oklch / design tokens
- Lucide — default icons (swapped for extracted SVGs during clones)
The /clone-website skill runs a multi-phase pipeline:
- Reconnaissance — screenshots, tokens, scroll/click/hover/responsive sweep
- Foundation — fonts, colors, globals, downloaded assets
- Component specs — auditable files in
docs/research/components/ - Parallel build — one builder per section/component (worktrees)
- Assembly & QA — merge, wire the page, visual check,
npm run build
Builders get exact CSS, interaction models, multi-state content, and asset paths — not vibes.
- Platform migration — WordPress / Webflow / Squarespace → Next.js
- Lost source — live site, dead repo → modern codebase
- Learning — deconstruct real production layouts and motion
- Phishing, impersonation, or fraud
- Passing off someone else’s brand/design as yours
- Ignoring a site’s terms of service
src/app/ # Routes (showcase until you clone)
src/components/ui/ # shadcn primitives
docs/research/ # Extraction + component specs
docs/design-references/ # Screenshots
.claude/skills/ # Source skill (sync → all agents)
.cursor/commands/ # Cursor /clone-website
AGENTS.md # Agent instructions (source of truth)
npm run setup # verify Node + install
npm run dev # http://localhost:3000
npm run build
npm run check # lint + typecheck + build
npm run sync:skills # regenerate skill copies for all agentsDocker: docker compose up app --build or docker compose up dev --build (port 3001).
| What | Edit this | Then run |
|---|---|---|
| Project instructions | AGENTS.md |
npm run sync:agents (or bash scripts/sync-agent-rules.sh) |
| Clone skill | .claude/skills/clone-website/SKILL.md |
npm run sync:skills |
Forked and evolved from JCodesMore/ai-website-cloner-template (MIT). See NOTICE.md.
If CloneForge saves you a weekend — star the repo. It helps others find it.
Growth ideas for maintainers: docs/STAR_PLAYBOOK.md.
MIT — Copyright JCodesMore & abuzar310
