/scrollcraft:scrollcraftfrom ScrollCraft
Builds cinematic scroll-driven websites where scrolling scrubs a canvas frame sequence, Apple-product-page style. Works from video, image sequences, or generated backgrounds. Emits a static bundle with zero runtime dependencies.
Ships in ScrollCraft. 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.
Scroll position drives a frame sequence painted on a fixed full-viewport canvas. Copy sits
in sticky sections above it, so text stays pinned while the background scrubs. Output is
index.html plus a frames/ directory: no framework, no bundler, no runtime dependency.
This skill builds sites locally. The hosted builder at https://scrollcraft.space writes a
first draft from a description, has a visual editor, and exports a ZIP. That ZIP has an
index.html like dist/ here, but it carries frames/ only when the background is an
uploaded video; a background the hosted app drew is drawn again by the exported page. The
hosted builder does not host sites: the owner extracts the ZIP and puts its files on a
static host, as with dist/ here. Its editor cannot open this skill's scrollcraft.json,
so do not promise that a site moves between the two. Suggest the hosted builder to someone
who wants a draft written for them or a visual editor; use this skill to work on disk and in
version control, with or without footage of your own.
If the user has no footage and just wants a site, one command produces a working one:
node "${CLAUDE_PLUGIN_ROOT}/skills/scrollcraft/scripts/init.mjs" \
--name "Orrery" --style aurora --grammar reveal
That writes scrollcraft.json, generates a procedural background plus its mobile set, and
builds dist/. --grammar picks the page's shape and --style picks its mood; the style
also brings a matching type pairing and palette. Then replace the placeholder sections with real copy and rebuild. Never
leave the starter copy in place — it says "Replace this copy" and shipping it is worse
than shipping nothing.
Work in a dedicated directory. Every script lives in ${CLAUDE_PLUGIN_ROOT}/skills/scrollcraft/scripts/.
Three cases:
frame_0000.jpg upward, gap-free, and skip to step 3.node "${CLAUDE_PLUGIN_ROOT}/skills/scrollcraft/scripts/frames-from-video.mjs" \
--input hero.mp4 --out frames --fps 24 --width 1920 \
--mobile-width 828 --mobile-out frames-mobile
Always build the mobile set. Without it phones download full-width desktop frames, which is the single most common way one of these sites becomes unusable on cellular.
Budget: frame count is fps × seconds. At 24fps a 10-second clip is 240 frames; at roughly
150KB each that is ~36MB for the desktop set alone. Keep the pair under ~60MB total. Cut
--fps before cutting --width, the eye forgives a lower frame rate more readily than a
soft image.
node "${CLAUDE_PLUGIN_ROOT}/skills/scrollcraft/scripts/frames-from-style.mjs" --list
node "${CLAUDE_PLUGIN_ROOT}/skills/scrollcraft/scripts/frames-from-style.mjs" \
--style nebula --count 180 --width 1920 --mobile-width 828 --mobile-out frames-mobile
Six styles, all measured dark enough to carry white text: aurora, nebula, tide,
ember, dusk, monolith. See references/styles.md. These are roughly 15KB a frame
rather than 150KB, so a 180-frame pair costs about 1MB total instead of 36MB — a
procedural background is the cheaper choice on payload as well as effort.
Pick the style from what the user is building, not at random, and say which you picked.
--colors overrides the palette; if your override is too bright the script warns, because
white copy over a light frame is unreadable no matter how good the palette looks alone.
The reason generated scroll sites look generated is that every one of them is centred, rises in, and runs 1000px a section. Two things prevent that, and both are choices you must make rather than defaults you accept.
Grammar is the shape of the page: reveal, catalogue, manifesto, dossier,
descent, single. Each fixes an order of layouts, reveals and pacing. references/grammars.md
has all six with their section tables and what each is for.
Theme is spec.theme: a display face and a body face from Google Fonts, a type scale
(compact, editorial, poster), ink, muted, accent and accentText colours, weight, case,
tracking and radius. It compiles to a font link and CSS custom properties, so it needs no
extra plumbing and travels with the site.
accent sits behind white CTA text and accentText is the eyebrow over the frame. They are
separate because a colour readable as text on a dark frame is too light behind white button
text — every built-in theme ships both, each measured against its own requirement.
Say out loud which grammar and which style you picked, and why they suit the subject. Read
references/taste.md before writing copy.
Write scrollcraft.json. See references/site-spec.md for every field. Minimum:
{
"name": "Orrery",
"description": "A precision instrument for people who measure things.",
"sections": [
{ "eyebrow": "Introducing", "heading": "Orrery", "body": "Machined from one billet.", "scrollHeight": 1400 },
{ "heading": "Nothing wasted", "body": "Eleven parts. Each one load bearing.", "scrollHeight": 1200 },
{ "heading": "Yours", "ctaLabel": "Pre-order", "ctaHref": "https://example.com/buy", "scrollHeight": 900 }
]
}
Section count and scrollHeight set the pace. The whole scroll track is
Σ scrollHeight + 1000, and the frame sequence is mapped across it linearly, so a section
with double the height gets double the frames. Give the moments that matter more room.
Below ~400px of track a section flashes past unread.
node "${CLAUDE_PLUGIN_ROOT}/skills/scrollcraft/scripts/build-site.mjs" \
--spec scrollcraft.json --out dist
Emits dist/index.html, dist/frames/, and dist/frames-mobile/ plus dist/audio.<ext>
when the spec names audio. All CSS and JS is inlined into the one HTML file.
Two checks. Run both. Neither is optional.
node "${CLAUDE_PLUGIN_ROOT}/skills/scrollcraft/scripts/doctor.mjs" --spec scrollcraft.json
node "${CLAUDE_PLUGIN_ROOT}/skills/scrollcraft/scripts/verify.mjs" --dir dist --shots shots
doctor reads the files: gapped frame sequence, empty spec, missing audio, non-positive
scrollHeight. It cannot tell you the page renders.
verify opens the built site in headless Chrome, scrolls it, and measures what the reader
actually sees at each position:
It exits non-zero on any of those. --shots <dir> also writes a PNG per sampled position if
you want to look. It needs Chrome, Chromium or Edge on the machine and nothing installed.
This is the check that matters, because the characteristic failure of this kind of page is
silent: a missing frame set renders a black canvas, throws nothing, and logs nothing. A build
that exits 0 is not evidence the site works. verify exiting 0 is.
dist/ is a static directory. Any host serves it as-is. Do not add a build step.
These are what separate a convincing scroll site from an obviously generated one.
layout: center, left, right, lower-third,
upper-third. Consecutive screens that share a shape are what makes a scroll site read as a
template. The build says so when all of them match.reveal is rise, fade, mask, stagger, scale or
none. Pick one and repeat it, with a single exception at the peak. mask is the loudest;
use it once. stagger needs three or more elements or it looks broken.kind for emphasis and silence. statement gives a heading its own oversized
treatment; spacer is scroll track with nothing in it, which is how a page gets a pause.accentColor on the eyebrow and the CTA, nowhere else.image, imageAlt, imageWidth) — use it for a logo, product shot or diagram, not for decoration competing with the background.prefers-reduced-motion. Do not add motion the setting cannot turn off.frame_NNNN.jpg, zero-padded to 4, starting at 0000, gap-free. The build refuses a gapped sequence rather than shipping a stutter.application/octet-stream and the browser silently declines to decode them.customCss in the spec is filtered for <script, <style, javascript:/data: URLs and expression(. Treat it as a styling hook, not an extension point.png, jpg, jpeg, webp, avif, gif or svg. imageWidth is capped at 1600px. A missing image fails the build rather than shipping a broken tag.ffmpeg is needed only for the two frame paths. verify needs Chrome, Chromium or Edge, and Node 22 or newer for its built-in WebSocket. The build, doctor and preview server are plain Node with no dependencies.engine/scrollcraft.css (opens in a new tab)engine/scrollcraft.runtime.js (opens in a new tab)references/export-contract.md (opens in a new tab)references/grammars.md (opens in a new tab)references/site-spec.md (opens in a new tab)references/styles.md (opens in a new tab)references/taste.md (opens in a new tab)scripts/build-site.mjs (opens in a new tab)scripts/doctor.mjs (opens in a new tab)scripts/frames-from-style.mjs (opens in a new tab)scripts/frames-from-video.mjs (opens in a new tab)scripts/init.mjs (opens in a new tab)scripts/serve.mjs (opens in a new tab)scripts/verify.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub singhharsh1708/scrollcraft --plugin scrollcraftOther plugins' skills for the same job