website-cloning

Clone websites as pixel-perfect React and Vite apps using Playwright extraction.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/AmirEmad11/instabot --skill website-cloning-amiremad11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: website-cloning
Source: https://github.com/AmirEmad11/instabot/tree/main/.local/secondary_skills/website-cloning
Command: npx skills add https://github.com/AmirEmad11/instabot --skill website-cloning-amiremad11

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright.

What problem does it solve? Recreating an existing website's design by hand is slow and error-prone, with frequent mistakes in fonts, colors, layout, and content. This Skill provides a structured methodology to reverse-engineer any website and rebuild it as an exact React + Vite replica, using the raw HTML as the source of truth instead of guesswork. ## Core Features & Use Cases - Automated Extraction with Playwright: Capture raw HTML, full-page screenshots, design tokens, fonts, SVG logos, and all image/video assets before writing any code. - Section Inventory & Component Specs: Parse the DOM into an ordered section checklist and build one React component per visual pattern with exact computed styles. - Verification Workflow: Assemble all sections, take a full-page screenshot, and fix discrepancies against the original in a single pass. - Use Case: A developer migrating their own Shopify store to a custom React frontend uses this Skill to extract every section, asset, and style from the live site, then rebuilds it as a pixel-matching Vite app. ## Quick Start Clone the website at https://example.com as a pixel-perfect React + Vite app, extracting all assets and styles with Playwright first.

Frequently Asked Questions about website-cloning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clone a website as a React app?

Use Playwright to save the target page's raw HTML, screenshots, design tokens, and all images before building. Then create a React + Vite app, replace the scaffold CSS with plain CSS using extracted design tokens, and build one component per section from the raw HTML.

How to extract computed styles and fonts from a website with Playwright?

Use page.evaluate to read getComputedStyle on key elements like headings, buttons, and cards, and iterate document.styleSheets for CSS variables and @font-face rules. Download actual .woff2 font files when available, or map proprietary fonts to the closest Google Fonts equivalent.

Why does Playwright page.goto hang with networkidle?

Sites with persistent WebSocket or analytics connections never reach network idle, so the call hangs. Use wait_until="domcontentloaded" with a page.wait_for_timeout(5000) delay instead, and set timeout=60000 on all page.goto calls.

Why do CDN image downloads fail with 403 errors?

CDNs like Shopify and Cloudinary reject requests without a browser User-Agent header. Send a real Chrome User-Agent string, retry with fallback agents, and upscale resolution by rewriting URL patterns such as _small.jpg to _1200x.jpg.

Is it legal to clone someone else's website?

Cloning is acceptable for your own site, client work, learning, staging copies, or platform migration. It must be refused for impersonation, phishing, traffic theft, or trademark infringement, and non-owned clones should replace logos, brand names, and product data.

What are the limitations of screenshot-based website cloning?

Screenshots alone lead to guessed structure, wrong fonts, and fabricated content. The raw HTML must be the source of truth for all text, element order, and classes, with computed styles supplementing it for exact colors, spacing, and alignment.