Individual skill
web-clone
网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 / React-Vue-Next 内容站 / WebGL-Canvas 重前端站三大分支,并强制核对任何 AI 二手分析里的可执行代码。
packages/vscode/assets/open-design/skills/web-clone/SKILL.md
Source commit 400641fd6781fa0febad445984ee76440374736d
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 4, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 1,040
- Repository last updated
- Nov 7, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- claude-code Repository topic
- codex Repository topic
- cursor Repository topic
- dashboard Repository topic
- design Repository topic
- design-systems Repository topic
- design-tokens Repository topic
- figma Repository topic
- github-copilot Repository topic
- mcp Repository topic
- engineering Derived category
- engineering-web Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytesSKILL.mdcore · 21,271 bytes
Read excerpt
# Web Clone · 网站复刻方法论
把"复刻一个网站"做成可重复的流程。在 OpenDesign 中,默认在当前项目目录工作:`NOTES.md`、`RECON/`、`CLONE_REPORT.md`、`CLONE_AUDIT.md` 和最终可预览的 `index.html` 都应写在当前项目内,除非用户明确指定外部工作目录。
**OpenDesign 环境准备(跑任何 `scripts/` 前先看)**:
- 本 skill 的脚本会被 stage 到项目内 `.od-skills/<插件目录>/scripts/`(skill 前言里有确切路径)。文中命令写的 `node scripts/xxx.mjs` 按该路径解析,例如 `node .od-skills/<插件目录>/scripts/recon-site.mjs ...`;`RECON/`、`assets/` 等产物仍写到项目根。
- 脚本内置基于 Chrome DevTools Protocol 的零依赖控制层,直接复用系统已有的 Chrome、Edge 或 Chromium;无需启动 Electron 客户端,也支持纯 `od` CLI。Agent 沙箱内会通过本地 daemon 创建临时 CDP 会话,避免沙箱阻止 Chrome 子进程。**禁止在用户项目里执行 `npm install playwright` 或下载 Chromium。** 若预检报告没有兼容浏览器,直接说明缺少系统浏览器或通过 `OD_BROWSER_EXECUTABLE_PATH` 指定路径,不要改为目测,也不要反复安装依赖。源码开发环境若已经提供 `OD_PLAYWRIGHT_PACKAGE`,脚本仍兼容该运行时,但它不是产品链路的前置条件。
## 头号铁律:真源码至上,绝不信 AI 推测的代码
> 任何 AI 生成的"复刻分析/施工图",**正文的概念骨架可以参考,但里面的可执行代码块默认全是臆造的**,必须逐行用真源码核对,否则照抄必崩。
**实证(marbles 案例)**:一份 AI 分析文档把原站"解析法求光线-球体交点 + 把光学结果编码成位移图、交给 SVG `feDisplacementMap` 去扭曲真实 DOM"的真架构,臆造成了"ray-marching + SDF + 把 DOM 当纹理采样"——两套完全不同的实现,照抄做不出原效果且慢 N 倍。详见 `references/marbles-case.md`。