К основному содержанию
скилл CX Codex

clone-website · dembrandt — скилл для Claude Code: что делает и как установить

Скилл clone-website воссоздаёт живую страницу в Figma, Penpot или код с проверкой соответствия оригиналу. Снимает размеры, стили и контент с реального рендера, собирает макет по секциям и сверяет результат.

MIT 411 установок ★ 197 обновлён 2026-10-22

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add dembrandt/dembrandt-skills --skill clone-website -a claude-code
Открыть на GitHub

Что делает clone-website

Скилл захватывает страницу в двух разрешениях (390 и 1440 пикселей), извлекает DOM, стили и контент, скачивает ресурсы и замеряет токены дизайна — шрифты, отступы, палитру. Затем собирает макет секция за секцией в выбранном инструменте, сравнивая каждую с оригиналом перед следующим шагом.

Внутри десять этапов: захват рендера браузером, сырой HTML через wget, извлечение токенов, парсинг контента, сборка в авто-лейауте, тройная проверка (визуал, структура, семантика), подмена шрифтов-заглушек на лицензионные, точечные правки. Без FFmpeg и Playwright страницы с видео и каруселями не снимутся полностью.

Проверка включает три уровня: выглядит ли одинаково на обеих ширинах, собрано ли через контейнеры или абсолютные координаты, совпадают ли слова и числа. Последнее отличает копию от похожей картинки: экстракт токенов из оригинала сравнивается с экстрактом из сборки, разница показывает, что осталось исправить.

Какие задачи решает

  • снять страницу конкурента для разбора структуры и токенов
  • вернуть продакшен-страницу в дизайн-систему для рефакторинга
  • проверить, совпадает ли новая вёрстка с утверждённым макетом
  • собрать лендинг в Figma с измерениями, а не на глаз

Примеры запросов агенту

  • Склонируй stripe.com/pricing в Figma с проверкой токенов
  • Пересобери этот лендинг в React-компоненты, сверяя каждую секцию
  • Сними дизайн-токены с этой страницы и собери её в Penpot

Как установить clone-website

1Через Skills CLI (Vercel)

npx skills add dembrandt/dembrandt-skills --skill clone-website -a claude-code

2Вручную: положить файлы

~/.claude/skills/clone-website/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/clone-website/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о clone-website

Как установить clone-website в Claude Code?

Выполни npx skills add dembrandt/dembrandt-skills --skill clone-website -a claude-code, затем открой ~/.claude/skills/clone-website/SKILL.md для проверки.

Что делает скилл clone-website?

Захватывает живую страницу с рендером и стилями, извлекает токены дизайна, собирает макет по секциям в Figma, Penpot или код, сверяет результат с оригиналом визуально, структурно и семантически.

Что нужно для работы clone-website?

Playwright для управления браузером, wget для загрузки разметки. Без FFmpeg видео и анимации останутся пустыми местами.

Исходный текст

SKILL.md · MIT
---
name: clone-website
description: Rebuild a live web page 1:1 from measurement into Figma, Penpot or code, then verify it. Use when reproducing a page or checking a rebuild against the original.
metadata:
  priority: 8
  promptSignals:
    phrases:
      - "clone this website"
      - "clone a page"
      - "copy this page"
      - "recreate this site"
      - "rebuild this page"
      - "website to figma"
      - "html to figma"
      - "import site into figma"
      - "pixel perfect copy"
      - "reverse engineer landing page"
      - "1:1 copy"
      - "teardown"
retrieval:
  aliases:
    - clone website
    - website to figma
    - html to design layers
    - rebuild a landing page
    - page teardown
  intents:
    - reproduce a live page as editable design layers
    - rebuild a competitor landing page for a teardown
    - migrate a production page back into a design tool
    - verify that a rebuild matches the original page
  examples:
    - clone stripe.com/pricing into Figma
    - rebuild this landing page as React components
    - turn this URL into editable layers
    - check whether my rebuild matches the original page
---

# Clone a Website, Accurately

One-click cloners return a lookalike: it resembles the page, and nothing in the
process ever checked whether it matches it. This skill produces a different
artifact — values traceable to the source, and a diff that says what is still
wrong.

**The one rule: if the page states a value, read it. If it does not, and only
then, decide it.** A rebuild done that way is finished when the diff is empty,
which you can check, rather than when it looks about right, which nobody can.

Only the rebuild step cares whether the target is Figma, Penpot or a codebase.
Everything else is the same job.

## Decide before you capture

- **Two widths are the design target**, 390 mobile and 1440 desktop. Real
  devices open the same page at other ratios, so these are what you design to,
  not what you will see.
- A site that follows the light and dark preference renders **two different
  pages**. Capture both, or say which one you copied.
- The IP, locale, consent state and A/B branch reach the site before you do, so
  **what you capture is one visitor's view**, not the page. Check from a second
  location before trusting prices or copy.

## 1. Capture the rendered page

Drive a real browser and take four things at once: full-page screenshots at
both widths, the rendered DOM, the computed styles of each section, and the
asset URLs the page requested. On a client-rendered page this is the only
capture that contains anything at all.

Rendered state is the specification, not the file the server sent.

## 2. Take the raw source as well

Markup carries text verbatim and names every asset URL without a screenshot in
the loop.

```bash
wget -r -l 3 -k -p -E -nc https://example.com/page
```

Host-spanning is left out on purpose: CDN assets stay unfetched, their URLs are
in the markup, and they get downloaded directly at step 4. `wget` does not run
JavaScript, which is why it is the second capture and not the first.

## 3. Measure the design values

Read the tokens off the live page rather than off a picture — the type scale,
palette and spacing are already declared. Use [[extract-design]] for the
extraction; `--design-md` gives you a brief you can hand straight to the
rebuild step.

## 4. Take content and images from the capture

Parse headings, body copy, numbers, lists, links and the footer out of the DOM,
then download every referenced asset. Never retype a string and never infer a
value the source states. Nothing retyped means nothing drifts.

## 5. Build section by section

One section at a time — header, hero, feature rows, tables, media, testimonials,
FAQ, footer — in auto layout or real layout containers, never pinned
coordinates. Screenshot each section and compare it before moving on. A rebuild
judged only at the end gets judged once, badly.

## 6. Compare three things, not one

| Check | Question |
|---|---|
| Visual | Does it look the same at each width? |
| Structural | Is it built from sane containers rather than absolute positions? |
| Semantic | Are the words, links, numbers and variants the ones the source states? |

The third is the one people drop, and it is the one that matters most. A
perfect visual copy can carry wrong data, and it will pass every screenshot
comparison you run against it.

Token-level verification is free: extract the original, extract the rebuild,
compare the two token sets. The difference is your remaining work, stated as a
list instead of a feeling.

## 7. Fix what the capture could not see

Some errors are structural blindness, not degradation, and none of them look
like errors:

- A hero using the wrong image because the real one is a CSS background.
- Carousel or video items in the wrong order.
- Two cards whose values differ by variant, copied from each other.

Report what you could not resolve rather than guessing.

## 8. Fonts: stand in, then swap

Licensed foundry fonts usually cannot be loaded in an automated environment,
and a visual lookalike is the wrong answer because it moves every line break
you are about to verify. Build on a metric-compatible stand-in, then swap to
the real face at the end with one find and replace.

## 9. Fix by targeted prompt, not by rerunning

Every remaining error is local, so the instruction has to be local too: name
the section, name what is wrong, name the source value. Rerunning the whole
rebuild to fix one card costs the hour again and moves the errors somewhere
new.

Where the fix is a judgement call rather than a value, produce two or three
versions of that one section and ask which is right — and ask what made it
right. That sentence is what gets applied to the next section instead of a
guess.

## 10. Throw the scaffolding away

Import gone, staging assets gone. What is left is the two frames, named layers,
icons as vectors, not one absolutely positioned element. If the import is still
in the file, the file is still a draft.

## What this is for

