← 返回
未分类 中文

Clone Anywebsite

High-fidelity visual-first web rebuilding from design references. Screenshot-driven analysis, DOM interrogation for exact CSS values, asset inspection (WebGL...
高保真、视觉优先的网页重构,基于设计参考。通过截图驱动的分析、DOM 查询获取精确 CSS 值,资源检查(WebGL 等)
solomonneas solomonneas 来源
未分类 clawhub v1.0.1 1 版本 99794.2 Key: 无需
★ 0
Stars
📥 485
下载
💾 0
安装
1
版本
#latest

概述

Guide: Visual-First Web Cloning Recipe

> Legal Notice: This skill is intended for cloning your own websites, building from design references you have rights to, or learning from public design patterns. Always ensure you have permission before reproducing third-party designs, assets, or branding. Respect copyright, trademarks, and terms of service.

When building a high-fidelity landing page clone, the biggest trap is relying purely on DOM trees and CSS dumps. Modern website builders (Framer, Webflow) generate deeply nested "div soup" and obfuscated CSS to create visual effects.

The Golden Rule: Trust your "eyes" (screenshots) first, but when an effect looks too complex to be pure CSS, use Deep DOM Interrogation to steal the exact asset.

The 80/20 Cloning Philosophy

To clone efficiently, you must divide your workflow into two distinct phases so you don't get bogged down pixel-pushing too early:

  1. The 80% Sprint (Speed & Structure): Get the page laid out rapidly. Use Steps 0-2 to fetch the semantic HTML, scaffold the React component tree (Navbar, Hero, Features), and apply basic Tailwind classes for layout (Flex/Grid) and spacing. Accept approximations here—use solid colors instead of complex gradients, standard CSS shadows, and static backgrounds. Move fast.
  2. The 20% Polish (Pixel Perfection & Physics): Once the 80% structure is on screen, shift gears to meticulous engineering. Use Steps 3-5 to steal the exact math. This is where you use "Sniper CSS" to extract exact multi-stop gradients, rip WebGL canvas backgrounds to .webm videos, map massive multi-layer box-shadows, and implement Framer Motion spring physics.

The 6-Step "Visual-First" Recipe

Step 0: Codebase Scaffolding Strategy

Before writing code, establish a scalable folder structure. Modern landing pages should be componentized.

  • src/components/layout/: Navbar.tsx, Footer.tsx (Global elements)
  • src/components/sections/: Hero.tsx, Features.tsx, Testimonials.tsx (Page blocks)
  • src/components/ui/: Button.tsx, GlassCard.tsx (Reusable micro-components)
  • src/assets/media/: Local storage for extracted videos, noise overlays, and icons.

Step 1: The "Eye Test" (Visual Grounding)

Before looking at a single line of code, visually ground yourself in the reference site.

  1. Capture: Navigate to the target site and take a screenshot using an absolute path.

mcp_chrome-devtools_take_screenshot(filePath="/absolute/path/to/ref.png")

  1. Analyze: Read the image (using your read image tool) and actively identify the Vibe:
    • Backgrounds: Is it flat? A subtle radial gradient? Are there sweeping SVG waves or floating blurred orbs?
    • Buttons: Are they flat? Glassmorphic (backdrop-blur)? Do they have glowing auras?
    • Typography: Which specific words are highlighted? Are there gradient text clips?

Step 2: Macro Structure Capture (Playwright/DOM Snapshot)

Best for: Getting the general layout semantic HTML structure (Nav, Hero, Bento Grid, Footer).

  • Take a DOM text snapshot using Chrome DevTools or Playwright to understand the section-by-section flow and extract the actual copy/text.
  • Do not blindly copy the DOM. Distill the complicated nested builder divs into clean, semantic React (e.g.,
    ,

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-03 10:02 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,806
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,625
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 677 📥 327,213