@SUOHAI_AI: Before Fable 5, there was already an open-source Skill that can 1:1 clone any target website. The skill is called: AI Website Cloner Template (clone-website). Use Claude Code's Chrome MCP to connect...
Summary
Introduces an open-source skill called AI Website Cloner Template, which can use Claude Code and other AI coding agents to clone any website, automatically capturing DOM, styles, and resources, and generating a Next.js codebase.
View Cached Full Text
Cached at: 07/06/26, 06:02 AM
Before Fable 5 came out, there was already an open-source skill that could 1:1 replicate a target website with great results. This skill is called: AI Website Cloner Template (clone-website). It directly uses Claude Code’s Chrome MCP to connect to the target website, grab the real DOM, computed styles, resources, and interaction behaviors. Then it launches multiple parallel agents to process different sections simultaneously, and finally automatically merges them with visual QA alignment to the original site. GitHub: https://github.com/JCodesMore/ai-website-cloner-template… Now with Fable 5, it seems skills are no longer needed — its capability is strong enough.
JCodesMore/ai-website-cloner-template
Source: https://github.com/JCodesMore/ai-website-cloner-template
AI Website Cloner Template
A reusable template for reverse-engineering any website into a clean, modern Next.js codebase using AI coding agents.
Recommended: Claude Code (https://docs.anthropic.com/en/docs/claude-code) with Opus 4.8 for best results — but works with a variety of AI coding agents. Point it at a URL, run /clone-website, and your AI agent will inspect the site, extract design tokens and assets, write component specs, and dispatch parallel builders to reconstruct every section.
Demo
Watch the demo (https://youtu.be/O669pVZ_qr0)
Click the image above to watch the full demo on YouTube.
Quick Start
Important: Start by making your own copy with GitHub’s Use this template button. Do not clone this template repository directly for your website project, and do not open pull requests here with your generated website.
-
Create your own repository from this template
On the GitHub page for this project, click Use this template, then click Create a new repository. Give your new repository a name, choose whether it should be public or private, then click Create repository. If GitHub shows an Include all branches option, you can leave it off. This gives you your own separate project to work in, so your website changes stay in your account instead of coming back to the main template. -
Open your new repository on your computer
After GitHub creates your copy, open that new repository. Click Code and open or clone your new repository with your preferred coding tool. If you use the terminal, the command will look like this:git clone https://github.com/YOUR-USERNAME/YOUR-NEW-REPOSITORY.git cd YOUR-NEW-REPOSITORY -
Install dependencies
npm install -
Start your AI agent — Claude Code recommended:
claude --chrome -
Run the skill:
/clone-website [<url> ...] -
Customize (optional) — after the base clone is built, modify as needed
Using a different agent? Open
AGENTS.mdfor project instructions — most agents pick it up automatically.
Supported Platforms
| Agent | Status |
|---|---|
| Claude Code (https://docs.anthropic.com/en/docs/claude-code) | Recommended — Opus 4.8 |
| Codex CLI (https://github.com/openai/codex) | Supported |
| OpenCode (https://opencode.ai/) | Supported |
| GitHub Copilot (https://github.com/features/copilot) | Supported |
| Cursor (https://cursor.com/) | Supported |
| Windsurf (https://codeium.com/windsurf) | Supported |
| Gemini CLI (https://github.com/google-gemini/gemini-cli) | Supported |
| Cline (https://github.com/cline/cline) | Supported |
| Roo Code (https://github.com/RooCodeInc/Roo-Code) | Supported |
| Continue (https://continue.dev/) | Supported |
| Amazon Q (https://aws.amazon.com/q/developer/) | Supported |
| Augment Code (https://www.augmentcode.com/) | Supported |
| Aider (https://aider.chat/) | Supported |
Prerequisites
- Node.js (https://nodejs.org/) 24+
- An AI coding agent (see Supported Platforms)
Tech Stack
- Next.js 16 — App Router, React 19, TypeScript strict
- shadcn/ui — Radix primitives + Tailwind CSS v4
- Tailwind CSS v4 — oklch design tokens
- Lucide React — default icons (replaced by extracted SVGs during cloning)
How It Works
The /clone-website skill runs a multi-phase pipeline:
- Reconnaissance — screenshots, design token extraction, interaction sweep (scroll, click, hover, responsive)
- Foundation — updates fonts, colors, globals, downloads all assets
- Component Specs — writes detailed spec files (
docs/research/components/) with exact computed CSS values, states, behaviors, and content - Parallel Build — dispatches builder agents in git worktrees, one per section/component
- Assembly & QA — merges worktrees, wires up the page, runs visual diff against the original
Each builder agent receives the full component specification inline — exact getComputedStyle() values, interaction models, multi-state content, responsive breakpoints, and asset paths. No guessing.
Use Cases
- Platform migration — rebuild a site you own from WordPress/Webflow/Squarespace into a modern Next.js codebase
- Lost source code — your site is live but the repo is gone, the developer left, or the stack is legacy. Get the code back in a modern format
- Learning — deconstruct how production sites achieve specific layouts, animations, and responsive behavior by working with real code
Not Intended For
- Phishing or impersonation — this project must not be used for deceptive purposes, impersonation, or any activity that breaks the law.
- Passing off someone’s design as your own — logos, brand assets, and original copy belong to their owners.
- Violating terms of service — some sites explicitly prohibit scraping or reproduction. Check first.
Project Structure
src/
app/ # Next.js routes
components/ # React components
ui/ # shadcn/ui primitives
icons.tsx # Extracted SVG icons
lib/utils.ts # cn() utility
types/ # TypeScript interfaces
hooks/ # Custom React hooks
public/
images/ # Downloaded images from target
videos/ # Downloaded videos from target
seo/ # Favicons, OG images
docs/
research/ # Extraction output & component specs
design-references/# Screenshots
scripts/
sync-agent-rules.sh # Regenerate agent instruction files
sync-skills.mjs # Regenerate /clone-website for all platforms
AGENTS.md # Agent instructions (single source of truth)
CLAUDE.md # Claude Code config (imports AGENTS.md)
GEMINI.md # Gemini CLI config (imports AGENTS.md)
Commands
npm run dev # Start dev server
npm run build # Production build
npm run lint # ESLint check
npm run typecheck # TypeScript check
npm run check # Run lint + typecheck + build
If using docker
docker compose up app --build # build and run the app
docker compose up dev --build # run the app in dev mode on port 3001
Updating for Other Platforms
Two source-of-truth files power all platform support. Edit the source, then run the sync script:
| What | Source of truth | Sync command |
|---|---|---|
| Project instructions | AGENTS.md | bash scripts/sync-agent-rules.sh |
/clone-website skill | .claude/skills/clone-website/SKILL.md | node scripts/sync-skills.mjs |
Each script regenerates the platform-specific copies automatically. Agents that read the source files natively need no regeneration.
Star History
Star History Chart (https://star-history.com/#JCodesMore/ai-website-cloner-template&Date)
License
MIT
Sac (@Saccc_c):
If you don’t know what to do with Fable 5, just have it clone a website — preferably one you have a membership for.Below is the Notion I cloned with Fable 5. This huge project is already about 70% done. So awesome.
Similar Articles
@VincentLogic: Share a powerful tool that can 'one-click clone' any website into code! ai-website-cloner-template Simply put: give it a URL, and AI helps you reverse-engineer it, directly generating a clean Next.js codebase. What makes it powerful? Extremely high fidelity: It doesn’t just copy the surface; the AI automatically takes screenshots...
Introduces a tool named ai-website-cloner-template that uses AI to reverse-engineer any website into a high-quality Next.js codebase, supporting mainstream AI coding assistants.
@FinanceYF5: Someone has open-sourced their Agent skill library — 75 skills, compatible with Codex, Claude Code, Cursor, focused on web design, landing pages, animations, WebGL. The most interesting one: converts design screen recordings directly into ultra-detailed prompts, letting Fable 5 generate the corresponding HTML page in one go…
Someone has open-sourced an Agent skill library containing 75 skills, compatible with Codex, Claude Code, Cursor, focused on web design, landing pages, animations, and WebGL. A standout feature is converting design screen recordings into detailed prompts, allowing Fable 5 to automatically generate HTML pages. It's free and open-source, you can freely fork and modify.
@0xMulight: The Ultimate Scraping Handbook for Claude Code: 5 Open-Source Skills to Make AI Actually Work on the Web
This article introduces 5 open-source tools (Agent-reach, Scrapling, Browser-use, Claude in Chrome, Web-access) that enable AI agents like Claude Code to perform web scraping, browser operations, etc., covering scenarios from lightweight to heavy-duty, along with configuration tips.
@xiaoerzhan: Replica skill release - I used this skill to 1:1 replicate the currently recognized top-notch frontend website, achieving 100% fidelity. See comments. Here I explain the principles. I. Core understanding: Where is the "true source code" of a website? The key is to distinguish two types of websites— A. Server-side rendered / data-driven sites (Taobao, backend systems, most SaaS…
This article explains how to 1:1 replicate a recognized top-notch frontend website (oryzo), including methods for capturing dynamic assets and modifying a small amount of configuration, achieving high fidelity.
@Saccc_c: If you're not sure what to do with Fable 5, just have it clone a website—preferably one you'd pay for membership. Below is my Notion clone built with Fable 5—I've already replicated about 70% of it, it's amazing.
The user cloned the Notion website using Fable 5, completing about 70% of the project, and pointed out that Fable 5 can be used to clone any website with membership functionality, demonstrating the tool's powerful cloning capabilities.