deploy
Originally fromrailwayapp/railway-skills
Installation
SKILL.md
stardust:deploy — prototypes → EDS/AEM
When to use
The user has:
- Per-page styled HTML prototypes — one file per page, each carrying its own CSS. Accept any of these shapes:
- Single-file with inline
<style>and:roottokens + semantic<section class="…">(e.g. stardust output, or claude-design "Stardust"/Mobirise/Relume-style pages). Easiest — convert directly. - External per-page
.css(the<style>lives in a sibling stylesheet). Read the linked CSS the same way you'd read an inline<style>. <x-dc>document-content with everything inline-styled (per-elementstyle="…"). Harder — you must lift inline styles into a scoped block stylesheet.- React/JSX prototypes (an HTML shell that mounts
.jsxcomponents at runtime). Pre-render to static HTML first (run it, or screenshot + read the JSX to reconstruct the DOM); you cannot decorate a shell that has no server-rendered<main>. The prototypes typically live understardust/prototypes/**or asamples/<Name>/folder — don't hard-code the path; discover them.
- Single-file with inline
- An EDS project at the repo root — vanilla
aem-boilerplate(github.com/adobe/aem-boilerplate):scripts/aem.js+scripts/scripts.js,blocks/withheader/footer/fragment,styles/styles.css+styles/fonts.css,head.html. This is the ONLY runtime this skill targets — no runtime files are ever ported, vendored, or edited. - A goal to convert: prototypes → authorable EDS blocks + EDS content pages under
content/**.
If the user has prototypes but no EDS scaffolding, stop and ask whether to scaffold from adobe/aem-boilerplate (use the template as-is; the conversion never modifies scripts/aem.js). If they have EDS but no prototypes, this skill doesn't apply.
Target runtime — vanilla aem-boilerplate (what the generated code can rely on)
The stock boilerplate provides everything the conversion needs; the runtime is never modified. The load chain (head.html → scripts.js → loadEager → loadLazy → loadDelayed) gives you: