web-clone
Installation
SKILL.md
Skill: web-clone
Two honestly-different jobs. Pick the mode first.
| Mode | Output | Use when | Engine |
|---|---|---|---|
| snapshot | ONE self-contained .html (exact bytes, offline) |
archive / faithful copy / "lưu y hệt offline" | builtin inliner · SingleFile CLI · monolith |
| reconstruct | clean Next.js + Tailwind codebase (editable) | "rebuild as code I can edit" / "clone giao diện thành code" | the ai-website-cloner-template pipeline |
Mode + engine live in harness/web-clone.config.yaml (verified:false — the live-capture engine
and reconstruct fidelity are the quarantined unknowns).
Mode A — snapshot (faithful 1-file copy)
- Local page already downloaded: offline, no key —
python3 harness/scripts/web-clone.py inline <page.html> --out clone.html(inlines local<link>CSS,<script src>JS, images as data-URI → one file). - Live URL, faithful: set
engine: singlefile-cli(npm i -g single-file-cli, keeps scripts) ormonolith(Rust), thenweb-clone.py url "<URL>" --out clone.html. - JS interactions = best-effort across all snapshot engines (the quarantined unknown).