Reproducing a page is research: teardowns, redesign baselines, migration
references, and regression checks against your own site. The last is the most
undervalued — the fastest way to learn whether production still matches its
design system is to extract it and compare.

Shipping someone else's layout, copy or brand as your own is a different act,
and the pipeline being fast does not make it a better idea. Respect robots.txt
and terms of service.

## Related

- [[extract-design]] — the measurement step, and the verification pass
- [[generate-ui-from-brand]] — when the goal is new UI in a brand, not a copy
- [[authentic-product-representation]] — keeping rebuilt content truthful

© dembrandt · MIT · dembrandt/dembrandt-skills

Похожие скиллы

Все скиллы по теме «Дизайн» →

Сначала — clone-website от других авторов.

clone-website coco-research Скилл clone-website для Claude Code клонирует указанные веб-страницы в автономный однофайловый HTML-прототип без сборщиков и внешних зависимостей. CX Codex +1 ★ 328звёзд репо d2c d2c-ai Плагин d2c превращает фреймы Figma в код на ваших компонентах и токенах, а потом сам сверяет результат со скриншотом. ★ 8звёзд репо taste Senlin Разбирает дизайн любого сайта по URL и сохраняет токены (цвета, шрифты, сетку) и обоснования выбора в .md и .json. Запускается командой /taste <url> или фразой вроде «разбери дизайн vercel.com». CX Codex +1 707установок extract-design Manavarya09 Скилл extract-design для Claude Code анализирует сайт по URL и собирает его дизайн-систему в файлы. Переносит цвета, шрифты и другие решения в проект. CX Codex +1 3 500установок figma heygen-com Импортирует дизайн из Figma в видео HyperFrames: ассеты, токены бренда, компоненты, шейдеры и анимацию. Работает на этапе сборки, рендер не обращается к Figma. CX Codex +1 466 500установок design-system-patterns Seth Hobson Скилл design-system-patterns для Claude Code, Codex и Cursor с паттернами архитектуры дизайн-систем: токены, темизация, компонентные библиотеки. Включается при создании токенов, переключении тем и закладке фундамента UI. CX Codex +1 15 953установок build-design jakubkrehel Скилл build-design переносит интерфейс из Figma или скриншота в код проекта. Подбирает существующие токены и компоненты вместо вёрстки с нуля. CX Codex +1 11 100установок

Из того же набора45

Весь набор →
coordinated-data-views Скилл coordinated-data-views для ИИ-кодинга, который подсказывает, как связать таблицу с картой, диаграммой или графиком и синхронизировать выделение в обе стороны. CX Codex +1 843установок tab-navigation Скилл tab-navigation для проектирования вкладок: подсказывает, когда они уместны, как устроена полоса вкладок и как ведёт себя клавиатура. CX Codex +1 842установок authentic-product-representation Скилл authentic-product-representation для Claude Code заменяет lorem ipsum реальными данными в лендингах и демо-панелях. Используется при вёрстке hero-блоков и скриншотов продукта. CX Codex +1 831установок domain-expert-configuration Скилл domain-expert-configuration для Claude Code помогает проектировать панели настроек для пользователей без технического бэкграунда. Включается в задачах о configuration, settings panel, solver или constraints. CX Codex +1 830установок app-shell Скилл app-shell для Claude Code задаёт правила для шапки, переключателя сервисов, сайдбара и строки статуса. Помогает упорядочить навигацию мультисервисных систем. CX Codex +1 504установок sizing-units Скилл sizing-units учит агента выбирать единицы измерения в CSS по смыслу: rem для текста, px для границ, относительные для контейнеров. CX Codex +1 437установок surface-separation Скилл surface-separation учит агента разделять карточки, панели и контейнеры одним способом — рамкой, тенью или заливкой — и держать прозрачность для состояний. CX Codex +1 378установок marketing-vs-product-system Скилл marketing-vs-product-system задаёт правила дизайн-токенов при расхождении лендинга и интерфейса сервиса. Помогает сохранить единый бренд при разной плотности экранов. CX Codex +1 373установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой