Command Palette

Search for a command to run...

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

replica

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

Same-design migration — re-platform a site to AEM Edge Delivery (or any clean front end) keeping its current design near pixel-perfect. Recreates key pages…

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

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

stardust:replica — same-design migration

Same pages, same content, same design — new platform. The target spec IS the captured current state, the only permitted deltas are the entries of an explicit inconsistency register, and every archetype passes a measured source-fidelity gate against the live site before anything ships.

  1. No creative decisions. The direction step is mechanical promotion of the captured spec: the stardust direct skill is never invoked and impeccable craft is never delegated to (its redesign gates do not apply — a "tastefully improved" section is a failing section).
  2. Recreation, not copying. Archetypes are clean semantic HTML/CSS authored from captured content and from values MEASURED on the source — never DOM copies, never ported page-level stylesheets. Fidelity is proven by instruments, not asserted.

Inputs

  • <URL> — required. The site to migrate.
  • --breakpoints <list> — optional. Gate widths, default 1440,360; each gets its own gate pass (mobile is not free — gate doc § Per-breakpoint).
  • --target-breakpoints <list> — optional. Mobile-first min-width steps (e.g. 600,900,1200) the delivered site switches layout at instead of the source's. Absent = source breakpoints kept, every target step below skipped. Persisted in DESIGN.json extensions.breakpoints.target.
  • --register <file> — optional. Inconsistency items to seed the register (Phase 2). Without it and without an audit the register is empty.
  • --first-page <url|home> — optional; hands-off home. The page a full-site run delivers first (reference/first-page-first.md).

Setup

  1. Run the master skill's setup (../stardust/SKILL.md § Setup). Flow guard: if state.json.flow is redesign, refuse — print the never-mix line and the switch command ($stardust replica --switch-flow; master skill § Two migration flows). If flow is absent, stamp flow: "replica", flowSource: "user-phrase".
  2. Probe the gate's deps from the project root — node -e "import('pixelmatch').then(()=>process.exit(0))" (and playwright, pngjs, cheerio) — and only on failure install them AS devDependencies, never --no-save (npm i -D playwright pixelmatch pngjs cheerio --legacy-peer-deps): ESM resolves from the project root, and the delivered repo carries what is installed.
  3. Copy scripts into the project and run them from there: this skill's scripts/ to stardust/scripts/replica/, ../stardust/scripts/ to stardust/scripts/stardust/, ../migrate/scripts/ to stardust/scripts/migrate/ and ../diff/scripts/ to stardust/scripts/diff/ (siblings — the gates import across them). Never into the project-root scripts/: that is the EDS boilerplate's.

The context is the budget — read reference/reading-discipline.md once at Setup. Reference docs by section (section.mjs <doc> --list, then one heading per call); captures through css-rules.mjs, json-query.mjs and html-slice.mjs; instrument output through run-bg.mjs wait and log --grep, never cat; script flags from ../stardust/reference/scripts-index.md, then --help, never the source.

Procedure

Five phases. 1 and 5 delegate to existing skills unchanged; 2–4 are replica's. A full-site run opens first page first (reference/first-page-first.md). Every phase opens with node stardust/scripts/stardust/ledger.mjs replica <phase> start as its FIRST command and closes with the end line plus its section in stardust/journal.md (../stardust/reference/run-status.md).

Phase 1 — EXTRACT (delegate to $stardust extract --prep --dynamics)

Invoke $stardust extract <URL> --prep --dynamics, unchanged. Replica consumes the full migration inventory: stardust/current/pages/<slug>.json (the verbatim source of every string), the per-page screenshots, the captured fonts and media, the descriptive PRODUCT.md / DESIGN.md / DESIGN.json, state.json.pages[].type (each type becomes one archetype) and DESIGN.json.extensions.modules[] (block candidates).

Surface extract's summary with the flow line first — "Flow: replica — the design is kept. Say switch to redesign now if it is to change." (switch to redesign runs $stardust prepare-migration --switch-flow; the extract is reused, nothing else is.)

Bounded entry (one page, or a pilot): $stardust extract <URL> --single --dynamics (or --pages <slug,...> --dynamics) is a first-class way in. It provides what recreation needs per page; it skips page typing and module detection, needed only when Phase 5 fans out, and the descriptive synthesis (Phase 2 takes the bounded promotion branch).

If extract fell back to headed Chrome, the gate captures need --headed too.

Phase 2 — PRESERVE DIRECTION (mechanical — never invoke the stardust direct skill)

Full contract: reference/preserve-direction.md.

  1. Promote stardust/current/PRODUCT.md, DESIGN.md, DESIGN.json verbatim to th
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

CHANGELOG.mdreference/first-page-first.mdreference/handoff-contract.mdreference/preserve-direction.mdreference/reading-discipline.mdreference/recreation-procedure.mdreference/source-fidelity-gate.mdscripts/anchor.mjsscripts/breakpoint-lint.mjsscripts/cap-probe.mjsscripts/chrome-parity.mjsscripts/crop-compare.mjsscripts/css-rules.mjsscripts/diff-report.mjsscripts/foundation-freeze.mjsscripts/gate-all.mjsscripts/gate-evidence.mjsscripts/gate.shscripts/html-slice.mjsscripts/json-query.mjsscripts/measure.mjsscripts/motion-compare.mjsscripts/motion-observe.mjsscripts/pixel-compare.mjsscripts/reference-url.mjsscripts/reference.mjsscripts/rounds.mjsscripts/row-profile.mjsscripts/run-bg.mjsscripts/run-capped.mjsscripts/section.mjsscripts/sibling-variance.mjsscripts/source-spec.mjsscripts/stitch-shot.mjs

FAQ

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

Same-design migration — re-platform a site to AEM Edge Delivery (or any clean front end) keeping its current design near pixel-perfect. Recreates key pages (one archetype per page type) as clean re-authored HTML/CSS (never DOM copies), verifies each against the live site with a measured source-fidelity gate (structural + visual + stitched pixel diff per breakpoint), then hands off to migrate/deploy/rollout for site-wide delivery (subsumes prepare-migration's prep cascade — never chain the two). The only permitted design changes are entries in an explicit inconsistency register. Use when the user says "migrate this site keeping its current design", "same-design migration", "pixel-perfect replatform to AEM", or "keep the design, change the platform". NOT for redesigns — those are the stardust core pipeline (direct/prototype) or uplift.

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

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

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

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

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

Сравнить replica с