Nov 10, 2026
website-rebuild-skill: Have Your AI Agent Rebuild a Website Line by Line and Prove It Is Correct
A 2k-star agent skill that captures a site as read-only evidence, rebuilds it line by line from the minified code, and verifies the result across five automated comparison layers (console, network, DOM, geometry, pixel-by-pixel); output defaults to private, noindex, and not deployed.
website-rebuild-skill is a 2k-star agent skill whose README states plainly what it is not: "make a page that looks similar." Give your agent a URL and, in the README's words, "it rebuilds that website line by line — and can prove the rebuild is correct."
Why This Skill Matters
The skill treats the source site's implementation as the spec sheet. It first captures the whole site as read-only evidence, then reconstructs the logic line by line from the minified code, and finally runs automated acceptance gates that compare both sides across five layers: console, network, DOM, geometry, and pixel-by-pixel. Every difference is either fixed or registered, never glossed over.
The README draws the line against scraping tools: scraping answers what a site looks like, rebuilding answers how it is done. Its typical deliverable is a runnable project plus reverse-engineering notes, a deviation ledger, an acceptance report, and a copyright assessment. It follows the Agent Skills open standard, and its verification list includes targets completed by Claude Code and one completed end-to-end by Codex (Hashgraph VC, 166/166 response bytes identical).
Installation
The README lists three prerequisites: Node.js 22 or later, a local Chrome or Chromium for headless comparison, and npx. It documents two install paths that install the same directory; the first is the npx installer:
npx website-rebuild-skill # -> ~/.claude/skills/website-rebuild
npx website-rebuild-skill --project # -> ./.claude/skills/website-rebuild
npx website-rebuild-skill --dir <skills dir> # other runtimes; `website-rebuild` is appended
The installer only copies files: it never runs the skill, never opens a browser, and never fetches anything. Every copied file is verified against the source by sha256 before it reports success. An existing install is left alone unless you pass --force, and --dry-run shows what it would write.
The second path is for a cloned repo: put the entire skills/website-rebuild/ directory into your agent's skills directory. For Claude Code:
# user level (or project level .claude/skills/)
cp -R skills/website-rebuild ~/.claude/skills/website-rebuild
Real Workflow: Studying Your Own Company's WebGL Site
Say an outside studio built your company's WebGL product site with scroll storytelling, and your team wants to learn how it works. The site is yours, which keeps it inside the skill's stated conditions of use (see the last section).
- Give the agent the URL with the README's phrasing:
1:1 rebuild this website: https://campaign.example.com/
- Triage comes first. The skill probes what class the site belongs to and whether it can be done, then returns a verdict with reasons; if it cannot be done, it says why. The agent gives a difficulty rating and an estimate before starting.
- It comes back with questions: the rebuild scope (whole site or specific pages), which level to stop at, how to handle external dependencies, and every judgment that touches "can this be published." These are your decisions; the agent will not make them for you. The levels are L1 mirror archive, L2 engineered rebuild, and L3 source-form; SKILL.md's level table (in Chinese) lists L3's typical use as studying and learning the implementation techniques, which fits this goal.
- The pipeline then runs on its own: a forensic mirror (a per-file checksummed snapshot that runs offline), reverse-engineering notes on how the site is built, a port with every change annotated with provenance plus an itemized deviation ledger, a quantified acceptance report, a closeout audit with a deployment assessment awaiting your ruling, and finally sourcification into a human-readable project that runs standalone anywhere you copy it.
- Calibrate expectations with the README's own numbers. One custom-WebGL-engine rebuild reached cross-side pixel identity on three routes (
meanAbsDiff 0.00) and shipped as 389 source modules with a median of 18 lines. A small-to-mid site (a few dozen routes) now runs unattended in a single session from triage to sourcification; heavy WebGL or custom-engine sites take about 1–3 days.
Real Workflow: Salvaging a Site That Has Disappeared
- Hand the agent the dead URL the same way; triage diverts vanished sites that have archives to Wayback salvage.
- The salvage selects a coherent moment with an anchor plus a time window, lands the raw bytes as a standard mirror, and honestly registers permanent holes.
- Set expectations from the README's record: five dead-site salvages, four revived (three at L1, and first-launch through the full L3 pipeline), and one with its engine rescued and its art certifiably lost. A vanished site with no Wayback coverage has nothing left to mirror.
Tips
- Pick the lowest level that answers your question. The README calls the ladder monotone: choosing low costs nothing, and you can resume and upgrade any time. It cites a measured disappearance rate of about 29% among past award-winning sites as the reason mirroring comes first.
- Do not ask the agent to tidy the source's bugs. Bugs, dead code, and odd idioms are copied verbatim, and an unregistered deviation is a bug by definition; the README's Raycast Keyboard showcase keeps the unloaded lazy-image placeholder strip above the keyboard identical on both sides.
- Expect sourcification to stay conservative. Renaming, splitting, and commenting are allowed; opportunistic refactoring (merging duplicates, extracting helpers, changing algorithms) is not, and speculation in comments must be labeled as speculation. Names without evidence stay unrenamed, because a wrong name is worse than
e. - Treat forking as your own project. The README calls scaffolding, forking, and derivative work your project, not the skill's stage, and points to
beyond-the-rebuild.mdfor the handover.
When Not to Use This
- If all you want is an archive or a local copy, the README says wget, HTTrack, SingleFile and the like are enough: "you don't need this."
- In server-behavior sites (class D: CMS, inventory, A/B bucketing, personalization) the behavior lives server-side; there is no portable client-side target and no deterministic acceptance baseline. Server-component sites (class C1: RSC / Next.js App Router) are doable since v0.3 as reconstructive reverse engineering: no verbatim port, and the deliverable is "human-written source + gate-proven equivalence".
- Stay inside the skill's stated conditions of use. The README says the skill is for study and research, and the MIT license covers the skill itself, not what you rebuild with it: copyright and compliance judgments about rebuilding other people's websites rest with you. The authorization prerequisites in SKILL.md (written in Chinese) scope it to sites you own, sites you have authorization for, or publicly accessible sites that permit study and imitation. SKILL.md also states it is not a tool for unauthorized collection of protected content, circumventing access controls, or commercially appropriating others' work. During a run it follows the target's
robots.txt, terms of service, and copyright, crawls at low frequency in a single session, handles only anonymously accessible public resources (nothing behind logins, paywalls, or authorization), and stops and tells you if the target explicitly forbids this kind of copying. - Publishing is a separate decision. Output defaults to private + noindex + not deployed, which the README calls a conservative default action, not a legal conclusion the agent draws for you. Per-asset copyright forensics must be completed before anything goes public, and SKILL.md also requires a prominent "unofficial rebuild" label and credit to the original author. One hard rule cuts the other way: legal caution never reduces the completeness of the mirror, and "don't capture" is only allowed for technical reasons.
- Check your platform. The README's v0.3.24 note says the repo's offline self-test lane now runs on native Windows and that native Windows is now in the support surface, but SKILL.md's compatibility field marks everything after the Step 0 probe as POSIX-only (macOS / Linux / WSL).
See the leaderboard for more skills.