What it does
Methodology for faithfully cloning any website (static / React / WebGL) — without copying AI-hallucinated code. Real source first.
- Connects Instruction files the AI reads
- Account or key No key found in README or SKILL.md
- Category Coding
For makers: add a badge to your README
If you made this, paste this code into your README. The badge links back to this page.
[](https://mcp.popnx.com/en/skills/jane-xiaoer-claude-skill-web-clone)Use together with
MCP servers that connect the AI to services for the same work
Fallow
Codebase intelligence for TypeScript and JavaScript, exposed as structured MCP analysis tools.
Desktop Commander
MCP server for terminal commands, file operations, and process management
Similar Skills
Same kind of work, ordered like the Skills list
| This one claude-skill-web-clone | rea | andrej-karpathy-skills | graphify | MoneyPrinterTurbo | |
|---|---|---|---|---|---|
| Maker | Jane-xiaoer | morluto | multica-ai | Graphify-Labs | harry0703 |
| Skills | 1 | 1 | 1 | 1 | 1 |
| GitHub stars | 1,111 | 467,235 | 234,125 | 149,873 | 144,332 |
| Last code change | Jun 30, 2026 | Nov 18, 2026 | Apr 20, 2026 | Nov 18, 2026 | Nov 18, 2026 |
| License | MIT | MIT | – | Apache-2.0 | MIT |
1 skills (instruction sets) by Jane-xiaoer that an AI reads and follows · not an MCP server
How a Skill differs from MCP
MCP = the hands
Connects the AI to an outside service or data, such as reading Notion or creating an invoice. A program or server has to be running.
Skill = the manual
A text file that teaches the AI how to do a task. It connects to nothing.
Some overlap: a few Skills run scripts that call tools, and a few MCP servers only send knowledge. Start from the task you want done.
Works with
Claude CodeCodexCursor
From the maker’s README and the folders in the repo
Install
Is it safe?
- Who made it
GitHub account Jane-xiaoer (person), 2 years old
- Use and upkeep
★ 1,111 stars · code last changed Jun 30, 2026
- Any scripts?
13 scripts that can run on a computer: scripts/asset-harvest.mjs, scripts/audit-clone.mjs, scripts/compare-recon.mjs, scripts/init-clone.mjs and 9 more
- Uses the internet?
Scripts that go online: scripts/sourcemap-hunt.mjs, scripts/asset-harvest.mjs
- Changes machine-wide settings?
No hooks or writes to machine settings found
Checked automatically from the repo files at commit 0269e0e (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
First: which AI do you use?
Pick your app and this page shows only how to install it there
Option 1Upload to claude.ai (web and app)
Uploading to claude.ai would fail: the description is over 200 characters (253). Use "Let the AI install it" instead
Option 1Let Claude Code install it
Copy this sentence and paste it into a Claude Code chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Restart Claude Code, then type /claude-skill-web-clone or ask for a matching task and Claude picks it up
Checked against official docs Nov 12, 2026 · Source: code.claude.com
For Terminal users
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
Copy the skill folder to ~/.claude/skills
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/jane-xiaoer/claude-skill-web-clone.git /tmp/popnx-skill-jane-xiaoer-claude-skill-web-clone-0269e0e && mkdir -p ~/.claude/skills && cp -R '/tmp/popnx-skill-jane-xiaoer-claude-skill-web-clone-0269e0e/.' ~/.claude/skills/claude-skill-web-cloneRestart Claude Code, then type /claude-skill-web-clone or ask for a matching task and Claude picks it up
ChatGPT desktop app
The ChatGPT desktop app has Codex built in, and Codex reads skills from ~/.agents/skills
Option 1Let ChatGPT install it
Open Codex in the ChatGPT desktop app and paste this sentence into the chat
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Option 2Put the folder there yourself
Put the web-clone folder at ~/.agents/skills/web-clone
~ is your home folder ($HOME)
For Terminal users
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
Copy the skill folder to ~/.agents/skills
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/jane-xiaoer/claude-skill-web-clone.git /tmp/popnx-skill-jane-xiaoer-claude-skill-web-clone-0269e0e && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-jane-xiaoer-claude-skill-web-clone-0269e0e/.' ~/.agents/skills/claude-skill-web-clone
After installing
- ChatGPT desktop app: open Skills in the sidebar to see that the skill is there
- To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
- Codex picks up newly installed skills by itself; if one does not show up, restart Codex
Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com
ChatGPT on the web and mobile
Skills you install yourself do not work here; only skills that come with a plugin from the directory
To use this skill with ChatGPT, use the ChatGPT desktop app as above
Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com
Option 1Let Codex install it
Copy this sentence and paste it into a Codex chat · Works in Codex inside the ChatGPT desktop app, Codex CLI and the IDE extension
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex picks up newly installed skills by itself; if one does not show up, restart Codex · To use it: in ChatGPT type @ and pick the skill · in Codex CLI or the IDE extension run /skills or type $ and the skill name
Checked against official docs Nov 15, 2026 · Source: learn.chatgpt.com
For Terminal users
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
Copy the skill folder to ~/.agents/skills
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/jane-xiaoer/claude-skill-web-clone.git /tmp/popnx-skill-jane-xiaoer-claude-skill-web-clone-0269e0e && mkdir -p ~/.agents/skills && cp -R '/tmp/popnx-skill-jane-xiaoer-claude-skill-web-clone-0269e0e/.' ~/.agents/skills/claude-skill-web-cloneRestart Codex, then ask for a matching task; Codex lists the skill
Option 1Let Cursor install it
Copy this sentence and paste it into a Cursor chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
In Cursor’s Agent chat, type / and pick claude-skill-web-clone
Checked against official docs Nov 12, 2026 · Source: cursor.com
For Terminal users
A Skill is instructions the AI will follow. Read the files before installing, and install only from makers you trust.
Open Terminal
Mac: press Command+Space and type Terminal · Windows: the command below does not work in PowerShell; use “Let AI install it” above instead
Copy the skill folder to ~/.cursor/skills
This downloads the repo to a temporary folder and copies only the folders that contain a SKILL.md
git clone --depth 1 https://github.com/jane-xiaoer/claude-skill-web-clone.git /tmp/popnx-skill-jane-xiaoer-claude-skill-web-clone-0269e0e && mkdir -p ~/.cursor/skills && cp -R '/tmp/popnx-skill-jane-xiaoer-claude-skill-web-clone-0269e0e/.' ~/.cursor/skills/claude-skill-web-cloneIn Cursor’s Agent chat, type / and pick claude-skill-web-clone
Option 1Let the AI install it
For other apps that read skills. The sentence gives the paths for Claude Code, Codex and Cursor so the AI picks the one for your app · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs Nov 12, 2026 · Source: code.claude.com, learn.chatgpt.com, cursor.com
For Terminal users
Other apps that support Agent Skills (such as Gemini CLI or GitHub Copilot) use different folders. Check that app’s guide, then copy the folder with the SKILL.md there.
Skill folders checked against the official Claude Code, Codex and Cursor guides on Nov 11, 2026
✓ Commands checked Nov 18, 2026
View the original SKILL.md
The text below comes from the maker’s repo, not from PopNx MCP
Showing the first 8,000 characters · Open the full file on GitHub
---
name: web-clone
description: >
网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、
照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、
复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 →
搭工程 → 替换内容」的可移植决策树,覆盖静态站 / React-Vue-Next 内容站 /
WebGL-Canvas 重前端站三大分支,并强制核对任何 AI 二手分析里的可执行代码。
metadata:
author: jane (xiaoer)
version: "1.6.0"
use_case: 个人本地复刻/学习网站,沉淀自 website-clones 克隆中枢
---
# Web Clone · 网站复刻方法论
把"复刻一个网站"做成可重复的流程。配套工程区:`~/projects/website-clones/`(每个复刻是一个子目录)。
## 头号铁律:真源码至上,绝不信 AI 推测的代码
> 任何 AI 生成的"复刻分析/施工图",**正文的概念骨架可以参考,但里面的可执行代码块默认全是臆造的**,必须逐行用真源码核对,否则照抄必崩。
**实证(marbles 案例)**:一份 AI 分析文档把原站"解析法求光线-球体交点 + 把光学结果编码成位移图、交给 SVG `feDisplacementMap` 去扭曲真实 DOM"的真架构,臆造成了"ray-marching + SDF + 把 DOM 当纹理采样"——两套完全不同的实现,照抄做不出原效果且慢 N 倍。详见 `references/marbles-case.md`。
所以第一动作永远是:**拿到真源码**。
## 决策树(按顺序走,不许跳)
### Step 0 · 先建标准工程骨架
```bash
node /Users/jane/.shared-skills/web-clone/scripts/init-clone.mjs <站名> --url <原站URL>
```
该脚本会创建 `~/projects/website-clones/<站名>-clone/`、`NOTES.md`、`RECON/screenshots/`,避免每次手工漏掉产物。
### Step 1 · 先去 GitHub 搜源码,别急着抓站
```bash
unset SSL_CERT_FILE # macOS 怪癖,bash 前先解
# 按站名/产品名搜
SSL_CERT_FILE=/etc/ssl/cert.pem gh api "search/repositories?q=<关键词>" \
| jq -r '.items[] | "\(.full_name) ⭐\(.stargazers_count) \(.description)"' | head -10
# vercel.app/netlify.app/github.io 的 URL slug 常常就是 仓库名 / 部署者用户名
```
- 单文件站(github.io / 纯 HTML)→ 直接抓 raw:`curl -sL https://raw.githubusercontent.com/<user>/<repo>/main/index.html`
- **找到源码且许可允许 → 跳 Step 4 直接 clone。** 教训:先搜 GitHub 能省 30 分钟弯路。
### Step 2 · 没找到源码 → 浏览器侦察(探针)
加载 `Browser` skill 或 playwright MCP,跑探针抽信号(框架 / `window.THREE` / canvas 数 / 平滑滚动库 / 字体 / scrollHeight)。截图 1440/768/390 三档 + 侦察 JSON 存 `<站>/RECON/`。
优先用内置脚本跑标准侦察:
```bash
node /Users/jane/.shared-skills/web-clone/scripts/recon-site.mjs \
--url <原站URL> \
--out ~/projects/website-clones/<站名>-clone/RECON \
--label original
node /Users/jane/.shared-skills/web-clone/scripts/asset-harvest.mjs \
--recon ~/projects/website-clones/<站名>-clone/RECON/original-recon.json \
--out ~/projects/website-clones/<站名>-clone/assets/original \
--manifest ~/projects/website-clones/<站名>-clone/RECON/asset-manifest.json
node /Users/jane/.shared-skills/web-clone/scripts/network-capture.mjs \
--url <原站URL> \
--out ~/projects/website-clones/<站名>-clone/RECON/network \
--label original
node /Users/jane/.shared-skills/web-clone/scripts/route-crawl.mjs \
--url <原站URL> \
--out ~/projects/website-clones/<站名>-clone/RECON/routes \
--label original \
--max-pages 25 \
--max-depth 2
node /Users/jane/.shared-skills/web-clone/scripts/interaction-probe.mjs \
--url <原站URL> \
--out ~/projects/website-clones/<站名>-clone/RECON/interactions \
--label original
node /Users/jane/.shared-skills/web-clone/scripts/sourcemap-hunt.mjs \
--recon ~/projects/website-clones/<站名>-clone/RECON/original-recon.json \
--out ~/projects/website-clones/<站名>-clone/RECON/sourcemaps
```
> 登录态私域站才用 `bb-browser`;localhost / 无登录公开站用 `Browser` skill 或 playwright(别动 bb-browser,会抢 Brave)。
### Step 2.5 · 先给复杂度定级,别盲目承诺
根据侦察结果先写一版"复刻前预判":复杂度 L1-L6、推荐模式(忠实复刻 / 视觉复刻 / 内容爆改)、预计可还原范围、明确不克隆的部分。分级和评分规则见 `references/assessment.md`。
**若模式是「视觉复刻」或「内容爆改」** → 顺手产出结构化设计身份 `design-dna.json`,把"那个站的感觉"变成可版本化、可对照的 token 规范,让 Step 6 替换时"DNA 留着、内容换掉"有据可依:
```bash
node /Users/jane/.shared-skills/web-clone/scripts/dna-scaffold.mjs \
--recon ~/projects/website-clones/<站名>-clone/RECON/original-recon.json \
--out ~/projects/website-clones/<站名>-clone/RECON/design-dna.json \
--name "<站名>"
```
脚本会把侦察到的字体/色候选/框架特效信号 best-effort 预填,其余字段人工 Analyze 补全。三维结构(design_system / design_style / visual_effects)、完整 schema、适用边界见 `references/design-dna.md`。
> ⚠️ **「忠实复刻」分支不要用 DNA**:真源码就是真相,别让"近似风格"的 DNA 稀释逐字节铁律。
### Step 3 · 按侦察结果选路径
| 侦察结果 | 走哪条路 |
|---|---|
| 静态 HTML/CSS,无框架 | `wget --mirror` 抓镜像 → 删追踪脚本 → 改文案 |
| React / Vue / Next(内容为主) | 重建模板(如 `ai-website-cloner-template`,Node 24+),灌内容 |
| SPA / SaaS / 数据驱动页面 | 先跑 `network-capture.mjs` 保存 API fixtures → 本地 JSON/mock server 替身 |
| 多页面官网 / 产品站 | 先跑 `route-crawl.mjs` 做路由地图 → 每类页面抽模板 → 统一替换内容 |
| 复杂交互站 | 先跑 `interaction-probe.mjs` 记录 hover/click/scroll/canvas drag 状态 → 按状态补交互,不许只截首屏 |
| **WebGL / Canvas / Three.js 重前端** | **深度逆向真源码(见下)→ 忠实复刻 或 找同类开源 3D 模板换内容**。单文件原生站常常逐字节保留=最忠实复刻。**找不到真源码时走运行时帧捕获 + baseline 闸门**,纪律见 `references/effect-extraction.md`(可委托 web-shader-extractor) |
| **静态构建站(Astro/Vite SSG/Hugo),含重 WebGL** | **`mirror-site.mjs` 全量镜像部署资产 → 自托管字体 + 删追踪 → 本地 web 根服务 = 真源码 1:1 忠实复刻**。对静态站,"拿到真源码"="镜像部署资产整套"。配方见 `references/static-mirror.md`。范例:oryzo.ai(Lusion,L6,高斯泼溅,hero 像素 diff 5/5) |
| 用现成开源主题的站(Astro/Hugo 主题) | 去对应主题市场找源主题(**仅限套用现成主题的站**;定制站走上一行的全量镜像,别来这行) |
L4-L6 复杂站按 `references/complex-playbooks.md` 走,不要只用普通官网流程。
### Step 4 · 在克隆中枢里搭工程
```bash
mkdir ~/projects/website-clones/<站名>-clone && cd $_
# git 源码:clone 进来;单文件:放进来。原始源码留一份只读基准 index-original.html
# 检查 Node 版本(package.json engines),nvm use 对应版本,钉 .nvmrc
```
### Step 5 · 删追踪 + 写元信息 + 验证
- **删追踪**:Google Analytics(`gtag` / `googletagmanager`)、像素、热图——逐行精确切除(GA 块常在 `<head>` 顶部)。
- **写 NOTES.md**(必须):包含复杂度、复刻模式、原站 vs 克隆站对比、保真度评分、已知缺口。模板见 `references/deliverables.md`。
- **复杂站写 TEARDOWN.md**(技术拆解)。所有结论标真源码行号。
- **复刻后评分**:按 `references/assessment.md` 给结构 / 视觉 / 交互 / 响应式 / 内容替换 / 功能完整度打分。分数要能被截图、源码、运行结果支撑。
- **浏览器真验证**(硬要求,不许只看代码就说"应该能跑"):起本地服务器 → 浏览器打开 → 抓 console(不能有 JS/WebGL 编译错误)→ 截图对照原站。诚实记录验证不了的部分(如合成 PointerEvent `isTrusted=false` 触发不了拖拽,要如实写,别伪造"拖动成功")。
复刻完成后再跑一次克隆站侦察,并生成自动对比报告:
```bash
node /Users/jane/.shared-skills/web-clone/scripts/recon-site.mjs \
--url http://127.0.0.1:<端口>/ \
--out ~/projects/website-clones/<站名>-clone/RECON \
--label clone
node /Users/jane/.shared-skills/web-clone/scripts/route-crawl.mjs \
--url http://127.0.0.1:<端口>/ \
--out ~/projects/website-clones/<站名>-clone/RECON/routes-clone \
--label clone \
--max-pages 25 \
--max-depth 2
node /Users/jane/.shared-skills/web-clone/scripts/interaction-probe.mjs \
--url http://127.0.0.1:<端口>/ \
--out ~/projects/website-clones/<站名>-clone/RECON/interactions-clone \
--label clone
node /Users/jane/.shared-skills/web-clone/scripts/compare-recon.mjs \
--original ~/projects/website-clones/<站名>-clone/RECON/original-recon.json \
--clone ~/projects/website-clones/<站名>-clone/RECON/clone-recon.json \
--visual-diff ~/projects/website-clones/<站名>-clone/RECON/visual-diff-1440.json \
--original-routes ~/projects/website-clones/<站名>-clone/RECON/routes/original-route-map.json \
--clone-routes ~/projects/website-clones/<站名>-clone/RECON/routes-clone/clone-route-map.json \
--original-interactions ~/projects/website-clones/<站名>-clone/RECON/interactions/original-interactions.json \
--clone-interactions ~/projects/website-clones/<站名>-clone/RECON/interactions-clone/clone-interactions.json \
--out ~/projects/website-clones/<站名>-clone/CLONE_REPORT.md
node /Users/jane/.shared-skills/web-clone/scripts/visual-diff.mjs \
--original ~/projects/website-clones/<站名>-clone/RECON/screenshots/original-1440.png \
--clone ~/projects/website-clones/<站名>-clone/RECON/screenshots/clone-1440.png \
--out ~/projects/website-clones/<站名>-clone/RECON/visual-diff-1440.json \
--diff ~/projects/website-clones/<站名>-clone/RECON/screenshots/visual-diff-1440.png
node /Users/jane/.shared-skills/web-clone/scripts/audit-clone.mjs \
--project ~/projects/website-clones/<站名>-clone \
--brand "<原站品牌名>" \
--out ~/projects/website-clones/<站名>-clone/CLONE_AUDIT.md
```
### Step 6 · 替换成 Jane 自己的东西
目标永远是"做她自己的站",不是搬一个一模一样的。替换三件套:文字(`index.html`/`data/*.json`/`content/*.md`)、媒体(`public`/`assets`)、品牌色(CSS 变量 / Tailwind theme)。结构非平凡就写 REPLACE_GUIDE.md。
**做过 `design-dna.json`(视觉/爆改模式)的**:这一步就是它的兑现——**DNA 留着、内容换掉**。把 `design_system` 落成 CSS 自定义属性、按 `design_style` 做主观取舍、按 `visual_effects.effect_intensity` 选实现层级(lightweight CSS / medium Canvas+GSAP / heavy Three.js);素材优先用 `asset-harvest.mjs` 取原站真图,别 AI 重绘近似。生成流程见 `references/design-dna.md`。
## 逆向拆解 WebGL/Canvas 重前端(核心手艺)
把交互站拆成**技术支柱**,逐柱定位真实实Discussion
Ask, share a tip or report that it does not work. Sorted by what people marked helpful.
No posts yet. Be the first to ask or share.
Posts here are written by users, not the PopNx team.
From GitHub
- GitHub stars
- 1,111
- Maker
- Jane-xiaoer
- License
- MIT
- Last code change
- Jun 30, 2026
- SKILL.md files in the repo (including translated copies and templates)
- 1
- Topics
- claude-code, claude-code-skill, methodology, reverse-engineering, skill, web-cloning, webgl