Command Palette

Search for a command to run...

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

reskin

БесплатноЗапускает вложенные скриптыНе проверен

Rebuild an existing site's pages with byte-faithful content on a separately-defined donor design system — another live site, local static HTML prototypes, or…

adobeот adobe★ 342 звезды на GitHub

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

stardust:reskin — same content, donor design

The user has a site (the content source) and a design that already exists somewhere else (the donor: another live site, or a directory of static HTML prototypes, or a Figma file). Reskin rebuilds the content site's pages so that every visible byte of content survives — text, ordered images, CTAs, SEO metadata — while the surface comes entirely from the donor's tokens and module vocabulary.

The two halves have different contracts:

  • Content is non-negotiable. The gate is byte equality of whitespace-normalized visible text, the ordered visible-image set, and full metadata carry-over. Not "close" — equal, after an explicitly declared, executable normalization ledger.
  • Design is flexible. Content is re-laid-out onto donor modules (a carousel may become a card grid). Structure gates only where a Figma page template fits the type (reference/templates.md).

The decisive rule: the page is generated programmatically from the captured content model — content strings are never retyped. Byte fidelity then holds by construction.

Inputs

  • <content-url> — required. The site whose content is preserved.
  • Donor, exactly one of:
    • --donor <url> — a live site whose design system is adopted.
    • --donor-dir <path> — a directory of local static HTML prototypes (claude-design / Mobirise / Relume / Lovable / v0 / hand-coded). Served on localhost and captured through the same path — recipe in reference/donor-sources.md § Local prototypes.
    • --donor-figma <url> — a Figma file (a design, file, proto or branch URL; the whole file is read, a node-id only recorded), read headlessly over the REST API. Needs a personal access token in FIGMA_TOKEN. Optional --frames <ids> and --confidential (refuses to write anything git would track; sticky for curate and stamp). Flags, schemas, exit codes: figma-donor.mjs --help.
  • --pages <slug,slug,...> — optional. Restrict the content capture (Phases 2–5) to specific pages. Default: the archetype set (one page per page type; a spec's archetypes.json names them; scale to siblings happens in Phase 6 via migrate). Never restricts the inventory: Phase 1 still crawls the whole site.
  • --scope <selectors> — optional. Pre-declare the content-root scope for a single-page run (comma-separated, ! suffix keeps a scope whole; see reference/content-model.md § Scope declaration). Without it, run the scope-discovery procedure per page.

Setup

  1. Run the master skill's setup (../stardust/SKILL.md § Setup): impeccable dep check, context loader, state read. Flow. Stamp state.json.flow: "reskin" if unset (../stardust/reference/state-machine.md § Flow keys); if another flow is set, print it and the switch command ($stardust reskin --switch-flow) instead of running.
  2. Node 22+ and an import probe from stardust/ for playwright, pixelmatch and pngjs. On failure install into stardust/ as its own package root, never into the project (a root install can rewrite the lockfile and prune the project's dev tooling), and never --no-save. After any install git diff --stat package-lock.json must be empty. Commands: reference/gates.md § Install. Re-run the probe at the start of every phase that renders.
  3. Copy the scripts into the project and run the copies, byte-identical, into sibling dirs under stardust/scripts/{reskin,stardust,diff,replica,deploy,prototype}/: every reskin gate script resolves the master skill's browser.mjs there and exits 2 without it. List: reference/gates.md § Project copies. Never edit a copied script (or stardust/rollout/encoder/): a script that can't handle the page is a residual. Read image sizes with node (pngjs, Playwright); python PIL is not assumed.
  4. Origin collision — if stardust/state.json records a different site.originUrl, stop and ask before mixing sites, per ../extract/SKILL.md § Setup.
  5. Full-inventory check — on resume, and again after Phase 1's crawl: a capped crawl is a setup error; re-crawl with --all (reference/full-site.md § Full-inventory check).

Procedure

Phase 1 — INGEST DONOR

The donor's design system is captured separately from the content site, into stardust/canon-source/. The same extract run crawls the content site, always --all and never --prep (reference/full-site.md). Recipes per donor type in reference/donor-sources.md; summary:

  • Live URL (--donor <url>): $stardust extract <content-url> --all --design-source <donor-url>, unchanged; it stamps state.json.designSource (../extract/SKILL.md § Cross-site brand sources).
  • Local prototype dir (--donor-dir <path>): serve it on localhost and run the same --design-source capture against that origin, recording the real provenance in canon-source/_crawl-log.json.
  • **Figma
Полный SKILL.md на GitHub

Установить reskin в Claude Code и Claude Desktop

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

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

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

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

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

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

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

CHANGELOG.mdreference/content-model.mdreference/deployed-leg.mdreference/donor-sources.mdreference/full-site.mdreference/gates.mdreference/handoff.mdreference/mapping-brief.mdreference/mapping-json.mdreference/outputs.mdreference/render.mdreference/templates.mdreference/vocabulary.mdscripts/canon-from-reskin.mjsscripts/capture-content.mjsscripts/deployed-gate.mjsscripts/deployed/child.mjsscripts/deployed/content.mjsscripts/deployed/deltas.mjsscripts/deployed/eds-spec.mjsscripts/deployed/eds.mjsscripts/deployed/fetch.mjsscripts/deployed/inherited.mjsscripts/deployed/io.mjsscripts/deployed/parity.mjsscripts/deployed/preview.mjsscripts/deployed/rows.mjsscripts/deployed/sanity.mjsscripts/deployed/serve.mjsscripts/deployed/stamp.mjsscripts/dom-equality.mjsscripts/donor-probe.mjsscripts/figma-donor.mjsscripts/figma-gate.mjsscripts/figma-gate/boxes.mjsscripts/figma-gate/checks.mjsscripts/figma-gate/derive.mjsscripts/figma-gate/geometry.mjsscripts/figma-gate/io.mjsscripts/figma-gate/join.mjs

FAQ

Что делает скилл reskin?

Rebuild an existing site's pages with byte-faithful content on a separately-defined donor design system — another live site, local static HTML prototypes, or a Figma file read headlessly over the REST API. Content fidelity is gated byte-level (text, ordered images, SEO metadata); design application is flexible (content re-laid-out onto donor modules). Use when the user says "reskin my site with this design", "apply this design system to my content", "restyle my site to look like <other site>", "new design, same content", "rebrand my site using these prototypes", "use this Figma design for my site", or names a content site plus a design donor. NOT for redesigning from intent (that's the stardust core extract/direct/prototype chain) and NOT for keeping the current design while migrating (that's the replica flow).

Как установить скилл reskin?

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

Скилл reskin запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить reskin с