migrate
FreeRuns bundled scriptsNot checkedApply DESIGN, canon, and modules to every page in the inventory, producing a deployable static HTML site. Use to migrate or render the whole captured site…
by adobe★ 342 GitHub starsAbout this skill
stardust:migrate
Apply the target spec authored by direct, the visual canon
written by prototype --prep, and the brand-module catalog
extracted during prepare-migration to every page in the
inventory. Produces a self-contained, deployable static HTML site
under stardust/migrated/. Per-page, incremental, idempotent.
migrate is the final stardust phase. Output is platform-
agnostic HTML — downstream conversion (AEM EDS, a CMS, a
framework) is the job of a separate plugin that consumes
migrated/ plus DESIGN.json plus the per-page _meta.json
sidecars.
The procedure below is an outline. The text of each phase is in skills/migrate/reference/, in the file the phase names. Read that file in full when you reach the phase; never work from a heading alone.
Inputs
<slug>— optional positional. Migrate just this page. Without it, migrate every page whose status isdirected,prototyped, orapproved(and notstale).--all— migrate every page including stale ones.--force— re-migrate every page even when the idempotent skip would skip them.--require-approved— refuse to migrate any non-approvedpage. Default behaviour migratesdirectedpages too (using Path A′ or Path B perreference/template-and-module-rendering.md); this flag flips approval-gating on.--strict-canon— refuse approvals that conflict with canon. Default logs the deviation and continues. Useful for projects where canon discipline matters more than per-template flexibility.--clean— delete assets previously bundled but no longer referenced fromstardust/migrated/assets/. Off by default (migrate is additive). Implies--force: every page is re-rendered so the run'sbundledAssetsSet is the complete union of currently-referenced assets — otherwise--cleanwould risk deleting assets still referenced by idempotent-skipped pages. Seereference/asset-bundling.md§ Stale asset cleanup.--pin-timestamp <ISO8601>— pin the migrate-provenance timestamp so re-runs without source changes produce byte- identical HTML. Default re-uses the current wall clock, which is fine for normal use; CI deployment fingerprinting may want the pin.
The mobile-adapt audit, content-sourcing scan, and placeholder
refusal are all mandatory gates — there is no --skip-* or
--allow-* flag to bypass them. If a gate refuses a page, the
remediation is to fix the proposed file (re-prototype, edit
inline, or run an impeccable command) and re-invoke migrate.
Setup
Playwright re-probe (mandatory first step).
--no-saveplaywright installs from earlier phases are pruned by any later realnpm i(extract SKILL.md § Setup →--no-saveinstalls are ephemeral). Before any rendering step, probenode -e "import('playwright').then(()=>process.exit(0))"from the project root and re-install (npm i -D playwright --no-save --legacy-peer-deps) on failure.Run the master skill's setup (
skills/stardust/SKILL.md§ Setup). Flow guard. Ifstardust/state.jsonexists withoutflowand the ask is a migration (a URL plus "migrate" / "to EDS" / "re-platform"), do not run: print the two-flow table from the master skill § Two migration flows and hand back to its routing — the flow is chosen and stamped there before any sub-skill runs (skills/stardust/reference/state-machine.md§ Flow keys):replicaunless the ask names a redesign. (Recorded:migrate <url>as the first command of two same-design migrations led to a hand-built compiler tuned by eye instead of the replica gate.)Verify
stardust/state.jsonexists with at least onedirectedpage.Verify project-root
DESIGN.mdandDESIGN.jsonexist withDESIGN.json.extensions.canonpopulated.Verify
stardust/canon/exists with at leastheader.html,footer.html,canon.css.Canon auto-bootstrap (when steps 3–4 find no canon). The documented
prototype → migrate → deployhappy path does not runprepare-migration, so a first migrate legitimately arrives with no canon (observed on 4 of 6 e2e sites, where every run had to derive canon by hand to proceed — this is the fix). When canon is absent and at least oneapprovedprototype exists, do not stop: run the canon write-back inline from the first approved prototype (the canon-author, defaulthome) per../prototype/reference/canon-extraction.md§ Five-step procedure — extractheader.html/footer.html/canon.csstostardust/canon/, pin tokens + compositional moves toDESIGN.json.extensions.canon, and recordcanon.source: "auto-bootstrap: <slug>". This is exactly whatprototype --prepdoes on first approval; migrate performs it on demand so the core pipeline never dead-ends. Only stop and recommend$stardust prepare-migrationwhen canon is absent and no approved prototype exists (there is nothi
Install migrate in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the migrate skill do?
Apply DESIGN, canon, and modules to every page in the inventory, producing a deployable static HTML site. Use to migrate or render the whole captured site into the redesigned static tree ("migrate the pages", "render the migrated site", "apply the design to all pages", "build the deployable site", "convert the approved prototype into the full site") — the page-rendering step between prototype and deploy/rollout. Three render branches (approved page, template-applied sibling, unique render), with a declared fidelity tier per page. Per-page, incremental, idempotent, content-preserving by default.
How do I install the migrate skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the migrate skill run scripts?
Yes, this skill bundles executable scripts. Review the source before installing.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic