website-cloning

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

Updated May 25, 2026
One-click install
npx skills add https://github.com/dheejay282002/final_project --skill website-cloning-dheejay282002
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: website-cloning
Source: https://github.com/dheejay282002/final_project/tree/main/.local/secondary_skills/website-cloning
Command: npx skills add https://github.com/dheejay282002/final_project --skill website-cloning-dheejay282002

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, and includes references (resource) components.

What problem does it solve? Recreating an existing website's design by hand is slow and error-prone, with fonts, colors, layouts, and assets easily guessed wrong. This Skill provides a structured methodology to reverse-engineer any website into an exact React + Vite replica using Playwright-driven extraction. ## Core Features & Use Cases - Automated Extraction: Uses Playwright to save raw HTML, capture screenshots, extract design tokens, fonts, SVG logos, and download all images and videos before building. - Section-by-Section Rebuild: Generates a section inventory checklist and rebuilds each section as a React component with exact text, styles, and assets from the source HTML. - Verification Workflow: Compares a full-page screenshot of the clone against the original and fixes discrepancies, with a documented pitfalls guide covering 23 common mistakes. - Use Case: A developer migrating their own site to a modern stack can point the Skill at the live URL and receive a pixel-perfect React + Vite clone with all assets localized. ## Quick Start Clone the website at https://example.com as a pixel-perfect React and Vite app using the website-cloning skill.

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, take screenshots, extract design tokens and assets, then rebuild each section as a React component in a Vite project. The raw HTML serves as the source of truth for all text, structure, and styling.

What tools are needed for pixel-perfect website cloning?▼

The workflow requires Python with Playwright and a Chromium browser for extraction, plus a React + Vite scaffold for the rebuild. Playwright handles navigation, screenshots, computed style extraction, and asset discovery.

Why does Playwright hang with networkidle when scraping pages?▼

Sites with persistent WebSocket or analytics connections never reach network idle, causing timeouts. Use wait_until="domcontentloaded" with page.wait_for_timeout(5000) instead, and set timeout=60000 on page.goto calls.

How do I fix 403 errors when downloading CDN images?▼

CDN images often reject requests without browser headers. Download with a real browser User-Agent string, retry with fallback agents, and upscale Shopify CDN URLs by replacing _small. with _1200x. or width parameters with 1200.

Is it legal to clone someone else's website?▼

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