Skip to content
Public template

About

Forge any website into a clean Next.js app with Cursor, Claude Code, and other AI agents

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloneForge

Forge any website into a clean Next.js app — with Cursor, Claude Code, and other AI agents.

MIT Stars Node 20+ Next.js 16 Cursor

Use this template · Quick start · How it works · Agents

Deploy with Vercel

Live demo →

Demo

CloneForge pipeline

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:

  1. Inspect the live page (screenshots, tokens, interactions)
  2. Extract assets + exact getComputedStyle() values
  3. Spec every section before building
  4. Forge components in parallel worktrees
  5. 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.

Quick Start

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.com

Cursor: 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.

Demo landing

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/example

Artifacts: docs/research/example.com/, docs/design-references/example.com/

Supported agents

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

Prerequisites

  • Node.js 20+
  • An AI coding agent with browser automation (Cursor Browser, Chrome MCP, Playwright MCP, etc.)

Tech stack

  • 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)

How it works

The /clone-website skill runs a multi-phase pipeline:

  1. Reconnaissance — screenshots, tokens, scroll/click/hover/responsive sweep
  2. Foundation — fonts, colors, globals, downloaded assets
  3. Component specs — auditable files in docs/research/components/
  4. Parallel build — one builder per section/component (worktrees)
  5. 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.

Use cases

  • Platform migration — WordPress / Webflow / Squarespace → Next.js
  • Lost source — live site, dead repo → modern codebase
  • Learning — deconstruct real production layouts and motion

Not for

  • Phishing, impersonation, or fraud
  • Passing off someone else’s brand/design as yours
  • Ignoring a site’s terms of service

Project structure

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)

Commands

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 agents

Docker: docker compose up app --build or docker compose up dev --build (port 3001).

Updating agent files

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

Upstream

Forked and evolved from JCodesMore/ai-website-cloner-template (MIT). See NOTICE.md.

Star History

Star History Chart

If CloneForge saves you a weekend — star the repo. It helps others find it.

Growth ideas for maintainers: docs/STAR_PLAYBOOK.md.

License

MIT — Copyright JCodesMore & abuzar310

About

Forge any website into a clean Next.js app with Cursor, Claude Code, and other AI agents

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages