/stardust:reskinfrom stardust
Rebuilds an existing site's pages with byte-faithful content onto a donor design system from another live site, local HTML prototypes, or Figma. Use for reskinning, rebranding, or applying a new design to existing content.
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.
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:
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.
<content-url> — required. The site whose content is preserved.--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.../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.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.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.stardust/state.json records a different
site.originUrl, stop and ask before mixing sites, per
../extract/SKILL.md § Setup.--all
(reference/full-site.md § Full-inventory check).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:
--donor <url>):
$stardust extract <content-url> --all --design-source <donor-url>,
unchanged; it stamps state.json.designSource
(../extract/SKILL.md § Cross-site brand sources).--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.--donor-figma <url>): no browser, no donor crawl.
$stardust extract <content-url> --all, then
node stardust/scripts/reskin/figma-donor.mjs capture <figma-url>
(the whole file), author stardust/reskin/curation-rules.json,
then curate and stamp. Judge the result against the frame
screenshots; fix it in the rules. Recipe, scope and the one-subagent
ingest: reference/donor-sources.md § Figma.Type every inventory page before Phase 2 and print the count per
type with its archetype (reference/full-site.md § Page typing).
Then author two reskin-owned donor artifacts (contracts in
reference/donor-sources.md; for a Figma donor curate writes both):
stardust/reskin/donor-tokens.json — the curated, probe-able
token sheet: every value a computed-style string the Phase 5 probe
can assert verbatim, citing the donor page it came from.stardust/reskin/donor-modules.md — the enumerated module
vocabulary (M1..Mn): one row per donor module with where-seen
screenshot evidence and an anatomy description. This is the closed
set the Phase 3 mapping brief maps onto. Its EDS block column is a
proposal settled by deploy Step 2
(D1/D11) — reference/donor-sources.md § donor-modules.md.Pin one donor reference page per module family (hard) when donor
pages disagree on a token; record it in donor-tokens.json
(curatedFrom) and demote the rest to corroboration
(reference/donor-sources.md § Pin one reference page).
The new capability: a byte-oriented capture of each content page — distinct from extract's design-oriented capture. Run the ported capture script per page:
node stardust/scripts/reskin/capture-content.mjs \
--url <page-url> \
--scope '<sel1,sel2!,...>' \
--normalize stardust/reskin/normalize/<slug>.mjs \
--out stardust/reskin/content-model/<slug>/
It writes stardust/reskin/content-model/<slug>/content-model.json
(contract: reference/content-model.md): per slot, the content and
the ordered stream Phase 4 renders; per page, full SEO metadata,
the normalized visible text (the content-gate reference) and a
screenshot.
Two declarations are mandatory per page, because they are the experiment's top two failure modes:
main or
#content blind: a hero inside <header> once dropped 30% of a
page and the byte gate still "passed". Run the scope-discovery
procedure (reference/content-model.md § Scope discovery) and
widen with multi-scope selectors until everything visible that is
not declared chrome is in the model; check the capture's coverage
line (bodyTextLen / scopeTextLen / h1InScope). Chrome exclusions
are declared deltas, not silent omissions.stardust/reskin/normalize/<slug>.mjs (extends
scripts/source-normalize.mjs). The same file is passed to the
capture and to every gate (--normalize). Format:
reference/content-model.md § Normalization ledger.Author stardust/reskin/mapping.md — the cross-origin mapping brief.
Full contract and entry schema in reference/mapping-brief.md. Per
every content slot in the content model:
donor-modules.md's closed
vocabulary) + a one-line rationale grounded in slot anatomy vs
module anatomy;{mapped, new-module, chrome, carried-invisible} —
the last for sr-only/visually-hidden content inside the byte scope
(carried verbatim into an equivalent hidden element, no donor
module; reference/mapping-brief.md § Status semantics).Gates before any rendering:
mapped onto named donor modules. Below
that, the donor vocabulary doesn't cover this content — stop and
surface (see § Stop conditions).new-module entry is explicitly composed from donor
tokens (name the tokens it borrows: input spec + primary button
spec, etc.) and listed in the brief's stats block. New modules are
never silently improvised mid-render.text-transform only (reference/mapping-brief.md § Casing policy).Composite source sections (one wrapper div holding two logical regions) are split into atomic slots in the brief — section ≠ slot.
Figma donor: map first, then run figma-donor.mjs templates; a
bound type fits its template (reference/templates.md).
Then write stardust/reskin/mapping.json, the same decisions in the
shape the renderer reads (reference/mapping-json.md);
stream-render.mjs --check <slug…> must exit 0. Every later
per-section decision is made there and re-rendered, never in the page
or the EDS blocks alone.
The page is generated from content-model.json, never retyped by hand.
stream-render.mjs <slug> --register --type <page type> renders any
donor and site (flags: reference/render.md); write a per-archetype
renderer only where it falls short. The renderer interpolates every visible string, href and image URL from the model
(HTML-escaped), emits the ordered stream in order and never rebuilds
order or separators from visibleText, renders form controls as
controls, carries the metadata block verbatim, crops images to the area the
source shows, takes its surface only from donor-tokens.json
(render/root-tokens.mjs) and the mapped modules, wraps each mapped
slot in <section data-slot data-module>, and writes
stardust/reskin/pages/<slug>.html. A text parse that does not
reproduce its node throws. Rules: reference/render.md.
Keep behaviour. A source pattern keeps its behaviour: sticky or
fixed trays (an ISI), modals, collapsed
accordions, fragment-loaded content. The content gate measures them
expanded and resolved, so never inline, open or un-stick one to pass
a gate; if a gate still can't read it, log a gate.limitation
residual. Content the source keeps on screen stays on screen. Each
captured behaviour is kept or dropped with a why in mapping.json.
Three gate families per page, plus (d) for a Figma donor and (e) for
a deployed page. Commands, pass bars, tolerances and failure modes:
reference/gates.md.
dom-equality.mjs (visible-text byte
equality, the ordered image set and image crop, with the page's
normalize ledger) and slot-coverage.mjs (every slot, CTA pair, image and
metadata field). All must pass.donor-probe.mjs asserts the
donor tokens as computed styles, then the side-by-side
judgment against the donor screenshots; record the verdict.
Paths in donor-tokens.json coverage.absent are SKIPs in the
probe, so copy each into every page's flags[] in ledger.json.page-sanity.mjs (nothing added, page language, layout).stardust/reskin/figma-checks/<slug>.json from figma-gate.mjs boxes --module Mn, run figma-gate.mjs all under run-bg. B0 join, B1
geometry, B3 tokens and the template page match block; B2 pixels advisory. Exit 124 is no
verdict, re-run once.deployed-gate.mjs on the page's aem.page preview,
never published; an auth-protected preview stops with exit 2. It
replaces only deploy Step 10's automated reconcile: the eyeball,
CLS and header checks stay mandatory. Recipe, delta file and budget:
reference/deployed-leg.md.Two fix iterations per gate family ((e) has its own budget), then
re-run all gates. Failures left are residuals[], never absorbed or
looped on. The ledger is written by script, never by hand:
reskin-ledger.mjs record|eyeball|residual|step10|flag|delivery
(reference/gates.md § Residual logging). An agent never accepts
its own blocking failure: a (d) figma.*, exact, step10 or
header/footer residual is --verdict needs-owner; only --by user
accepts one. A hands-off run keeps a module that fits the content
(recorded fallback); a join failure or a module that fits nothing is
remapped to the closest other kit module, and only then the source's
own block (reference/gates.md § Fallback ladder).
Reskin owns the archetype pages; scale and shipping are the existing
pipeline, unchanged. The default is the whole site; archetypes-only
delivery is an opt-out the user asks for in words, recorded in
ledger.json#delivery (reference/full-site.md § Delivery scope).
reference/handoff.md). The user
approves the archetype (state.mjs advance <slug> --to approved --by user); an agent may only in a hands-off run (handsOff: true,
--by hands-off), once every gate is PASS or covered by a residual
the script lets it accept, and the eyeball recorded; state.mjs
refuses otherwise. A needs-owner residual stops the run at
handoff with the report. Then reskin-ledger.mjs record <archetype>,
canon-from-reskin.mjs <archetype>, render the siblings, and
reskin-preflight.mjs must exit 0. Never run prepare-migration or
direct under flow: reskin.migrate skill with the donor-pinned
target (direct reads Phase 1's designSource stamp; a bounded
capture records the donor origin in the handoff instead). Every
non-archetype page renders at the sibling tier; a type without an
archetype gets one, never a skip. Gate each migrated page
(reference/handoff.md § Sibling gate). Content rules:
../migrate/reference/content-preservation.md, inherited wholesale.deploy and rollout skills — rollout
over the full migrated tree. An archetype's first deploy is (e),
preview-only; publishing is theirs. Donor-module blocks pass the EW
gate (block-roundtrip --ew, deploy Step 8).donor-modules.md
row gets built (reference/vocabulary.md);
vocabulary-check.mjs --library <dir> exits 0 before handoff.Reskin's state is stardust/reskin/ledger.json (gated | failing,
gates, eyeball, residuals, handoff). In state.json it stamps flow,
designSource and pages[].type, registers rendered pages, approves
the archetype and, through the bridge, moves siblings to directed.
donor-modules.md or an
explicit new-module entry in mapping.md.donor-tokens.json. A licensed donor font is adopted as the
family token string with local fallback, never rebundled
(reference/gates.md § (d)).mapping.md, executable in the normalize module.flags, delivery, residuals
and approvals go through reskin-ledger.mjs and state.mjs only.Every path a run writes: reference/outputs.md.
reference/donor-sources.md — donor capture recipes (URL, directory,
Figma), token and module contracts.reference/content-model.md — capture contract, ordered stream,
scope discovery, normalization ledger.reference/full-site.md — inventory, page typing, delivery scope.reference/mapping-brief.md — entry schema, the ≥80% gate, casing.reference/mapping-json.md — mapping.json keys and --check.reference/render.md — stream-render and renderer rules.reference/handoff.md — approval, bridge, preflight, sibling gate.reference/gates.md — gate commands, pass bars, residuals; (d), (e).reference/deployed-leg.md — the deployed leg.reference/vocabulary.md — building the whole donor vocabulary.../extract/SKILL.md § Cross-site brand sources — the
--design-source donor-capture path Phase 1 delegates to.../migrate/reference/content-preservation.md — the content rules
reskin inherits (and tightens to byte level).../diff/SKILL.md — the pixel + structural probes; reuse them as a
supplementary build-side check after Phase 6 deploy, --profile eds.CHANGELOG.md (opens in a new tab)reference/content-model.md (opens in a new tab)reference/deployed-leg.md (opens in a new tab)reference/donor-sources.md (opens in a new tab)reference/full-site.md (opens in a new tab)reference/gates.md (opens in a new tab)reference/handoff.md (opens in a new tab)reference/mapping-brief.md (opens in a new tab)reference/mapping-json.md (opens in a new tab)reference/outputs.md (opens in a new tab)reference/render.md (opens in a new tab)reference/templates.md (opens in a new tab)reference/vocabulary.md (opens in a new tab)scripts/canon-from-reskin.mjs (opens in a new tab)scripts/capture-content.mjs (opens in a new tab)scripts/deployed-gate.mjs (opens in a new tab)scripts/deployed/child.mjs (opens in a new tab)scripts/deployed/content.mjs (opens in a new tab)scripts/deployed/deltas.mjs (opens in a new tab)scripts/deployed/eds-spec.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
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.npx claudepluginhub adobe/skills --plugin stardustOther plugins' skills for the same job