ai-website-cloner-template README

项目的 README,来自 github.com/JCodesMore/ai-website-cloner-template。合并为一个 markdown 文件:README.md。

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.5. Also supports Codex, Cursor, and OpenCode.

Use this template Discord

Quick Start · Watch Demo · Supported Platforms

MIT License Stars tokens

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


SPONSORED BY

Swiftproxy residential proxies for inspecting websites from 195+ locations
Inspect and compare websites from any region with rotating or static residential IPs in 195+ locations, over HTTP(S) and SOCKS5. Free testing, plus 10% off with code PROXY90. Try Swiftproxy →

Demo

Watch the demo

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

Quick Start

1. Set up your project

Recommended: ask your agent. Paste this into Codex, Claude Code, or your coding agent:

Set up https://github.com/JCodesMore/ai-website-cloner-template
as a standalone project in a new folder on my computer.
Ask me where to put it. Clone the repository, remove its origin remote,
install dependencies, and run npm run check. Leave it ready for me
to clone a website.

Or create your own GitHub repository:

Use this template

Give it a name and click Create repository. Then give your agent the new repository's link and ask it to clone it onto your computer, install dependencies, and run npm run check.

2. Clone a website

Open the project in your agent with browser access enabled. In Claude Code or Cursor, run:

/clone-website https://example.com

Replace the URL with the website you want to recreate. Once it's built, ask your agent for any changes you want.

Supported Platforms

Agent Status
Claude Code Recommended — Opus 5.5
Codex CLI Supported
OpenCode Supported
Cursor Supported

Prerequisites

Tech Stack

How It Works

The /clone-website skill follows four steps:

  1. Map — map source URLs to local routes and preserve existing work.
  2. Observe — inspect desktop/mobile pages, extract real assets and fonts, and exercise alternate states.
  3. Build — implement editable components and working interactions; delegate independent sections when useful.
  4. Compare — review source and local pages at matched sizes/states, repair visible differences, and run the production check.

Framer pages and animated sites have focused inspection guidance for responsive variants, media, sticky scenes, and scroll/time-driven motion. Direct HTTP or asset tools handle extraction where practical; browser comparisons establish appearance and behavior. Deliverables include route mappings, run instructions, comparison screenshots, and any remaining gaps.

Use Cases

Not Intended For

Project Structure

src/
  app/              # Next.js routes
  components/       # React components
    ui/             # shadcn/ui primitives
    sites/<site>/   # Source-specific components and extracted SVGs
  lib/utils.ts      # cn() utility
  types/            # TypeScript interfaces
  hooks/            # Custom React hooks
public/
  sites/<site>/     # Source-specific images, fonts, videos, and other assets
docs/
  research/<site>/  # Page brief, asset map, and inspection evidence
  design-references/ # Screenshots
.agents/skills/
  clone-website/    # Canonical skill and inspection reference
.claude/commands/
  clone-website.md  # Thin Claude Code bridge
AGENTS.md           # Agent instructions (single source of truth)
CLAUDE.md           # Claude Code 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

Agent Support

The project keeps one portable Agent Skill at .agents/skills/clone-website/. Codex, Cursor, and OpenCode read it directly. Claude Code uses the small command bridge at .claude/commands/clone-website.md so /clone-website and its arguments continue to work without exposing a duplicate skill to the other agents.

Star History

Star History Chart

License

MIT

ai-website-cloner-template (JCodesMore/ai-website-cloner-template)

正在搜索数据库…

这是什么?一个 GitHub 模板,让 AI 编程智能体只需拿到网址,就能把任意网站克隆成可运行的 Next.js 项目。
这是一个现成的应用,还是需要我自己运行的起步模板?这是一个 GitHub 模板仓库:点击 'Use this template' 创建你自己的副本,然后通过你的 AI 智能体运行其中附带的技能,就能从中生成一个真正的 Next.js 应用。
我到底要怎么用它克隆一个网站?用模板创建你自己的仓库,在本地打开,运行 npm install,启动你的 AI 智能体(推荐 Claude Code),然后运行 /clone-website 技能,剩下的步骤它会自动完成。
开始之前我需要先安装什么?你需要安装 Node.js 24 或更高版本,以及一款受支持的 AI 编程智能体(Claude Code、Codex CLI、Cursor、Gemini CLI 等众多选择)。
使用时有什么规则需要遵守吗?不要直接在这个模板仓库里为自己的网站开发,也不要在这里提交包含生成克隆内容的拉取请求(PR);项目还明确禁止将其用于钓鱼、冒充,或复制他人的品牌形象。
这东西到底有什么用?面向开发者:需要把旧的 WordPress/Webflow/Squarespace 网站迁移到现代代码,恢复源代码已丢失的网站,或研究线上网站的布局与交互是如何构建的。
我可以在 Windows 上运行吗,还是必须用 Mac?它只依赖 Node.js 加上你所用的 AI 智能体命令行工具,因此在 Windows、macOS 和 Linux 上的运行方式完全相同。
克隆流程到底是怎么运行的?它运行一个多阶段流程:侦察(截图、设计令牌、交互扫描)、基础搭建、详细的组件规格文件、在 git worktree 中并行工作的构建智能体,最后进行组装,并与原网站做视觉差异质量检查。
想要最佳效果,我应该用哪款 AI 智能体?官方明确推荐搭配 Opus 5 使用 Claude Code,但 Codex CLI、Cursor、Gemini CLI、GitHub Copilot、Windsurf、Cline、Roo Code、Continue、Amazon Q 和 Augment Code 也都受支持。
生成的网站使用什么技术栈?克隆输出的是一个 Next.js 16 应用,使用 App Router、React 19、严格模式的 TypeScript、基于 Radix 基础组件的 shadcn/ui,以及使用 oklch 设计令牌的 Tailwind CSS v4。
哪些情况下不应该使用它?它不适用于钓鱼或冒充,不适用于把他人的 logo、品牌资产或文案据为己有,也不适用于抓取服务条款禁止转载的网站。
大小
1.5 MB
星标
39.4K
时长
8个月
提交 · 90 天