website-cloning

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

Updated May 17, 2026
One-click install
npx skills add https://github.com/Amna-exe/EventFlow_App --skill website-cloning-amna-exe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: website-cloning
Source: https://github.com/Amna-exe/EventFlow_App/tree/main/Final-MAD-project-main-4zipzipzipzipzip-1-ite1zipzip/.local/secondary_skills/website-cloning
Command: npx skills add https://github.com/Amna-exe/EventFlow_App --skill website-cloning-amna-exe

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, eliminating guesswork and placeholder content. ## Core Features & Use Cases - Automated Extraction with Playwright: Capture raw HTML, computed styles, design tokens, screenshots, fonts, SVG logos, and all media assets from a target URL before writing any code. - Systematic Build Workflow: Follow a four-phase process (reconnaissance, foundation, section build, verification) with a section inventory checklist so no section is skipped or reordered. - Pitfall Prevention: Built-in guidance for 23 documented mistakes, including wrong button styles, text-based logos, locale/language mismatches, and CDN image resolution issues. - Use Case: A developer migrating a Shopify store to a custom React frontend uses this Skill to extract the live site's HTML, assets, and styles, then rebuilds a pixel-perfect React + Vite clone with matching fonts, colors, and interactions. ## Quick Start Clone the website at the given URL into a pixel-perfect React and Vite app using Playwright extraction.

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 each section component from the raw HTML in exact DOM order.

How to extract website assets and styles with Playwright?

Navigate with wait_until set to domcontentloaded, wait 5 seconds, then save page.content() as raw.html. Use page.evaluate to collect computed styles, CSS variables, fonts, images, and SVGs, and download all assets with retry logic and browser User-Agent headers.

Why does Playwright hang on networkidle when scraping pages?

Sites with persistent WebSocket or analytics connections never reach networkidle, causing page.goto to hang. Use wait_until domcontentloaded with a 60-second timeout, then add page.wait_for_timeout(5000) to let client-side rendering finish.

Why do CDN images return 403 errors when downloading?

CDNs like Shopify and Cloudinary block requests without browser headers. Send a real browser User-Agent string with each request, 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 design?

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

How do I handle localized pages when cloning a website?

Check the URL for locale paths like /es-do or /fr and build all user-facing text in that language, even if the raw HTML returns English due to client-side localization. Keep brand terms, product names, and color names in their original language.