Sprite
Static pixel-art sprites (characters, items, icons, portraits, faces, battlers, props) as engine-ready PNG sheets, rendered natively and reviewed until they…
от melodic-software★ 34 звезды на GitHub
Установить Sprite в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Sprite
Produce a static sprite the user can drop into a game or project, and show it to them.
1. Brief
Follow brief.md. That file is the only copy of the
fields: subject, style references, proportions, size, palette, view, mood, target, and 2 to 6 done
criteria. Ask only what changes the output. State every unspecified field as a default in one line.
Write brief.md beside the spec before the first render. A later run that finds it there reads it
and does not ask again.
When the request is vague or high-stakes, offer /planning:interview (if enabled). Planning owns a numbered-question brief. If planning is not enabled, or the user does
not accept, continue with the in-skill brief, which is the default and works alone. Do not start
the interview unless the user accepts.
2. Choose the backend
Read backends.md. native is the default and
always available. Honor ${user_config.backend} when it names another backend. ${CLAUDE_PLUGIN_ROOT}/scripts/backends.py
detects that backend, uses it when it is present, and otherwise prints one line and renders with
native. The backend is native (default) or aseprite. Both honor the same artifact contract:
the spec and the files in step 4.
3. Author
Write the spec that render.py reads (its docstring is the format). Two authoring modes:
- Hand-authored grid: small sprites (up to about 24x24), icons, faces. Write rows directly.
- Procedural generator: larger sprites or families of variants. Write a short Python script
that draws with primitives (rects, ellipses, lines) onto a material grid, then applies shading
and outlining passes and emits the spec JSON. Materials map to color ramps (highlight, base,
shadow, line), which keeps the palette locked and makes recolors one-line edits.
For a full-body humanoid character, adapt
${CLAUDE_PLUGIN_ROOT}/scripts/kit.pyinstead of writing that machinery: it draws down, left, and up and mirrors for right, and onedownframe is a static character. Portraits and faces stay hand-authored grids.
Set the spec palette to the project's palette file when it has one (pixel-art-palette.json, or
the path its CLAUDE.md names); otherwise to a bundled preset name or an inline object
(palettes/README.md). Never invent colors over a
project palette or retype a preset by hand. Snap images from another backend with
render.py --snap (backends.md), not by eye.
Apply craft-static.md: readable silhouette
first, one light direction, hue-shifted ramps, selective outline, no pillow shading, no banding,
no dithering on small sprites.
4. Render
Output directory, first match wins: an explicit path in the request; an assets location the
project declares in its CLAUDE.md or rules; ${user_config.output_dir} (empty or unexpanded
means unset); otherwise ask before rendering. Keep the spec, brief.md, and the generator beside
the output so the next iteration edits source, not pixels.
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/backends.py" <spec.json> --out <dir> --scale 8
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/gallery.py" <dir>
Pass --backend <name> when this request names one; otherwise pass
--backend ${user_config.backend} when that option is set, rather than relying on the environment
to carry it. Aseprite builds source.aseprite from the frame rows.
5. Review loop
Read preview.png. Every round, mark each done criterion in brief.md pass or fail with a
one-line reason, and check craft-static.md
where no criterion covers it: silhouette at 1x, part separation, light consistency, outline, stray
pixels, palette discipline. Fix the spec or generator, re-render, re-read. Stop when every
criterion passes, or after the round budget (typically 2 to 4) with the failing criteria named,
or earlier at the user's direction.
6. Deliver
Report sheet.png (the engine asset), sheet.json, the preview, and the gallery index.html.
Give the user a way to see it: the gallery path (via wslpath -w when the session runs in WSL),
or the preview file sent with a file-sending tool when one exists.
Next
/pixel-art:animate <the same spec> to give the sprite movement cycles.
Gotchas
sheet.pngis 1x on purpose; engines scale. Never shippreview.pngas the asset.- Palette keys are single characters and
.is always transparent. - Mirroring a side view for the opposite direction also flips the light; reshade when the light
side matters (judgment, see
craft-animation.md). - Engine sheet sizes in
engine-layouts.mdmarked derived come from documented ratios, not a stated number; check against the engine's sample assets when exactness matters.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
FAQ
Что делает скилл Sprite?
Static pixel-art sprites (characters, items, icons, portraits, faces, battlers, props) as engine-ready PNG sheets, rendered natively and reviewed until they read. Use when: 'make a sprite', 'draw a 32x32 icon', 'character portrait', or RPG Maker face. Not for movement cycles: /pixel-art:animate; scenes: /pixel-art:scene.
Как установить скилл Sprite?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Sprite запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
AnthropicKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
automate-this
GitHubAnalyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
from-the-other-side-vega
GitHubPatterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
plantuml-ascii
GitHubGenerate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…