Command Palette

Search for a command to run...

Назад к скиллам
скилл № 20577

Scene

Pixel-art scenes as one self-contained HTML file (cutscene, title screen, intro sequence, dialogue, ambient loop, pixel-art short or movie, animated pixel…

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Scene в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Scene

Compose a moving pixel-art scene the user opens in any browser.

1. Brief

Follow brief.md: the shared fields, the brief.md file before the first build, one-line defaults, and the presence-gated /planning:interview (if enabled) offer (planning owns a numbered-question brief; the in-skill brief is the fallback and the default). Then add:

  • Beats: what happens, in order, and how long each lasts; loop or play once.
  • Cast and set: characters (existing sprite specs or new ones), location, time of day.
  • Resolution: a fixed logical size such as 160x144, 240x160, 320x180; everything is drawn there and integer-scaled.
  • Audio: none, or a WAV path / audio artifact from another tool, passed in explicitly.

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.

2. Author

Follow scene-canvas.md. Write a template HTML file beside the output:

  • Characters come from sprite specs: embed each with /*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.
  • Beats are a timeline or state machine driven by a fixed 60 Hz step; sprite cadence stays 8 to 12 fps; every draw lands on integer coordinates.
  • Light and fades step through palette colors or Bayer-dither patterns; never alpha, gradients or blur.
  • Audio, when given: put /*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.
  • Expose 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>

3. Review loop

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.

4. Deliver

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

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • evals/evals.json

FAQ

Что делает скилл Scene?

Pixel-art scenes as one self-contained HTML file (cutscene, title screen, intro sequence, dialogue, ambient loop, pixel-art short or movie, animated pixel background) with optional audio. Use when: 'pixel-art scene', 'cutscene', 'title screen'. Not for one sprite: /pixel-art:sprite; sprite sheets: /pixel-art:animate; hand-drawn animation; or video.

Как установить скилл Scene?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Scene запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Scene с