/stardust:replicafrom stardust
Re-platforms a site to AEM Edge Delivery (or any clean front end) preserving the current design pixel-perfect. Recreates pages as clean HTML/CSS, verifies fidelity via structural, visual, and pixel-diff gates per breakpoint.
Ships in stardust. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
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).<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).../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".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.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.
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).
$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.
direct skill)Full contract: reference/preserve-direction.md.
stardust/current/PRODUCT.md, DESIGN.md, DESIGN.json
verbatim to the project root as the target spec — no divergence roll, no
re-direction. Bounded entry: those files do not exist; take the bounded
promotion branch (§ 1a, provenance bounded-single). Never mix the two.stardust/direction.md: what was promoted, from where, the
provenance and the register pointer — what tells downstream skills the
direction step happened.stardust/replica/inconsistency-register.md — the ONLY permitted design
deltas. Sources: audit design findings (only when the user wants
improvement candidates) and --register items; every entry carries
captured evidence, the minimal change and a status. An empty register is
a pure replica, a valid and common outcome.--target-breakpoints), before any CSS
exists (§ 4): persist the list, map each source breakpoint to a step in
stardust/replica/breakpoint-map.md, seed the ONE register entry.dynamics skill, Phases 1–3): run the
detector on the archetypes, draft the triage, curate
stardust/dynamic-features.md and its plan — every row gets a
disposition (skills/dynamics/reference/triage.md). This is what
surfaces the modals, forms, search and host-bound APIs a pixel gate
certifies as correct.Anything not in the register is out of scope for change: a recreation choice that "improves" something unregistered is a fidelity bug.
Full method: reference/recreation-procedure.md (§ Authoring order). For
each page type (archetype: the type's rep_url in a spec's
archetypes.json) author stardust/prototypes/<slug>-proposed.html (+ its
CSS):
node stardust/scripts/replica/source-spec.mjs capture <live-url> --slug <slug> --widths 1440,360 writes a spec per width and the header and
footer inventory. Author from them.current/pages/<slug>.json — headings, body,
CTAs and hrefs, alt text, metadata
(../migrate/reference/content-preservation.md): no rewording.css-rules.mjs. The container model is
measured (DESIGN.json extensions.breakpoints; a bounded entry runs
cap-probe.mjs <live-url> --write-design stardust/current/DESIGN.json
first). Any other live-vs-prototype box check goes through
measure.mjs --against, never an authored probe.source-spec.mjs compare <spec> <prototype-url> exits 0 at every
width BEFORE the first gate round.Fonts (§ Fonts policy): the captured faces are self-hosted as-is,
proprietary ones with deploy's licensing alert and one register entry; a
substitute renders only a face with no captured file, declared in
stardust/replica/font-subst.txt.
With a target set, every @media rule and JS width threshold is
authored on the target steps from the first line per breakpoint-map.md;
breakpoint-lint.mjs exits 0 on a prototype before its gate.
Every archetype gets its own standalone prototype — cumulative, never skipped. Never go straight to platform authoring for a new archetype: direct-authored pages plateaued at 8–16 % in the field, prototyped ones at 3.5–5.6 %. Each new prototype imports the shared layers already gated and iterates only on its new modules (§ Cumulative archetype prototypes).
CSS-portation is the per-section fallback only (§ CSS-portation fallback): paint effects not recoverable from computed styles, JS-hydrated widgets, video or animated heroes — the minimal source rules, scoped, never page-level.
Full contract: reference/source-fidelity-gate.md ("gate doc"). Per
archetype, per breakpoint, live URL against the served prototype:
PROTO="http://localhost:8791/<slug>-proposed.html" # ONE server, ONE port; one that answers but is not yours is never killed — take another port
LIVE="https://<site>/<path>" # state.json pages[].url (gate doc § Hardening rule 13)
G=stardust/replica/gates/<slug>-1440
# A round = gate.sh through run-bg, never a hand-written wrapper. The FIRST round of a
# breakpoint and the CONFIRMATION round after the last fix run --full; the others are pixel rounds.
node stardust/scripts/replica/run-bg.mjs start --name <slug>-1440-iter1 -- \
stardust/scripts/replica/gate.sh <slug> "$LIVE" "$PROTO" 1440 iter1 --full --main "<content-root>"
node stardust/scripts/replica/run-bg.mjs start --name <slug>-360-iter1 -- \
stardust/scripts/replica/gate.sh <slug> "$LIVE" "$PROTO" 360 iter1 --full --main "<content-root>"
node stardust/scripts/replica/run-bg.mjs wait # verdict lines; exit 75 = still going → wait again as the NEXT step
# header and footer: style parity BEFORE any pixel round on them (exit 0 = quiet)
node stardust/scripts/replica/chrome-parity.mjs "$LIVE" "$PROTO" --width 1440 --live-cache $G/chrome-live.json
# content-cap row: once per archetype after the 1440 pass, at DESIGN.json's derived probeWidth
node stardust/scripts/replica/cap-probe.mjs "$LIVE" --against "$PROTO" --design DESIGN.json --slug <slug> --main "<content-root>"
# when the archetypes pass: the prototype table, one run per width — a prototype without a row is ungated
node stardust/scripts/replica/gate-all.mjs --stage prototype --proto-base "$PROTO_BASE" --width 1440
gate.sh --help lists the flags and exit codes. Its verdict lines are the
pass bar (gate doc § Pass bar): content-diff 0 🔴 and 0 nothing-lost 🟡;
visual-diff flags none or justified; pixel aligned ≤ 10 % with the offsets
within their bound; |Δh| ≤ 8 px; Clipped: 0; declared repeated units
within 4 px; no horizontal overflow; cap-probe: PASS. Exit 124 (deadline),
5 (unstable reference), 7 (not the inventory's page: § Hardening rule 13) and 3
(blocked — escalate --headed) are never a verdict: fix the capture and
re-run.
gate.sh exits 6 at the cap until
rounds.mjs decide records the decision; residuals are logged, never
iterated past it.run-bg.mjs (start, then wait in ≤ 100-second slices) —
never in the foreground, never two as parallel tool calls, never behind a
sleep.--consent, --dismiss, --headed, --locale, --main — --main body is never valid); a project copy with hand-edits is a defect. The
list: gate doc § Hardening rules.Interaction parity is a REQUIRED gate output per archetype, after the
static gate passes (reference/recreation-procedure.md § Interaction
parity): motion is OBSERVED with motion-observe.mjs, never inferred from
classes or CSS; only what fired is implemented; the prototype is observed
the same way and compared with motion-compare.mjs. Record
motion: {observed, implemented, dead[]} in progress.json, then re-run
the pixel round — the number returns to the gated value.
When all breakpoints pass, present the archetype and its gate metrics for
approval (hands-off records approvedBy: "hands-off"). Bookkeeping is one
command each, never a hand-built JSON line: node stardust/scripts/stardust/state.mjs advance <slug> --to approved --by hands-off --prototype stardust/prototypes/<slug>-proposed.html and node stardust/scripts/stardust/ledger.mjs replica source-fidelity-gate end --detail "<per-breakpoint numbers>". Resuming a run starts with
ledger.mjs tail and state.mjs summary --slugs, not cat.
Read the contract card first: reference/handoff-contract.md — the
migrate, deploy and rollout rules this phase needs, the rollout ledger phase
strings, one usage line per script. Read it by section (section.mjs <doc> --list, then the section a step needs), never whole, and never the
sibling SKILL.md files whole.
migrate at sibling tier
(../migrate/reference/fidelity-tiers.md), only AFTER their archetype is
live and gated at the published origin (contract § 3 row C). Siblings
inherit the archetype's encoder, never a new one; template constancy is
measured first (sibling-variance.mjs), content fidelity per page at
import.deploy per page: template-slotted for fixed
compositions, reconstructive for repeat groups; blocks obey the
editability contract and pass block-roundtrip --ew.rollout, unchanged. C-deliver runs in recorded
units (contract § 3 row C, Fan-out discipline): the foundation first,
gated on the published origin with the header contract, then frozen (no
frozen file is edited mid-wave); each
archetype deployed and gated on its preview URL BEFORE its siblings
render; one subagent per template cluster; C-final.breakpoint-lint.mjs into npm run lint.gate.sh <slug> "$LIVE" "<preview-url>" <width> pub1 --full --marker "<brand or domain string>"
through run-bg.mjs, in the page's ordinary gate dir. Nothing
pixel-shaped runs on the local harness.node stardust/scripts/replica/gate-all.mjs [--only <slug,…>] [--skip-existing] [--eds-host <host>] — pixel, height,
clipped text and missing or hidden content; a page without a row is
ungated. C-final ends with update-coverage.mjs --gate.stardust/
├── state.json, direction.md, journal.md ← core state, the preserve-mode record, the run journal
├── current/ ← from extract
├── prototypes/<slug>-proposed.html ← gated archetypes, one per page type
├── replica/
│ ├── inconsistency-register.md ← the ONLY permitted design deltas
│ ├── breakpoint-map.md ← only with --target-breakpoints
│ ├── spec/<slug>-<width>.json ← the measured source (Phase 3)
│ ├── progress.json ← per page type: rounds, gate results, residuals, motion
│ ├── motion/<slug>.json ← motion-observe evidence
│ └── gates/ ← <slug>-<width>/ per round; prototypes-<width>/ and all-<width>/ tables
├── migrated/ ← from migrate (Phase 5)
└── rollout/ ← from rollout: progress.json (C-deliver units), foundation-freeze.json, foundation-requests.md
PRODUCT.md / DESIGN.md / DESIGN.json ← promoted from current/ (Phase 2)
reference/preserve-direction.md — promotion contract, register schema.reference/recreation-procedure.md — authoring order, CSS lifting, fonts
policy, fixed and sticky chrome, interaction parity, the fallback.reference/source-fidelity-gate.md — the gate: procedure, pass bar,
reading a round, iteration discipline, hardening, the published-origin
and all-pages gates, residual logging.reference/handoff-contract.md — Phase 5 contract card.reference/reading-discipline.md, reference/first-page-first.md.../diff/SKILL.md — the probes replica reuses, the header contract.../migrate/reference/fidelity-tiers.md — the archetype / sibling model.CHANGELOG.md (opens in a new tab)reference/first-page-first.md (opens in a new tab)reference/handoff-contract.md (opens in a new tab)reference/preserve-direction.md (opens in a new tab)reference/reading-discipline.md (opens in a new tab)reference/recreation-procedure.md (opens in a new tab)reference/source-fidelity-gate.md (opens in a new tab)scripts/anchor.mjs (opens in a new tab)scripts/breakpoint-lint.mjs (opens in a new tab)scripts/cap-probe.mjs (opens in a new tab)scripts/chrome-parity.mjs (opens in a new tab)scripts/crop-compare.mjs (opens in a new tab)scripts/css-rules.mjs (opens in a new tab)scripts/diff-report.mjs (opens in a new tab)scripts/foundation-freeze.mjs (opens in a new tab)scripts/gate-all.mjs (opens in a new tab)scripts/gate-evidence.mjs (opens in a new tab)scripts/gate.sh (opens in a new tab)scripts/html-slice.mjs (opens in a new tab)scripts/json-query.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
16 skills in this plugin
/auditFull three-perspective audit of an existing website from one URL — design (tensions + concrete improvement opportunities), SEO/technical, and LLM/AI-search visibility — plus Core Web Vitals, synthesized into a scored, evidence-bound report. Use when the user asks to "audit this site", "site audit", "design audit", "SEO audit", "why is my site underperforming", "LLM visibility", "how does my site look to AI", or invokes `$stardust audit` (`/stardust:audit` in Claude Code) <url>./deployConvert per-page styled HTML prototypes (stardust under stardust/prototypes/**, or claude-design / Mobirise / Relume / Lovable / v0 / Figma-derived pages, or JSX prototypes pre-rendered to HTML, often under samples/) into Edge Delivery Services (EDS / AEM) blocks and content pages, then deploy via DA. Each prototype section becomes one EDS block; the prototype's per-section CSS becomes that block's CSS scoped under the block class. Use when the user wants to lift styled per-page HTML prototypes into a working EDS site under blocks/ and content/./diffReconcile a converted/built web page against its source prototype with two complementary probes — a PIXEL/layout diff (stretched images, dropped wraps, blank renders, colour flips) and a STRUCTURAL content+typography diff (dropped/mis-slotted headings, eyebrows, CTAs; rendered-face font forks). Stack-agnostic via profiles (eds | generic). Use after converting a prototype to EDS/AEM (the stardust `deploy` skill Step 10), or for any prototype↔build fidelity check; invocable as the stardust `diff` skill and from workflows./directSet a redesign direction for an existing website. Analyzes the user's intent, picks a palette and visual direction, and writes the target spec (PRODUCT.md, DESIGN.md, DESIGN.json) plus a reasoning trace at stardust/direction.md. Use when the user asks to redesign a site, refresh the design, set a new design direction, define a redesign target, or invokes `$stardust direct` (`/stardust:direct` in Claude Code)./dynamicsFind, classify, triage, re-implement and verify a source site's dynamic surface (APIs, search, forms, modals, media, tags, client-rendered and sheet-backed content) during a migration to a platform. Migration-bound — invoked by prepare-migration, replica, migrate and rollout, or standalone on an already-migrated site; never for redesign-only work./extractCrawl an existing website (capped, multi-page) and seed stardust/current/ with PRODUCT.md, DESIGN.md, DESIGN.json, a per-page inventory, and the consolidated brand surface — the captured design system, palette, typography, motifs, and voice of the live site. Use when the user wants to analyze an existing site's design, extract or reverse-engineer its design system or brand, capture design tokens from a live site, import a website as the starting point for a redesign, capture the current state before a migration, or invokes `$stardust extract` (`/stardust:extract` in Claude Code). Trigger phrases include "analyze this site", "extract the design tokens", "capture the brand", "crawl the site", "reverse engineer the design". Not for scraping page data or content for its own sake (it captures design evidence, not datasets), and not for the redesign itself — extraction is descriptive; direction and prototyping happen downstream.npx claudepluginhub adobe/skills --plugin stardustOther plugins' skills for the same job