agentlytics
Comprehensive analytics dashboard for AI coding agents — Cursor, Windsurf, Claude Code, VS Code Copilot, Zed, Antigravi…
Methodology for faithfully cloning any website (static / React / WebGL) — without copying AI-hallucinated code. Real so…
git clone https://github.com/Jane-xiaoer/claude-skill-web-clone.gitJane-xiaoer/claude-skill-web-cloneReproduce any website — from a single-file static page to a WebGL-heavy interactive demo — without faking it from AI hallucinations. 把任何一个网站(从单文件静态页到 WebGL 重前端 demo)忠实复刻出来 —— 不靠 AI 臆测代码硬抄。
English · 中文
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:
wget --mirrorSOURCE / PARTIAL / GUESS evidence gradingmirror-site.mjs full-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"design-dna.json (design tokens + style + effects), then "keep the DNA, swap the content"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.
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
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:
Claude / Codex will load SKILL.md and walk the decision tree.
| 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 |
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.
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.
你看到一个喜欢的网站,想复刻 —— 学它怎么做、改成你自己的版本、或者离线跑起来。AI 工具最爱产出看起来煞有其事的"复刻分析文档",里面的代码块几乎全是臆造的,照抄必崩。
这个 skill 把"真源码至上"做成可重复的流程,6 步决策树覆盖三大分支:
wget --mirrorSOURCE/PARTIAL/GUESS 证据分级mirror-site.mjs 全程滚动捕获 + 镜像每一个部署资产(含运行时 fetch 的 .sog/.buf/.wasm),做真 1:1 忠实复刻——对静态站,"拿到真源码"="镜像部署资产整套"(范例:Lusion oryzo.ai,高斯泼溅,hero 像素 diff 5/5)design-dna.json(设计 token + 风格 + 特效),然后"DNA 留着、内容换掉"任何 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 说:
AI 会自动加载 SKILL.md 走决策树。
references/marbles-case.md 拆解了 chiuhans111/marbles —— 1067 行单文件 WebGL + SVG filter 玻璃弹珠站,真架构对比 AI 分析文档的错误,是"为什么必须真源码核对"的标准教材。
~/projects/website-clones/ 工作流(2026-05-27 marbles 案例跑通后抽出 skill)references/design-dna.md 的三维 DNA JSON 改编自 zanwei/design-dna(MIT),用于"视觉复刻 / 内容爆改"模式references/effect-extraction.md 的证据分级 + baseline-first 闸门受 lixiaolin94/skills · web-shader-extractor 启发(该仓库无 LICENSE,本 skill 只借方法概念、用自己的话重写,未复制其代码或原文)@xiaoerzhan) + Claude Code(多轮 reverse-engineering)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.
如果这个仓库对你有帮助,欢迎关注我。后面我会持续更新更多 AI Skill、设计方法、网站美学和创意工作流。
If this repo helped you, follow me for more AI skills, design systems, web aesthetics, and creative workflows.
中文:欢迎关注我的公众号,一起研究 AI Skill、设计原则、网站表达和创意工作流。
English: Follow my WeChat Official Account for more AI skills, design principles, web aesthetics, and creative workflows.
more like this
Comprehensive analytics dashboard for AI coding agents — Cursor, Windsurf, Claude Code, VS Code Copilot, Zed, Antigravi…
Skill Claude Code de veille tech francophone. Agrège les flux RSS (Journal du Hacker, Human Coders News…) et produit un…
A to-do list that runs your Claude Code agents — capture anywhere, dispatch in parallel, review from your phone.
search projects, people, and tags