/atelier:html-to-videofrom atelier
Records HTML pages, local files, or URLs as MP4/WebM videos with frame-exact timing, optional audio muxing, and poster images. Requires ffmpeg and Playwright Chromium.
Ships in atelier. 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.
Needs ffmpeg on PATH and the Playwright Chromium build that matches the plugin's pinned Playwright (npx playwright@<version> install chromium; installing the plugin does not download a browser). Run node "${CLAUDE_PLUGIN_ROOT}/bin/atelier" doctor first: it checks both and prints the exact install command. A bare npx playwright install chromium uses the project's own or the latest Playwright and can install a Chromium the plugin cannot use.
node "${CLAUDE_PLUGIN_ROOT}/bin/atelier" video http://localhost:5173/trailer.html dist/trailer.mp4 10 --width 1920 --height 1080
node "${CLAUDE_PLUGIN_ROOT}/bin/atelier" video demo/page.html dist/demo.webm --fps 60 --poster
node "${CLAUDE_PLUGIN_ROOT}/bin/atelier" video demo/page.html dist/trailer.mp4 12 --audio score.wav
node "${CLAUDE_PLUGIN_ROOT}/bin/atelier" video --help
JS API, for an audio track generated in code (audioSource). This one writes a short 880 Hz beep at the start of every second; replace the sample loop with your own track:
node --input-type=module -e "const { pathToFileURL } = await import('node:url'); const m = await import(pathToFileURL(process.argv[1]).href);
const { writeFileSync } = await import('node:fs');
const seconds = 12;
// 48 kHz 16-bit mono PCM on the video timeline: sample i plays at i / 48000 s, frame N at N / fps s.
const writeWav = (wavPath) => {
const n = Math.round(48000 * seconds), b = Buffer.alloc(44 + 2 * n);
b.write('RIFF', 0); b.writeUInt32LE(36 + 2 * n, 4); b.write('WAVEfmt ', 8);
b.writeUInt32LE(16, 16); b.writeUInt16LE(1, 20); b.writeUInt16LE(1, 22);
b.writeUInt32LE(48000, 24); b.writeUInt32LE(96000, 28); b.writeUInt16LE(2, 32); b.writeUInt16LE(16, 34);
b.write('data', 36); b.writeUInt32LE(2 * n, 40);
for (let i = 0; i < n; i++) if (i % 48000 < 4800) b.writeInt16LE(Math.round(8000 * Math.sin((2 * Math.PI * 880 * i) / 48000)), 44 + 2 * i);
writeFileSync(wavPath, b);
};
const out = await m.recordHtml({ url: 'demo/page.html', outPath: 'dist/trailer.mp4', duration: seconds, fps: 60, poster: true, audioSource: writeWav });
console.log('Video written to: ' + out);" "${CLAUDE_SKILL_DIR}/index.mjs"
API name first, then the CLI form.
url (1st argument): http(s), file:// or data: URL, or a path to a local HTML file (relative to the working directory). localhost:5173/x without a scheme is rejected; write http://localhost:5173/x.outPath (2nd argument): .mp4 (libx264 -preset medium -crf 20 -pix_fmt yuv420p, +faststart) or .webm (libvpx-vp9 2 Mbit/s). Any other extension, or none, gets format (default MP4).duration ([seconds] or -d, --duration): seconds of page time, default 5. Frames = round(duration x fps), at least 1.fps (--fps): default 30, max 240.width, height (--width, --height): default 1280x720, integers 1 to 8192. MP4 needs even sizes, so an odd value is rounded up by 1 px and the page is laid out at that size (the CLI prints a note). WebM keeps odd sizes.format (-f, --format): mp4 or webm. Must agree with a .mp4/.webm extension; a mismatch is an error.poster (--poster): also write <name>-poster.jpg (the first frame) next to the video.audioSource(wavPath) (--audio <file>): see Audio below.timeoutMs (--timeout <ms>): how long to wait for navigation and the page's load event. Default 30000.allowHttpError (--allow-http-error): record a page that answers HTTP 4xx or 5xx instead of failing. Without it such a page is a runtime error, so a mistyped dev-server URL does not turn into a clip of the error page.browser (API only): a launched Playwright Chromium to reuse across calls. It is not closed; each call opens and closes its own context.signal (API only): an AbortSignal. Aborting stops the capture or ffmpeg step, removes the temp files and rejects with the abort reason. The CLI does this on the first Ctrl+C.outPath (parent directories are created) and, with poster, <name>-poster.jpg beside it. recordHtml resolves with outPath; the CLI prints Video written to: <path> and Poster written to: <path>.outPath or overwrites an earlier one.0: video written.2: usage error (message and usage on stderr) or runtime failure (one atelier: ... line, plus a Fix: line when ffmpeg or Chromium is missing). Runtime failures include a page that answers HTTP 4xx or 5xx (<url> answered HTTP 404 Not Found; ...), a URL that cannot be opened (could not open <url>: ...) and a page that misses its load event within the timeout.Capture runs on a virtual clock: frame N shows the page exactly N / fps seconds after the first frame, however long each screenshot takes. The video is duration long and animations play at their authored speed.
load event and document.fonts.ready. Page timers are frozen during load, so page time 0 is the first frame.Date, performance.now, setTimeout, setInterval) runs on Playwright's fake clock, run forward to each sub-step.requestAnimationFrame callbacks run once per sub-step, so at least 60 times per page second, with the sub-step time as their timestamp. The last run before each frame gets that frame's exact time, so canvas, GSAP or three.js motion lines up with CSS animations.playbackRate and page seeks. An animation the page pauses stays paused where it was. SVG SMIL is seeked with setCurrentTime.requestAnimationFrame callback begins at that callback's time.<video> and <audio> playback, Web Workers, scroll-driven animations, CSS animations inside cross-origin iframes, and document.timeline.currentTime. Content fetched after load appears at whichever frame is being captured when it arrives.Output is silent unless audioSource or --audio is given. audioSource receives an absolute path in the temp directory and must write a WAV there (48 kHz 16-bit PCM recommended). A missing file, or one of 44 bytes or less (header only), throws audioSource wrote an empty or missing file: <path>. --audio copies an existing file (WAV recommended; any format ffmpeg reads). The video stream is copied; audio is encoded to AAC 192k (MP4) or Opus 160k (WebM) and the output ends with the shorter stream.
Do not record Web Audio in headless Chromium (MediaRecorder): it drifts 10 to 50 ms per minute against the video, and some Chromium versions silently record zeros. Synthesize the track in Node on the same timeline (frame N = N / fps seconds) and pass it in.
ffprobe -v error -select_streams v:0 -count_frames -show_entries stream=width,height,r_frame_rate,nb_read_frames -of json dist/trailer.mp4
Expect the exact size, r_frame_rate = fps/1 and nb_read_frames = round(duration x fps).ffmpeg -i dist/demo.mp4 -vf "fps=15,scale=640:-1:flags=lanczos,palettegen" palette.png
ffmpeg -i dist/demo.mp4 -i palette.png -filter_complex "fps=15,scale=640:-1:flags=lanczos[x];[x][1:v]paletteuse" dist/demo.gif
Also exported: runCli(argv, { stdout, stderr }) (returns the exit code) and findOnPath, re-exported from the shared preflight helper for v0.2 callers.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/accessibility-design-auditWCAG 2.1 A and AA accessibility audit of a URL or local HTML file with axe-core in headless Chromium. Writes a markdown report grouped by impact plus raw JSON and exits 1 on critical or serious violations, so it doubles as a CI gate. Use after design changes (colors, contrast, typography, forms, modals), before shipping a page, or when asked to check a11y, WCAG, ADA or Section 508./brand-asset-pipelineRender one SVG logo mark into a PNG brand asset pack (favicons 16 to 180 px, apple-touch-icon and Android Chrome icons, Open Graph, Twitter and LinkedIn covers, Steam store capsules). With --root it takes the background color, mark path and Steam target from .atelier/brand.json. Use when bootstrapping site icons, rebranding, or making social or Steam store art./npx claudepluginhub ethany33/atelier --plugin atelierOther plugins' skills for the same job