
Web Clone
Skill复刻网站的流程方法:先找真实源码,找不到再用浏览器侦察,按静态站、React/Vue/Next 内容站、WebGL/Canvas/Three.js 重前端站选择复刻路径,删除追踪脚本、核对开源许可,在浏览器里验证并与原站对比,最后换成自己的内容。中文技能,脚本路径与工程目录写死为作者本机环境,需自行调整。
🪞 Web Clone · 网站复刻方法论
Reproduce any website — from a single-file static page to a WebGL-heavy interactive demo — without faking it from AI hallucinations. 把任何一个网站(从单文件静态页到 WebGL 重前端 demo)忠实复刻出来 —— 不靠 AI 臆测代码硬抄。
English · 中文
What this skill does
You see a website you love. You want to clone it — to learn how it works, to remix it into your own thing, or to run it offline. AI tools love to produce plausible-looking "clone analysis" documents full of code blocks that are entirely fabricated and break the moment you run them.
This skill is a methodology plus executable probes that put real source first, with a 6-step decision tree covering:
- Static HTML/CSS sites →
wget --mirror - React / Vue / Next content sites → rebuild on a template
- Multi-page sites → crawl internal routes before designing templates
- Interactive sites → record hover / click / scroll / canvas-drag states before cloning
- WebGL / Canvas / Three.js heavy frontends → reverse-engineer real source, line by line; when there's no findable source, runtime frame-capture + a baseline-first replay gate with
SOURCE / PARTIAL / GUESSevidence grading - Static-built sites (Astro / Vite SSG / Hugo), even WebGL-heavy →
mirror-site.mjsfull-scroll-captures and mirrors every deployed asset (incl. runtime-fetched.sog/.buf/.wasm) for a true 1:1 clone — for a static site, "get the real source" = "mirror the whole deployed bundle" - Verify in a real browser, document the truth, replace content with yours
- Visual / rebrand modes → distill a versionable
design-dna.json(design tokens + style + effects), then "keep the DNA, swap the content"
Iron rule: real source first, never copy AI-guessed code
Any AI-written "clone analysis" — treat the conceptual skeleton as a hint, but assume every executable code block is hallucinated until you've verified it against real source code line by line.
Case in point (see references/marbles-case.md): A real WebGL marbles demo uses analytic ray-sphere intersection + an SVG feDisplacementMap to refract the live DOM. An AI analysis confidently described it as ray-marching + SDF + sampling the DOM as a texture — two entirely different implementations. Copying the AI version produces nothing like the original and runs many times slower.
So step 1 is always: get the real source.
What's in here
claude-skill-web-clone/
├── SKILL.md ← The methodology (loaded by Claude Code / Codex / Cursor)
├── README.md
├── LICENSE ← MIT
├── follow-wechat-qrcode.jpg
└── references/
├── reverse-engineering.md ← How to dissect a WebGL/Canvas frontend, line by line
├── effect-extraction.md ← Evidence grading + baseline-first gate for extracting effects
├── static-mirror.md ← 1:1 clone of static-built sites (Astro/Vite SSG/Hugo) via full asset mirror
├── design-dna.md ← Structured design-identity layer (visual / rebrand modes)
├── marbles-case.md ← Flagship case: real architecture vs AI hallucination
└── deliverables.md ← NOTES.md / TEARDOWN.md / RECON/ templates
└── scripts/
├── recon-site.mjs ← Browser screenshots + DOM/framework/resource signals
├── mirror-site.mjs ← Full-scroll capture + mirror every same-origin asset (static-site 1:1 clone)
├── route-crawl.mjs ← Same-site route map + screenshot per route
├── interaction-probe.mjs ← Scroll/hover/click/canvas-drag state evidence
├── network-capture.mjs ← XHR/fetch capture for SPA fixtures
├── asset-harvest.mjs ← Download discovered source assets
├── dna-scaffold.mjs ← Build a design-dna.json skeleton, prefilled from recon
└── visual-diff.mjs ← Pixel comparison for original vs clone screenshots
Install
This is a Claude Code skill. Drop it into your skills directory:
git clone https://github.com/Jane-xiaoer/claude-skill-web-clone.git ~/.claude/skills/web-clone
Then use it by saying things like:
- "复刻这个网站: https://..."
- "Clone this site for me"
- "Reverse-engineer this WebGL demo"
- "把这个站抄下来改成我的"
Claude / Codex will load SKILL.md and walk the decision tree.
The decision tree (one-screen summary)
| Step | What to do |
|---|---|
| 1 | gh api search/repositories?q=<name> — find the real source on GitHub FIRST |
| 2 | If no source: browser-probe the site, crawl routes, capture network, and probe interactions |
| 3 | Pick the path: wget mirror / template rebuild / WebGL reverse-engineering / theme market |
| 4 | Set up ~/projects/website-clones/<name>-clone/ (or your equivalent), keep index-original.html read-only |
| 5 | Strip tracking, write NOTES.md + TEARDOWN.md, verify in a real browser with screenshots |
| 6 | Replace text / media / brand colors with yours |
License & attribution discipline
Before deploying anything publicly, check the source repo's license:
| License | What you can do |
|---|---|
| MIT / Apache / BSD / Unlicense | Modify, redeploy, just keep credits |
| NONE / unstated | Default = All Rights Reserved. Local learning only, must credit, do not redeploy publicly without permission |
| Proprietary / explicitly forbidden | Read-only learning, no copying, no deployment |
⚠️ "Code is on GitHub" ≠ "code is MIT". Many viral demos have no LICENSE file and default to All Rights Reserved.
Flagship case
marbles-case.md documents the full reverse-engineering of chiuhans111/marbles — a 1067-line single-file WebGL + SVG-filter glass marbles interactive demo — and contrasts the real architecture with an AI-generated clone analysis that got the core mechanism completely backwards. This is the canonical example of why you must verify against real source.
中文
这个 skill 是干什么的
你看到一个喜欢的网站,想复刻 —— 学它怎么做、改成你自己的版本、或者离线跑起来。AI 工具最爱产出看起来煞有其事的"复刻分析文档",里面的代码块几乎全是臆造的,照抄必崩。
这个 skill 把"真源码至上"做成可重复的流程,6 步决策树覆盖三大分支:
- 静态 HTML/CSS 站 →
wget --mirror - React / Vue / Next 内容站 → 重建模板灌内容
- WebGL / Canvas / Three.js 重前端 → 逆向真源码,逐行核对;找不到源码时用运行时帧捕获 + baseline-first 复现闸门 +
SOURCE/PARTIAL/GUESS证据分级 - 静态构建站(Astro/Vite SSG/Hugo),哪怕重 WebGL →
mirror-site.mjs全程滚动捕获 + 镜像每一个部署资产(含运行时 fetch 的.sog/.buf/.wasm),做真 1:1 忠实复刻——对静态站,"拿到真源码"="镜像部署资产整套"(范例:Lusion oryzo.ai,高斯泼溅,hero 像素 diff 5/5) - 视觉复刻 / 内容爆改模式 → 把"那个站的感觉"蒸馏成可版本化的
design-dna.json(设计 token + 风格 + 特效),然后"DNA 留着、内容换掉" - 浏览器真验证,如实记录,最后替换成你自己的内容
头号铁律:真源码至上,绝不抄 AI 臆造代码
任何 AI 写的"复刻分析",概念骨架可以参考,但里面的可执行代码块默认全是臆造的,必须用真源码核对,否则照抄必崩。
实证案例:一份 AI 分析文档把原站"解析法求光线-球体交点 + 把光学结果编码成位移图 + 交给 SVG feDisplacementMap 扭曲真实 DOM"的真架构,臆造成了"ray-marching + SDF + 把 DOM 当纹理采样"—— 两套完全不同的实现,照抄做不出原效果且慢 N 倍。详见 references/marbles-case.md。
安装
这是一个 Claude Code skill。clone 到你的 skills 目录:
git clone https://github.com/Jane-xiaoer/claude-skill-web-clone.git ~/.claude/skills/web-clone
然后跟 Claude / Codex / Cursor 说:
- 「复刻这个网站: https://...」
- 「把这个站抄下来改成我的」
- 「逆向拆解这个 WebGL demo」
AI 会自动加载 SKILL.md 走决策树。
旗舰范例
references/marbles-case.md 拆解了 chiuhans111/marbles —— 1067 行单文件 WebGL + SVG filter 玻璃弹珠站,真架构对比 AI 分析文档的错误,是"为什么必须真源码核对"的标准教材。
致谢 / Credits
- 方法论沉淀来源 / Origin:Jane 的克隆中枢
~/projects/website-clones/工作流(2026-05-27 marbles 案例跑通后抽出 skill) - 旗舰范例原作 / Flagship case author:chiuhans111/marbles by Hans Chiu — 没有这份单文件 1067 行的玻璃弹珠源码就没有这个 skill 的"真源码至上"铁律
- 设计身份层 schema / Design-DNA schema:
references/design-dna.md的三维 DNA JSON 改编自 zanwei/design-dna(MIT),用于"视觉复刻 / 内容爆改"模式 - 特效提取纪律 / Effect-extraction discipline:
references/effect-extraction.md的证据分级 + baseline-first 闸门受 lixiaolin94/skills · web-shader-extractor 启发(该仓库无 LICENSE,本 skill 只借方法概念、用自己的话重写,未复制其代码或原文) - 迭代打磨 / Iteration:Jane(
@xiaoerzhan) + Claude Code(多轮 reverse-engineering)
License
MIT. Use it freely, remix it, ship it. Attribution welcome but not required.
如果这个 skill 让你免于在 AI 臆造代码上浪费一个下午,欢迎 ⭐ 这个仓库。 If this skill saves you a frustrating afternoon of debugging fake AI code, ⭐ the repo.
📱 关注作者 / Follow Me
如果这个仓库对你有帮助,欢迎关注我。后面我会持续更新更多 AI Skill、设计方法、网站美学和创意工作流。
If this repo helped you, follow me for more AI skills, design systems, web aesthetics, and creative workflows.
- X (Twitter): @xiaoerzhan
- 微信公众号 / WeChat Official Account: 扫码关注 / Scan to follow
中文:欢迎关注我的公众号,一起研究 AI Skill、设计原则、网站表达和创意工作流。
English: Follow my WeChat Official Account for more AI skills, design principles, web aesthetics, and creative workflows.
相关资源

