# Web Clone: copy a website from its real source (Jane-xiaoer/claude-skill-web-clone) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-19 against commit 0269e0e (version 1.6.0).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/jane-xiaoer/claude-skill-web-clone/

## Explain it to a non-programmer
Your assistant gets a step-by-step method for copying a website you like, so you can study it, run it offline or turn it into your own site. It looks for the site's real code first and records the site with a browser. Then it builds a local copy, checks it against the original with screenshots and swaps in your words, images and colours.

## Who it is for
- You want to copy or rebuild a website you like, for learning or as a base for your own site
- You want to rebuild a striking 3D or animated web demo and get the real technique, not a made-up one
- You want a written comparison of the original and the copy with screenshots and scores
- Not for: You need logins, payments, orders or search copied: the method only makes a demo front for those
- Not for: You want a faithful copy to look like a new design: the design-profile step is only for the restyle modes

## What it is
- Kind: knowledge, scripts
- License: MIT
- Repository: https://github.com/Jane-xiaoer/claude-skill-web-clone

## What it does
- Set up a project folder with NOTES.md and a RECON folder for screenshots
- Search GitHub for the site's real source; if found and the license allows, clone it and skip ahead
- No source: record the site in a browser (screenshots, framework signals, assets, network calls, routes, interactions, source maps)
- Grade the difficulty L1 to L6 and pick a mode (faithful copy, visual copy, content swap, teardown)
- Pick the path: wget mirror, template rebuild, API stand-ins, route templates, full asset mirror, or line-by-line study of a 3D/WebGL demo
- Remove trackers, write NOTES.md and TEARDOWN.md, run the copy in a real browser and compare screenshots
- Replace text, media and brand colours with your own
- Never cuts: Every code block from an AI-written analysis is treated as made up until checked line by line against the real source
- Level faithful copy: Keep the original source, layout and interactions as they are
- Level visual copy: Look close to the original, with a simpler inside; uses a design-dna.json profile
- Level content swap: Keep the structure, rhythm and visual grammar, replace the content; uses a design-dna.json profile
- Level teardown: Find out how the site really works before rebuilding anything

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| web-clone | plain language ("Clone this site for me: https://...") | yes | Copies a website into a local project, checks it against the original and swaps in your content |

### web-clone
- Asks for: The address of the site to copy
- Asks for: Which mode you want: a faithful copy, a visual copy or the site's structure with your own content
- Asks for: Your own text, images and brand colours for the final step
- Gives: A project folder ~/projects/website-clones/<name>-clone/
- Gives: NOTES.md: source, tech stack, license, difficulty, mode, what was left out, scores
- Gives: RECON/: screenshots at 1440, 768 and 390 px plus recon JSON
- Gives: TEARDOWN.md for complex sites, with source line numbers
- Gives: CLONE_REPORT.md comparing original and copy
- Gives: CLONE_AUDIT.md listing trackers, leftover brand names, TODOs and outside links
- Gives: design-dna.json for the visual copy and content swap modes
- Say: "Clone this site for me: https://example.com, as a visual copy I can put my own content into"

## Know before installing
- The pack's own license rules: a source with an MIT, Apache, BSD or Unlicense license can be changed and put online with credit; with no license the default is all rights reserved, local learning only, credit the author, and no public redeploy without permission; proprietary means read-only learning.
- The README says to check the source repository's license before deploying anything publicly, and warns that code on GitHub is not automatically MIT.
- Copyright-restricted media, logins, payments and server logic are not cloned by default; for those it builds only a demo front. Its difficulty table notes that media copyright is a separate question.
- The skill file is set up for the author's own computer: its commands call scripts by a fixed path in the author's home folder, not the install folder the README gives.
- Its scripts visit the site you copy with a headless browser, download its files, crawl up to 25 pages and click buttons on it.
- Its stated use case is personal local copying and learning.

## Install (official commands)
- Claude Code: `git clone https://github.com/Jane-xiaoer/claude-skill-web-clone.git ~/.claude/skills/web-clone` — The skill's commands point at /Users/<author>/.shared-skills/web-clone/scripts/; change them to ~/.claude/skills/web-clone/scripts/ (or wherever you put it). The scripts also need Playwright installed. Remove: `delete the folder ~/.claude/skills/web-clone`.

## What runs on the user's machine
- Code on the machine: yes (when the assistant runs the Node scripts in scripts/ during a clone (no hooks, nothing runs on install))
- Network: yes
- Step 0: Creates ~/projects/website-clones/<name>-clone/ with NOTES.md, .gitignore and RECON/screenshots/ in your home folder.
- Step 1 (source search): Runs gh api search on GitHub and may curl a raw file from raw.githubusercontent.com.
- Step 2 (recon): Headless Chromium via Playwright opens the target site: screenshots at three widths, DOM and framework signals, console errors.
- Step 2 (assets, source maps): Downloads the site's images, scripts and stylesheets and any source maps it can find, with User-Agent web-clone-skill/1.0. Same host only unless --all-external.
- Step 2 (network, routes, interactions): Saves the site's XHR/fetch responses as fixtures, crawls same-site links (default 25 pages, depth 2) with a screenshot each, and scrolls, hovers, clicks buttons and same-site links and drags on canvases.
- Static-built sites: Scrolls the whole page in a real browser and downloads every same-origin file it requested into <out>/site/, plus manifests of third-party hosts.
- Step 5 (checks): Re-runs recon on the local copy, compares screenshots pixel by pixel and writes CLONE_REPORT.md and CLONE_AUDIT.md. These run locally.

