/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
Claude Code
$ npx -y skills add adobe/skills --skill replica --agent claude-code
Codex
$ npx skills add adobe/skills --skill replica -a codex -y
Cursor
$ npx skills add adobe/skills --skill replica -a cursor -y
Gemini CLI
$ npx skills add adobe/skills --skill replica -a gemini-cli -y
GitHub Copilot
$ npx skills add adobe/skills --skill replica -a github-copilot -y
OpenCode
$ npx skills add adobe/skills --skill replica -a opencode -y
Windsurf
$ npx skills add adobe/skills --skill replica -a windsurf -y
SKILL.md
replica.SKILL.mdname: replica
description: 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.
license: Apache-2.0
compatibility: Requires Node 22+, Playwright with Chromium resolvable from the project, and the impeccable skill (github.com/pbakaus/impeccable) installed alongside stardust.
metadata:
version: "1.8.5"
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-
Read more
name: replica description: 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. license: Apache-2.0 compatibility: Requires Node 22+, Playwright with Chromium resolvable from the project, and the impeccable skill (github.com/pbakaus/impeccable) installed alongside stardust. metadata: version: "1.8.5"
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-
Skills that teach AI coding agents to work with Adobe products. A skill is a folder with a SKILL.md that an agent loads when a task calls for it (agentskills.io).
Other skills on skills.
More skills from other plugins.
karpathy-guidelines
Behavioral guidelines to reduce common LLM coding mistakes. Use when writing, reviewing, or refactoring code to avoid…
agent-builder
Design and build AI agents for any domain. Use when users: (1) ask to "create an agent", "build an assistant", or "design an AI…
Questions about replica.
- Which coding agents can use replica?
- replica installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

