Sandbox
@JCodesMore/ai-website-cloner-template

Website cloning skill pack for AI coding agents

This repo packages a website-cloning workflow for terminal agents and editors. It guides an agent through reconnaissance, foundation setup, component specs, parallel build, and visual QA so you can turn a live site into a clean Next.js app.

34,179 stars5k forksJavaScriptUpdated 1mo ago
Claude Code website cloner demo
J Codes24k views • 5 months ago
Who it's for

Builders who want their agent to recreate a website from a URL and keep the result in a Next.js codebase.

What it delivers

You can turn a target website into a structured app without manually rebuilding each section from scratch.

What it does

Clone workflow command

Provides a `/clone-website` skill that takes one or more target URLs and runs the cloning process.

Multi-phase build pipeline

Breaks the job into reconnaissance, foundation, component specs, parallel build, and assembly with QA.

Platform support files

Ships agent instructions and skill copies for Claude Code, Codex, Cursor, Gemini CLI, Copilot, Windsurf, and others.

Research and spec output

Writes detailed component specs into `docs/research/components/` with CSS values, states, behavior, and content.

Shared sync scripts

Uses `scripts/sync-agent-rules.sh` and `scripts/sync-skills.mjs` to keep agent files aligned across platforms.

How to get it

  1. 1If 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
  2. 2Install dependencies
    npm install
  3. 3Start your AI agent — Claude Code recommended
    claude --chrome
  4. 4Run the skill
    /clone-website <target-url1> [<target-url2> ...]

README

AI Website Cloner Template

Clone any website with one command

Give your AI coding agent a URL and watch it recreate the website as a clean Next.js app.

Best results with Claude Code + Opus 5. Works with Codex, Cursor, Gemini, and more.

Use this template Discord

Quick Start · Watch Demo · Supported Platforms

MIT License Stars tokens

JCodesMore%2Fai-website-cloner-template | Trendshift Star History Global RankStar History Global Rank


SPONSORED BY

RapidProxy residential proxy service
Power your scraping and automation with 90M+ residential IPs, 500MB free traffic, and non-expiring bandwidth. Explore RapidProxy →

Atlas CloudAtlas Cloud
Generate AI images, video, audio, and 3D assets through one API. Explore Atlas Cloud →

Demo

Watch the demo

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.

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

  2. 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
    
  3. Install dependencies

    npm install
    
  4. Start your AI agent — Claude Code recommended:

    claude --chrome
    
  5. Run the skill:

    /clone-website <target-url1> [<target-url2> ...]
    
  6. Customize (optional) — after the base clone is built, modify as needed

Most supported clients expose /clone-website directly. If your client activates skills from natural-language requests, enter Clone <target-url> using the clone-website workflow. Project instructions are in AGENTS.md.

Supported Platforms

AgentStatus
Claude CodeRecommended — Opus 5
Codex CLISupported
OpenCodeSupported
GitHub CopilotSupported
KiroSupported
CursorSupported
WindsurfSupported
Gemini CLISupported
ClineSupported
Roo CodeSupported
ContinueSupported
Amazon QSupported
Augment CodeSupported

Prerequisites

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:

flowchart LR
    P1["1. Reconnaissance"] --> P2["2. Foundation"]
    P2 --> P3["3. Component Specs"]
    P3 --> P4["4. Parallel Build"]
    P4 --> P5["5. Assembly and QA"]
  1. Reconnaissance — screenshots, design token extraction, interaction sweep (scroll, click, hover, responsive)
  2. Foundation — updates fonts, colors, globals, downloads all assets
  3. Component Specs — writes detailed spec files (docs/research/components/) with exact computed CSS values, states, behaviors, and content
  4. Parallel Build — dispatches builder agents in git worktrees, one per section/component
  5. 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
.kiro/skills/          # Generated Kiro workspace skill
.cline/skills/         # Generated Cline workspace skill
.roo/skills/           # Generated Roo Code workspace skill
.roo/commands/         # Generated Roo Code slash command
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:

WhatSource of truthSync command
Project instructionsAGENTS.mdbash scripts/sync-agent-rules.sh
/clone-website skill.claude/skills/clone-website/SKILL.mdnode 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

License

MIT

Translations: 日本語 · Simplified Chinese

Files in the repo

Repository payload44 top-level entries
  • .amazonq
  • .augment
  • .claude
  • .cline
  • .codex
  • .continue
  • .cursor
  • .gemini
  • .github
  • .kiro
  • .opencode
  • .roo
  • .windsurf
  • docs
  • public
  • scripts
  • src
  • .aider.conf.yml
  • .clinerules
  • .dockerignore
  • .gitattributes
  • .gitignore
  • .nvmrc
  • .windsurfrules
  • AGENTS.md
  • CHANGELOG.md
  • CLAUDE.md
  • components.json
  • CONTRIBUTING.md
  • docker-compose.yml
  • Dockerfile
  • Dockerfile.dev
  • eslint.config.mjs
  • GEMINI.md
  • LICENSE
  • next.config.ts
  • package-lock.json
  • package.json
  • postcss.config.mjs
  • README.ja.md
  • README.md
  • README.zh-CN.md
  • SECURITY.md
  • tsconfig.json

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k