explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsdictionaryagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportcontactprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

On this page

  • TL;DR
  • Do I clone the repo or use "Use this template"?
  • What actually happens when you run /clone-website?
  • What stack do you get?
  • Does it work with Cursor (not just Claude Code)?
  • Is cloning websites legal?
  • How is this different from Claude Design or vibe coding?
  • What breaks? (GitHub issues people hit)
  • How much does it cost?
  • When should you use it?
  • After /clone-website: what should you review first?
  • Quick command reference
  • Where this fits the agentic frontend stack
  • Related reading
← Back to blog

explainx / blog

AI Website Cloner: Reverse-Engineer Sites with Claude Code

JCodesMore's ai-website-cloner-template turns any URL into a Next.js 16 codebase via /clone-website — design tokens, parallel git worktrees, visual QA. Setup, legality, Cursor support, and when motion-heavy sites fail.

Jun 27, 2026·9 min read·Yash Thakker
Website ClonerClaude CodeNext.jsAI AgentsReverse EngineeringDeveloper Tools
go deep
AI Website Cloner: Reverse-Engineer Sites with Claude Code
Weekly digest3.5k readers

Catch up on AI

Curated AI updates on agents, skills, and MCP — delivered to your inbox. Unsubscribe anytime.

JCodesMore's ai-website-cloner-template has 21.4k stars and 3.1k forks — one of the fastest-growing agent-skill templates on GitHub. The pitch is simple: point at a URL, run /clone-website, get a Next.js 16 codebase back.

People do not land on that README wondering what Next.js is. They ask:

  • Do I fork the repo or use the template button?
  • Is this legal?
  • Does it work in Cursor, or only Claude Code?
  • How is this different from Claude Design / vibe coding?
  • Why did my clone fail on an animation-heavy site?

This post answers those.

TL;DR

