cd /news/ai-tools/ai-website-cloner-template-clone-any… Β· home β€Ί topics β€Ί ai-tools β€Ί article
[ARTICLE Β· art-38899] src=github.com β†— pub= topic=ai-tools verified=true sentiment=Β· neutral

AI-website-cloner-template: Clone any website using AI coding agents

A developer released an open-source template that uses AI coding agents to reverse-engineer any website into a modern Next.js codebase. The tool, recommended for use with Claude Code and Opus 4.7, runs a multi-phase pipeline to extract design tokens, assets, and component specs, then rebuilds the site. It is intended for legitimate purposes such as platform migration or recovering lost source code, not for phishing or impersonation.

read4 min views1 publishedJun 25, 2026
AI-website-cloner-template: Clone any website using AI coding agents
Image: source

A reusable template for reverse-engineering any website into a clean, modern Next.js codebase using AI coding agents.

Recommended: Claude Code with Opus 4.7 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.

Click the image above to watch the full demo on YouTube.

Important:Start by making your own copy with GitHub'sUse this templatebutton. 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 <target-url1> [<target-url2> ...]

Customize(optional) β€” after the base clone is built, modify as needed

Using a different agent? Open

AGENTS.md

for project instructions β€” most agents pick it up automatically.

Agent Status

Recommendedβ€” Opus 4.7Codex CLIOpenCodeGitHub CopilotCursorWindsurfGemini CLIClineRoo CodeContinueAmazon QAugment CodeAiderNode.js24+- An AI coding agent (see Supported Platforms)

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)

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

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 formatLearningβ€” deconstruct how production sites achieve specific layouts, animations, and responsive behavior by working with real code

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.

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)
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
docker compose up app --build # build and run the app
docker compose up dev --build # run the app in dev mode on port 3001

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.

MIT

── more in #ai-tools 4 stories Β· sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/ai-website-cloner-te…] indexed:0 read:4min 2026-06-25 Β· β€”