/pixel-art:scene <scene description> [resolution] [duration] [audio file]from pixel-art
Creates self-contained HTML pixel-art scenes with animation, dialogue, and optional audio. Use for cutscenes, title screens, ambient loops, or intro sequences.
Ships in pixel-art. 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.
Compose a moving pixel-art scene the user opens in any browser.
Follow brief.md: the shared fields, the brief.md
file before the first build, one-line defaults, and the presence-gated /planning:interview
offer (planning owns a numbered-question brief; the in-skill brief is the fallback and the
default). Then add:
Mood, palette, style references, and proportions still come from the shared brief and apply to the cast. When view does not apply, default it to "scene" in the defaults line.
When a cast member is an existing spec with brief.md beside it, read that file and extend it.
Do not re-ask fields it answers. Write this scene's brief.md beside the scene template before
the first build.
Follow scene-canvas.md. Write a template HTML
file beside the output:
/*EMBED:relative/path.json*/null and build
one offscreen canvas per frame at load, so sprites stay the same source the engine sheet uses.
Author missing characters first with /pixel-art:sprite or /pixel-art:animate./*WAV:relative/file.wav*/null in the template, which embed.py inlines
as a data:audio/wav;base64,... URL so the output stays one file. Play it with WebAudio,
starting on the first click, and rewind the scene clock on that click so the picture and the
loop share a start. Set window.__pixelScene.audio to the same URL so --record can mux it.
Why playback waits for a click: scene-canvas.md Audio.window.__pixelScene (seek, frameDataURL, play, duration) as scene-canvas.md
Review capture describes, so the review command can land on a timeline point.A worked example is ${CLAUDE_PLUGIN_ROOT}/examples/campfire/scene.html (title card, dithered sky,
parallax, fire particles, walking character, typed dialogue); copy the folder into the working
directory before adapting it.
Then inline the embeds into one file:
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/embed.py" <template.html> <out-dir>/<name>.html
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/gallery.py" <out-dir>
Run one command. It serves a copy of the self-contained scene (nothing beside it) and, when a browser is on PATH, seeks the
timeline and writes shots (and a WebM when --record is set):
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/capture.py" <out-dir>/<name>.html --at 0,1.5,6 --record 4 --out <out-dir>/capture
Exit 0: read each shot-<n>.png and, when present, treat scene.webm as the shareable
recording (with the scene's audio when audio is set and ffmpeg is present, see Deliver). Every
round, list each done criterion in brief.md as pass or fail with a one-line reason, and
check silhouettes against the background, palette contrast, beat timing, text legibility, stray
non-integer or smoothed pixels. Fix, rebuild, re-run the same command. Stop when every done
criterion passes, or after the round budget (typically 2 to 4) with the failing criteria named.
Exit 3 means no Chrome or Chromium on PATH (set CAPTURE_BROWSER to a browser binary, such as
Playwright's Chromium, to point it at one). When a browser automation tool is present instead (a
Playwright CLI or MCP, the built-in browser tools), serve the output directory over
http://127.0.0.1:<port>/, call window.__pixelScene.seek(t) at the same timeline points, take
the screenshots with that tool, and review them as above. With neither, exit 3's
visually unreviewed stands. Say that the scene is visually unreviewed. Do not claim it
looks right. Check the script parses (node --check on the extracted script when Node is
present), grade whatever criteria the script can speak to, mark the rest fail with the reason
"not seen", and ask the user to open it and describe what they see.
Report the HTML path, the gallery index.html, and when capture wrote one, scene.webm, as full
paths, converted to a host path when the session runs in WSL (wslpath -w). A GIF export of a
scene is not produced here: GIF carries no audio and the scene is code. When the scene sets
window.__pixelScene.audio to its WAV URL, --record loops that WAV from scene time 0 under the
recording with ffmpeg, trimmed to the recording length. Without ffmpeg the WebM is video only and capture.py prints a note.
audioStream is the live MediaRecorder path and is not aligned to the seek clock.
/pixel-art:animate to add or fix a cycle a scene character needs.
Browser automation tools may refuse file: URLs (the Playwright CLI blocks the protocol), which is
why review goes through a localhost server. A Linux browser also needs its system libraries; a
launch error naming a missing .so means those are not installed, not that the scene is broken.
image-rendering: pixelated plus imageSmoothingEnabled = false both matter; either alone
smooths somewhere.
Per-pixel dithered relighting over a whole scene tends to look washed out; flat colors per tile with a highlight and a shadow edge read better.
The WebAudio square oscillator is fixed at 50% duty; chip-style duties need a PeriodicWave or
sample buffers.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
pixel-art, scene-composition, html-canvas, animation, game-dev
6 skills in this plugin
/animatePixel-art animation cycles (run, jump, hurt, death) in 1, 4 or 8 directions, as sprite sheets for RPG Maker MZ, Godot or PICO-8. Use when asked to 'animate this sprite', 'walk cycle', 'sprite sheet', 'idle animation', 'attack animation', 'RPG Maker character sheet', '4-direction walking character', or 'make this sprite move'. A still: /pixel-art:sprite; a scene: /pixel-art:scene; not hand-drawn animation or video./spriteStatic pixel-art sprites (characters, items, icons, portraits, faces, battlers, props) as engine-ready PNG sheets, rendered with no external tools and reviewed until they read. Use when asked to 'make a sprite', 'pixel art of X', 'draw a 32x32 icon', 'character portrait', 'RPG Maker face', 'item icons', or 'pixel-art character design'. Movement cycles: /pixel-art:animate; composed scenes: /pixel-art:scene./tilesetPixel-art tilesets as the target engine's sheet: terrain, autotiles (RPG Maker MZ A1-A5 and B-E, blob-47, 16-tile corner), seamless tiles, and parallax layers. Use when asked for a 'tileset', 'autotile', 'terrain tiles', 'blob tileset', 'parallax background', 'RPG Maker tileset', or 'seamless tile'. One sprite or icon: /pixel-art:sprite; a window skin or icon set: /pixel-art:ui; an HTML cutscene: /pixel-art:scene./uiPixel-art UI: window skins (RPG Maker MZ Window.png, 9-slice frames), icon grids (MZ IconSet.png), HUD elements, and bitmap fonts (glyph grid or BMFont .fnt). Use when asked for a 'window skin', '9-slice frame', 'icon set', 'HUD', 'bitmap font', 'Window.png', or 'IconSet'. One item icon or character: /pixel-art:sprite; a tileset: /pixel-art:tileset; an effect sheet: /pixel-art:vfx./vfxPixel-art effects (particles, hit sparks, spells, explosions) as sprite-sheet animations; RPG Maker gets the MV-style img/animations cell sheet. Use when asked for a 'hit spark', 'pixel effect', 'spell animation', 'explosion', 'particle sheet', or 'MZ animation cells'. A character cycle: /pixel-art:animate; a still sprite: /pixel-art:sprite; a cutscene: /pixel-art:scene. Not for Effekseer .efkefc files.npx claudepluginhub melodic-software/claude-code-plugins --plugin pixel-artOther plugins' skills for the same job