table · 2 cols
QuestionAnswer
What is it?GitHub template → agent skill rebuilds a URL as Next.js 16 + shadcn + Tailwind v4
One command?/clone-website https://example.com (multiple URLs supported)
Best agent?Claude Code + claude --chrome (README recommends Opus 4.7)
Also works inCursor, Copilot, Windsurf, Codex, Gemini CLI, 8+ others
PrerequisitesNode.js 24+, npm install, AI agent with browser access
LicenseMIT — template and output structure; not a license to steal brands
Legal usesSites you own, lost repos, learning — not phishing or ToS violations
Known gapHeavy motion/animation sites can fail (#39)
Latest releasev0.3.1 (Mar 30, 2026) — 5 tagged releases total

Repo: github.com/JCodesMore/ai-website-cloner-template


Do I clone the repo or use "Use this template"?

Use the template button. The README is explicit:

Do not clone this template repository directly for your website project, and do not open pull requests here with your generated website.

Why: /clone-website writes components, assets, and research specs into your project tree. That belongs in your repo — not as a PR to the upstream template.

Steps:

  1. On GitHub → Use this template → Create a new repository
  2. Clone your copy: git clone https://github.com/YOUR-USERNAME/YOUR-REPO.git
  3. npm install
  4. Start agent (Claude Code): claude --chrome
  5. Run: /clone-website https://target-site.com

Optional second URL for multi-page clones:

text
/clone-website https://example.com https://example.com/pricing

What actually happens when you run /clone-website?

The skill is a five-phase pipeline, not a wget mirror:

snippet
Reconnaissance → Foundation → Component Specs → Parallel Build → Assembly & QA
table · 2 cols
PhaseAgent does
ReconnaissanceScreenshots, design tokens, scroll/click/hover/responsive sweep
FoundationFonts, colors, globals, asset downloads to public/
Component specsdocs/research/components/ — exact getComputedStyle() values, states, breakpoints
Parallel buildGit worktrees — one builder agent per section/component
Assembly & QAMerge worktrees, wire page, visual diff vs original

Each builder gets the full spec inline — computed CSS, interaction models, asset paths. The design is measured, not guessed.

Output layout:

snippet
src/app/              # Next.js routes
src/components/       # Rebuilt sections + shadcn/ui
public/images/        # Downloaded assets
docs/research/        # Extraction + specs
docs/design-references/  # Screenshots

This is closer to loop engineering with parallel subagents than a single-shot "rewrite this HTML" prompt.


What stack do you get?

table · 2 cols
LayerChoice
FrameworkNext.js 16 — App Router, React 19, TypeScript strict
UIshadcn/ui — Radix + Tailwind
StylingTailwind CSS v4 — oklch design tokens
IconsLucide default → extracted SVGs during clone
Dev checksnpm run check = lint + typecheck + build
Dockerdocker compose up app --build optional

Node 24+ is enforced via .nvmrc — older Node versions are unsupported.


Does it work with Cursor (not just Claude Code)?

Yes. The template is a multi-platform agent harness:

table · 2 cols
AgentStatus
Claude CodeRecommended — needs browser (claude --chrome)
CursorSupported — reads .cursor/ + AGENTS.md
Copilot, Windsurf, Codex, Gemini CLISupported
Cline, Roo Code, Continue, Amazon Q, Augment, AiderSupported

Source of truth:

table · 3 cols
WhatFileRegenerate with
Project rulesAGENTS.mdbash scripts/sync-agent-rules.sh
/clone-website skill.claude/skills/clone-website/SKILL.mdnode scripts/sync-skills.mjs

Open PR #57 adds CI to verify generated platform files stay in sync — a sign the maintainer expects drift if you edit copies manually.

For Cursor users: treat this like any agent skill repo — open your template copy, ensure the skill is discoverable, run /clone-website from the agent command palette.


Is cloning websites legal?

The repo's Not Intended For list is worth quoting in full because it is the answer most searchers need:

  • Phishing or impersonation — prohibited
  • Passing off someone's design as your own — logos, brand assets, copy belong to owners
  • Violating terms of service — many sites ban scraping/reproduction; check first

Legitimate use cases from the README:

table · 2 cols
Use caseWhen it fits
Platform migrationYou own a WordPress/Webflow site and want Next.js source
Lost source codeSite is live; repo is gone or stack is legacy
LearningDeconstruct how production sites handle layout and responsive behavior

Not legal advice. MIT license on the tool does not grant rights to third-party trademarks, fonts, or copyrighted imagery embedded in a clone. Replace brand assets before shipping.


How is this different from Claude Design or vibe coding?

table · 3 cols
AI Website ClonerClaude Design / vibe coding
InputLive URLPrompt, wireframe, brand brief
OutputMeasured rebuild of existing UINew UI from intent
SpecsgetComputedStyle(), downloaded assetsDESIGN.md tokens, design rationale
QAVisual diff vs originalHuman design review
Best forMigration, repo recovery, pixel-faithful referenceGreenfield products, branded new sites

If you are designing from scratch, building with Claude or a DESIGN.md registry is the better path.

If you already have a production URL and need maintainable React source, the cloner template is the fit.

vs one-click SaaS cloners: Those often dump HTML/CSS blobs. This template produces componentized Next.js with TypeScript, shadcn primitives, and agent-readable spec files you can iterate on.


What breaks? (GitHub issues people hit)

table · 2 cols
IssueReport
#39Sites with too much motion/animation — pipeline "completely fails"
#56Open PR: graceful degradation for motion-heavy sites
#22claude --chrome skill failed to load after npm audit fix
#18Feature request: Playwright MCP as browser backend
#60Docs PR for Playwright MCP alternative to default browser MCP
#25Migration toward agent-browser CLI

Takeaway: Browser backend is still evolving. Simple marketing pages clone more reliably than GSAP-heavy or WebGL experiences. Plan manual polish for motion.

PR backlog: 12 open PRs including dependency bumps (#48 Next.js 16.2.7), devcontainer (#54), and CONTRIBUTING/SECURITY docs.


How much does it cost?

The template is free (MIT). Runtime cost is your AI agent subscription:

  • README recommends Claude Code with Opus 4.7 — Anthropic Max/Pro tier for long /clone-website runs
  • Parallel worktrees mean multiple agent turns — token spend scales with page complexity and section count
  • No paid API inside the template itself beyond what your agent provider charges

Rough expectation: a single landing page is a moderate agent session; a multi-section marketing site is a long-horizon job comparable to other multi-agent coding workflows.


When should you use it?

Good fits:

  • Rebuilding your WordPress/Webflow site on Next.js
  • Recovering source when the agency left and took the repo
  • Learning production patterns by reading generated components + specs
  • Starting a redesign from an approved reference (with rights cleared)

Poor fits:

  • Cloning competitors for launch-day impersonation
  • Sites behind auth paywalls without manual setup
  • Animation-first experiences (see #39)
  • Expecting 100% pixel parity on first run without human QA

After /clone-website: what should you review first?

The skill finishes with a visual diff against the original, but you still own the ship decision. Walk this checklist before deploying:

1. Component specs in docs/research/components/ These files are the contract between recon and build. Spot-check that computed spacing, font sizes, and breakpoint behavior match what you see in the browser. If a hero section spec says padding-top: 96px and the live clone shows 64px, fix the component — do not re-run the whole pipeline.

2. Asset paths under public/ Downloaded images land in public/images/, videos in public/videos/, favicons and OG assets in public/seo/. Broken paths are the most common post-clone bug when the target site used CDN URLs or lazy-loaded media. Run npm run dev and grep the console for 404s.

3. Typography and fonts Foundation phase updates globals and font imports. Verify @font-face or next/font choices against the source site — especially if the original used a commercial font you do not license. Swap to a legal alternative in src/app/layout.tsx before production.

4. Interactive states Recon captures hover, focus, and mobile nav behavior in the spec. Tab through forms and menus manually. Issue #39 shows motion-heavy sites break; even on static pages, dropdowns and accordions sometimes need a human pass.

5. npm run check Lint, TypeScript, and production build must pass before you treat the clone as shippable. The template enforces strict TypeScript — generated components occasionally need type narrowing after merge.

6. Brand and copy Replace logos, trademarked names, and lorem you do not own. The clone is a technical reconstruction, not a license to republish someone else's brand.

For migrations you own, the fastest path is often: run /clone-website, review specs, then prompt the agent to "replace all copy with our new product messaging while keeping layout tokens from docs/research." That uses the measured layout without copying competitor text.

If you use Cursor instead of Claude Code, open your template copy, confirm .cursor/ rules load, and invoke the same /clone-website skill from the command palette. The sync scripts keep Cursor, Copilot, and Windsurf configs aligned with .claude/skills/clone-website/SKILL.md — edit the source skill once, run node scripts/sync-skills.mjs, and every platform gets the update.


Quick command reference

bash
# After creating YOUR repo from template
npm install
npm run dev          # local preview
npm run check        # lint + typecheck + build

# Claude Code (recommended)
claude --chrome
# then in agent:
/clone-website https://yoursite.com

# Docker
docker compose up dev --build   # dev on port 3001

Where this fits the agentic frontend stack

The website cloner sits between design systems for agents and full-stack vibe coding:

  • Agent skills — /clone-website is a packaged skill synced to 12+ platforms
  • DESIGN.md — forward design; cloner is reverse design from live DOM
  • Claude Code commands — slash commands as orchestration entry points
  • OpenMontage — same "agent reads skill + runs pipeline" pattern, different domain (video vs frontend)

Both trending repos show the same 2026 pattern: don't build a SaaS orchestrator — ship a repo your agent already knows how to run.


Related reading

  • Build full-stack websites with Claude
  • DESIGN.md templates for AI agents
  • Top DESIGN.md registries
  • Claude Design overview
  • What are agent skills?
  • Loop engineering with Claude Code

Official: AI Website Cloner Template · CHANGELOG · AGENTS.md


Star counts, issue numbers, and release tags reflect the repository as of June 27, 2026. Browser backends and motion-site handling are actively changing — check open PRs before betting production migrations on a single run.

Spotted something out of date? Let us know.
Yash Thakker

Written by

Yash Thakker

Yash is an AI expert with over 300K learners. Join his workshops →

Related posts

Aug 20, 2026

How to Run Loops in Claude Code Today

A practical cookbook for Claude Code loops: the exact /loop, /goal, and /schedule commands to type for CI, PR babysitting, and test watching — plus the budgets that keep a loop from burning tokens after the session should have stopped.

Jul 22, 2026

Jack Dorsey's Buzz: Team Chat, AI Agents, and Git Hosting in One Nostr-Signed Workspace

Jack Dorsey announced Buzz on July 21, 2026 — a self-hostable, open-source workspace where humans and AI agents share one identity system across chat, Git, and workflows. Every message and code event is a signed Nostr event. Here's what's real, what's early, and why it matters for anyone running Claude Code, Codex, or Goose on a team.

Jul 12, 2026

Claude Code Desktop Browser: Built-In Web Browsing in the App (July 2026)

@ClaudeDevs ships Claude Code desktop browser — read, click, debug URLs sandboxed. Version 1.2581.0 July 10. explainx.ai setup, shortcuts, and developer reactions.