Game Studio
SkillOpenAI 官方浏览器游戏技能组:先规划核心玩法与技术选型,再分流到 Phaser 2D、Three.js 或 React Three Fiber 3D 实现,另含 HUD 与菜单界面、精灵动画与 GLB 资产管线,以及浏览器试玩测试。
openai/plugins7.8k
Three.js
Skill用 Three.js 构建或调试网页 3D 场景:场景、相机、渲染器、光照与材质,GLTF 加载与控制器,以及限制设备像素比、处理窗口缩放、释放 WebGL 资源等性能要点,减少动态效果时只渲染静帧。
MengTo/Skills7.3k
WebGL Landing Steering
Skill在制作以 WebGL 为主视觉的落地页前先定方向:按品牌调性与页面类型在四种视觉路线中选一种,过信息、性能、无障碍、稳定性四道关,先做静态降级再增强,输出推荐路线、视觉规格、技术栈与构建顺序。
MengTo/Skills7.3k
Three.js Loaders
SkillThree.js 资源加载参考:用 GLTFLoader 加载模型,加载纹理、图片与 HDR 环境贴图,用 LoadingManager 统一管理多个加载器并显示进度,以及异步加载的写法,附代码示例。
CloudAI-X/threejs-skills4.1k
Three.js Post-Processing
SkillThree.js 后期处理参考:用 EffectComposer 串联渲染通道,加入泛光、景深、调色、模糊与辉光等屏幕效果,以及编写自定义的屏幕空间着色器,附代码示例。
CloudAI-X/threejs-skills4.1k
Three.js Shaders
SkillThree.js 着色器参考:用 GLSL 编写顶点与片元着色器,ShaderMaterial 与 RawShaderMaterial 的区别,uniform 传参与随时间更新,以及扩展内置材质做自定义视觉效果,附代码示例。
CloudAI-X/threejs-skills4.1k