sprite-pipeline — скилл для Codex: спрайты и установка
Готовит и нормализует полосы 2D-анимации по утверждённому кадру. Подойдёт, когда нужны согласованные игровые кадры и лист для предпросмотра.
npx skills add openai/plugins --skill sprite-pipeline -a codexЧто делает sprite-pipeline
Работа начинается с утверждённого кадра из игры. Скилл создаёт вокруг него прозрачный холст для редактирования, затем обрабатывает всю полосу анимации одним запросом: так кадры меньше расходятся по виду. Для отдельных кадров генерацию предлагают использовать только если вы готовы к меньшей согласованности.
Скрипты собирают холст, приводят полосу к кадрам фиксированного размера с общей шкалой и опорной точкой, а затем рендерят лист предпросмотра. Можно вернуть первый кадр к исходному спрайту. Перед одобрением нужно проверить анимацию в движке. Для генерации изображений используется установленный скилл imagegen; для 3D-моделей и материалов этот процесс не предназначен. Ставьте его, если в проекте есть 2D-спрайты и исходный кадр для работы.
Какие задачи решает
- собрать полосу кадров по утверждённому игровому спрайту
- выровнять масштаб и опорную точку кадров
- подготовить лист предпросмотра анимации
- вернуть первый кадр к исходной позе
Примеры запросов агенту
- Сделай полосу анимации hurt на 4 кадра по `output/sprites/idle-01.png`.
- Нормализуй `output/sprites/hurt-raw.png` с общей опорной точкой и зафиксируй первый кадр.
- Создай лист предпросмотра кадров из `output/sprites/hurt`.
Как установить sprite-pipeline
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill sprite-pipeline -a codex2Вручную: положить файлы
.agents/skills/sprite-pipeline/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add openai/plugins --skill sprite-pipeline -a claude-code2Вручную: положить файлы
~/.claude/skills/sprite-pipeline/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/sprite-pipeline/
Вручную: положить файлы
.cursor/skills/sprite-pipeline/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install openai/plugins sprite-pipeline2Вручную: положить файлы
.github/skills/sprite-pipeline/SKILL.mdКомандой платформы
gemini skills install https://github.com/openai/plugins --path plugins/game-studio/skills/sprite-pipelineВручную: положить файлы
.devin/skills/sprite-pipeline/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
Из того же набора201
Весь набор →Похожие
Вопросы о sprite-pipeline
Как установить sprite-pipeline в Codex?
Выполните npx skills add openai/plugins --skill sprite-pipeline. Для установки с указанием агента используйте npx skills add openai/plugins --skill sprite-pipeline -a codex.
Что делает sprite-pipeline?
Он помогает создать полосу 2D-анимации по утверждённому кадру, нормализовать кадры и отрендерить лист предпросмотра.
Подходит ли sprite-pipeline для 3D-моделей?
Нет, этот процесс предназначен для 2D-спрайтов. Для 3D-персонажей, мешей и материалов источник направляет к ../game-studio/SKILL.md.
Исходный текст
SKILL.md · MIT
--- name: sprite-pipeline description: Generate and normalize 2D sprite animations. Use when the user asks for full-strip generation from approved source frames, consistent anchor and scale normalization, or preview assets for browser-game animation. --- # Sprite Pipeline ## Overview Use this skill for 2D sprite generation and normalization. This workflow is intentionally anchored around one approved frame and a whole-strip generation pass because frame-by-frame generation drifts too easily. This skill is 2D-specific. If the request is for 3D characters, meshes, or materials, route back through `../game-studio/SKILL.md`. ## Core Workflow 1. Start from an approved in-game seed frame. - The seed frame should already reflect the right silhouette, palette, costume, and proportions. 2. Build a larger transparent reference canvas around that frame. - Use `../../scripts/build_sprite_edit_canvas.py`. 3. Ask for the full animation strip in one edit request. - Do not generate each frame independently unless the user explicitly accepts lower consistency. 4. Normalize the result into fixed-size game frames. - Use `../../scripts/normalize_sprite_strip.py`. - Use one shared scale across the whole strip. - Align frames with one shared anchor, typically bottom-center. 5. Optionally lock frame 01 back to the shipped seed frame. - Do this when the animation should begin from the exact idle or base pose already in game. 6. Render a preview sheet and inspect the animation in-engine before approving it. - Use `../../scripts/render_sprite_preview_sheet.py`. ## Prompting Rules Always preserve these invariants in the prompt: - same character - same facing direction - same palette family - same silhouette family - same readable face or key features - same outfit proportions - transparent background - exact frame count and slot layout Always ask for: - one strip at once - a transparent canvas - no scenery, labels, or poster composition - crisp pixel-art clusters for pixel work - production asset tone, not concept art ## Using Image Generation For live asset generation or edits, use the installed `imagegen` skill in this workspace. This skill defines the game-specific process; `imagegen` handles the API-backed generation or edit execution. ## Script Recipes Create a reference canvas: ```bash python3 scripts/build_sprite_edit_canvas.py \ --seed output/sprites/idle-01.png \ --out output/sprites/hurt-edit-canvas.png \ --frames 4 \ --slot-size 256 \ --canvas-size 1024 ``` Normalize a raw strip: ```bash python3 scripts/normalize_sprite_strip.py \ --input output/sprites/hurt-raw.png \ --out-dir output/sprites/hurt \ --frames 4 \ --frame-size 64 \ --anchor output/sprites/idle-01.png \ --lock-frame1 ``` Render a preview sheet: ```bash python3 scripts/render_sprite_preview_sheet.py \ --frames-dir output/sprites/hurt \ --out output/sprites/hurt-preview.png \ --columns 4 ``` ## Quality Gates - proportions stay stable across frames - frame-to-frame size does not drift - action reads clearly at game scale - transparency is preserved - frame 01 matches the shipped sprite when lockback is enabled - preview looks correct before any in-engine asset index update ## References - Detailed workflow: `../../references/sprite-pipeline.md` - Shared frontend context: `../game-ui-frontend/SKILL.md`
© OpenAI · MIT · openai/plugins