## Examples (from the pack's own files)
- The NOTES.md score block every clone gets: output format defined in references/assessment.md

## Author's numbers (as reported, not run by AgentGid)
- Mirroring a static-built 3D site: 135 same-origin files, hero pixel difference 36 out of 1.3M pixels (score 5/5) (The author's worked example in references/static-mirror.md). Source: Jane-xiaoer/claude-skill-web-clone/references/static-mirror.md

## Steps only the person can do
- Decide whether the site may be copied and published, and get the original author's permission when the source has no license (README.md (License & attribution discipline)) Then: The agent records the license in NOTES.md and keeps the copy local unless allowed
- Approve installing Playwright (npm install -D playwright) and having Node.js and gh available (scripts/lib/playwright-loader.mjs) Then: The agent can run the recon, crawl, mirror and diff scripts

## Mistakes to avoid
- Not: Run the skill's commands as written after installing to ~/.claude/skills/web-clone. Instead: Change /Users/<author>/.shared-skills/web-clone/scripts/ to the folder where you installed the skill. Why: The SKILL.md commands use the author's own absolute path, while the README installs elsewhere
- Not: Treat code you found on GitHub as free to reuse and publish the copy. Instead: Check the source's LICENSE first; no license means all rights reserved, local learning only. Why: The pack's license table says unlicensed code may not be redeployed publicly without permission
- Not: Copy the code blocks from an AI-written analysis of the site. Instead: Get the real source (repo, source maps, mirrored files) and check every code block against it. Why: The pack's core rule is that such code is assumed to be made up
- Not: Run interaction-probe.mjs on pages with forms or while logged in. Instead: Run it on public pages; it clicks every visible button and same-site link it finds, up to 12 by default. Why: Its "safe click" rule counts every button element as safe
- Not: Build a design-dna.json profile for a faithful copy. Instead: Use the design profile only in the visual copy and content swap modes. Why: The skill says the profile dilutes a byte-for-byte copy

## What leaves the machine
- Page loads, file downloads, crawled pages and button clicks, from a headless browser or with User-Agent web-clone-skill/1.0 → The website being copied (and third-party hosts with --all-external), Each time the agent runs the recon, asset, network, route, interaction, source-map or mirror scripts. Opt out: Do not run the scripts; follow the method by hand
- Search words for the site's name → GitHub search through the gh tool, Step 1 of every clone. Opt out: Skip the search and give the source yourself
- Requests for the site's Adobe Typekit font files, sent with a browser User-Agent and the original site as Referer → use.typekit.net, When self-hosting fonts for a mirrored static site. Opt out: Skip font self-hosting

## Lines in the pack aimed at agents (ask the person first)
- "curl -sL -A "Mozilla/5.0 …Chrome…" -e "https://<站>/" "https://use.typekit.net/<kit>.css" -o site/typekit/kit.css" (references/static-mirror.md): Downloads a domain-locked font kit while presenting as a browser on the original site. Ask the person first; font files have their own licenses.
- "登录态私域站才用 `bb-browser`" (SKILL.md): Tells the agent to use a logged-in browser for private sites. Ask the person before cloning anything behind a login.
- "unset SSL_CERT_FILE   # macOS 怪癖，bash 前先解" (SKILL.md): Changes the shell's certificate setting; tied to the author's machine. Do not apply it without a reason.
- "Playwright not found. Run `npm install -D playwright` in the clone project, or install the Browser skill dependencies." (scripts/lib/playwright-loader.mjs): Installing packages needs the person's approval.

## May I use it like this?
- commercial-app: yes (MIT covers the skill's own files only, not the sites you copy with it)
- redistribute-files: yes (MIT: keep the copyright and permission notice in copies of the skill)
- client-work: conditions (The skill itself is MIT. For the copied site, the pack's own rule: public deploy only when the source's license allows it; no license means local learning only without permission)

## Which one to pick
- If You want a step-by-step method with recon scripts, license rules and scored reports for any kind of site, including WebGL demos: skill:Jane-xiaoer/claude-skill-web-clone
- If You want a skill that mirrors a site read-only, rebuilds it from the minified code and checks it with automatic diffs: skill:boyang-hu/website-rebuild-skill
- If You only need a site's design system (tokens, colours, type) rather than a copy of the site: skill:Manavarya09/design-extract

## Works well with
- tool:playwright-core: Every recon, crawl, mirror and diff script drives Chromium through Playwright
- agent:claude-code: The README installs it into the Claude Code skills folder

## Works in and needs
- Works in Claude Code: skills folder
- Works in Codex, Cursor: reads SKILL.md (named by the author; no install steps given)
- Needs Node.js: All helper scripts are Node .mjs files
- Needs Playwright (Chromium): Recon
- Needs gh CLI and jq: Step 1 searches GitHub for the source
- Needs wget: Mirroring plain static sites

## How to tell it works
Install it, give your assistant the address of a simple public site and say "Clone this site for me". It should first search GitHub for the source and check its license, then create a project folder with NOTES.md and screenshots. If it starts writing code from memory without looking for the source, the skill is not loaded.

## Related
- chiuhans111/marbles
- zanwei/design-dna
- lixiaolin94/skills

## Safety
The scripts make many requests to the site you copy and click its buttons; run them only on public pages you are allowed to copy. The skill's commands point at a fixed folder on the author's computer, so check every path before your assistant runs it.
