Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

clone-website

БесплатноБез исполняемых скриптовНе проверен

Rebuilds an existing website as a clean new codebase that looks and behaves like the original: captures pages, breakpoints, design tokens, assets and…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Clone Website

Overview

Cloning a website here means rebuilding it: fresh code in a modern stack that renders the same pages at the same widths and reacts the same way to a hover, a click or a scroll. Nothing is lifted out of the old site's bundles. The agent watches the live site through a browser tool, writes what it measures into a capture/ folder, builds from that record, and shows the match with screenshots compared pixel by pixel.

Five stages: settle the right to copy, capture, plan, rebuild one section at a time with a diff after each, hand over a parity report. A full copy is for a site the user owns or has the owner's permission to copy. Someone else's site can only serve as a layout reference for the user's own brand. The skill does not produce look-alikes of another brand.

Instructions

1. Settle rights and scope before the browser opens

Ask whatever the conversation has not answered yet:

  1. Whose site is it: yours, a client's (who agreed, and how), or another company's?
  2. What is the rebuild for: a move to a new stack, a base for a redesign, or a look wanted for a different business?
  3. Which pages are in scope, and where will the content live afterwards (in the code, Markdown, a CMS)?
  4. Is there a project to build into, or is the stack open?

Choose a lane and record it, with the user's answer, at the top of capture/plan.md:

Lane When What is reproduced
Faithful rebuild The user owns the site, or its owner authorized the copy Layout, styling, behaviour, and the owner's own text, images and logo
Reference build The site is somebody else's Section order, grid, spacing rhythm and interaction ideas. Name, logo, copy, images, palette and typefaces are the user's own
Decline Another brand's sign-in, checkout, payment or account-recovery page; a wish to keep that brand's name or logo; a copy meant to be mistaken for the original Nothing. Explain, and offer a reference build

Ownership cannot be verified from a chat, but a story that does not fit can be noticed. An owner can reach the CMS, the hosting or the DNS, or can name who does. Warning signs: the target is the login of a bank, shop, mail or social service the user does not run; the new domain is spelled almost like the target's; "visitors should not notice the difference". Any of these moves the request to Decline, whatever purpose is given (a demo, a test, staff training).

Manners while capturing: a handful of page loads, not a crawl; respect robots.txt; never work around a login, paywall or bot check; signed-in pages only through a session the user opens on their own account.

2. Capture the source into capture/

Every step below is a page load, a resize, a script run in the page, or a screenshot, so any browser tool will do: browser_navigate, browser_resize, browser_evaluate and browser_take_screenshot in Playwright MCP; navigate_page, resize_page, evaluate_script and take_screenshot in Chrome DevTools MCP; or a Playwright script (npm install --save-dev playwright pixelmatch pngjs, then npx playwright install chromium). The scripts below are the repeatable route; with an MCP tool alone, perform the same sequence by hand and keep the file names.

Pages. Read sitemap.xml, the navigation and the footer. Group the URLs by template (home, listing, detail, article, legal) and capture one URL per template. For a faithful rebuild also note each page's path, title and meta description: the new site must keep them or redirect them.

Tokens, breakpoints, assets. Run this function in the page at the widest viewport and save what it returns as capture/survey.json:

() => {
  const tally = (map, key) => key && map.set(key, (map.get(key) || 0) + 1);
  const seen = { text: new Map(), fill: new Map(), family: new Map(), type: new Map(), space: new Map(), radius: new Map(), shadow: new Map(), maxWidth: new Map() };
  const assets = [];
  for (const el of document.body.querySelectorAll('*')) {
    const box = el.getBoundingClientRect();
    if (!box.width || !box.height) continue;
    const cs = getComputedStyle(el);
    if ([...el.childNodes].some((n) => n.nodeType === 3 && n.textContent.trim())) {
      tally(seen.text, cs.color);
      tally(seen.family, cs.fontFamily);
      tally(seen.type, `${cs.fontSize} / ${cs.lineHeight} / ${cs.fontWeight}`);
    }
    for (const gap of [cs.paddingTop, cs.paddingLeft, cs.rowGap, cs.columnGap]) if (/^[1-9]/.test(gap)) tally(seen.space, gap);
    if (cs.backgroundColor !== 'rgba(0, 0, 0, 0)') tally(seen.fill, cs.backgroundColor);
    if (cs.borderTopLeftRadius !== '0px') tally(seen.radius, cs.borderTopLeftRadius);
    if (cs.boxShadow !== 'none') tally(seen.shadow, cs.boxShadow);
    if (cs.maxWidth !== 'none') tally(seen.maxWidth, cs.maxWidth);
    for (const m of cs.backgroundImage.matchAll(/url\("([^"]+)"\)/g)) assets.push({ kind: 'background', url: m[1] });
  }
  for (const img of document.images) asse
Полный SKILL.md на GitHub

Установить clone-website в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

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

Rebuilds an existing website as a clean new codebase that looks and behaves like the original: captures pages, breakpoints, design tokens, assets and interaction states with a browser tool, plans the build, rebuilds section by section and proves each one against the capture with a pixel diff. Use when the user says "clone this website", "rebuild my site in Next.js or Astro", "recreate this page pixel-perfect", "move my Webflow or WordPress site to code" or "copy this layout". Full copies are only for sites the user owns or is authorized to copy; for anyone else's site it borrows the layout ideas and never the brand, content or sign-in pages.

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

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл clone-website запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить clone-website с