К основному содержанию
скилл CX Codex

layer-vfx — скилл для Claude Code: что делает и как установить

Скилл layer-vfx для Claude Code помогает генерировать игровые визуальные эффекты и собирать их в спрайтовые листы. Превращает статичный кадр эффекта в анимацию и нарезает покадровый флипбук для движка.

MIT 1 100 установок ★ 10 обновлён 2026-09-30

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add layerai/skills --skill layer-vfx -a claude-code
Открыть на GitHub

Что делает layer-vfx

Генерирует эффекты заклинаний, взрывы, искры и зацикленные элементы вроде огня или порталов через сервисы Layer. Пайплайн строится в три шага: создание одного статичного кадра через text_to_image, превращение его в короткий ролик через image_to_video и вытягивание отдельных кадров в спрайтовую сетку через утилиту pack_sprite_sheet.

Для эффектов с аддитивным смешиванием скилл задаёт чисто чёрный фон, так как видеомодели не отдают альфа-канал. Дым и пыль генерируются на цветном ключе с последующим удалением фона для каждого кадра отдельно. Камера фиксируется параметром STATIC, а сам эффект центрируется с отступами от краёв кадра, чтобы избежать джиттера при сборке.

Для работы требуются смежные скиллы layer (управление кредитами и генерацией) и layer-video. Если расчётная стоимость цепочки генерации превышает 20 CU, процесс останавливается до получения прямого подтверждения.

Какие задачи решает

  • подготовить спрайт-лист игрового эффекта из текстового описания
  • сгенерировать аддитивный эффект на чистом чёрном фоне без окружения
  • нарезать видеоролик эффекта на отдельные выровненные кадры
  • собрать зацикленную анимацию ауры или портала через pack_sprite_sheet

Примеры запросов агенту

  • Создай 8-кадровый флипбук взрыва огненного шара для top-down RPG на чёрном фоне
  • Сгенерируй зацикленный портал и упакуй кадры в спрайтовый лист
  • Сделай эффект удара с фазами накопления, вспышки и затухания

Как установить layer-vfx

1Через Skills CLI (Vercel)

npx skills add layerai/skills --skill layer-vfx -a claude-code

2Вручную: положить файлы

~/.claude/skills/layer-vfx/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/layer-vfx/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о layer-vfx

Как установить layer-vfx в Claude Code?

Выполните команду npx skills add layerai/skills --skill layer-vfx -a claude-code. Конфигурация запишется по пути ~/.claude/skills/layer-vfx/SKILL.md.

Зачем скиллу чисто чёрный фон для эффектов огня?

Видеомодели не генерируют файлы с готовым альфа-каналом. Игровой движок полностью скрывает чёрный цвет при аддитивном наложении, сохраняя мягкие границы свечения.

Что нужно для работы layer-vfx?

Понадобятся скилл layer для управления базовыми моделями и списания кредитов, а также layer-video для передачи параметров движения.

Исходный текст

SKILL.md · MIT
---
name: layer-vfx
description: "Use when generating game visual effects with Layer: spell and skill effects, hit impacts, explosions, pickups and power-ups, loot chest and reward openings, auras, portals, or looping ambient effects such as fire, smoke and magic swirls. Also when an effect comes back with a scene around it, cannot be blended in the engine, or plays with no wind-up. Keywords: VFX, FX, spell effect, impact, explosion, particle, flipbook, aura, loot chest, additive, sprite sheet."
license: MIT
---

# Layer VFX

## Overview

An effect is not an illustration of magic. It is a short, isolated piece of motion that an engine
layers over gameplay, so it has to arrive with nothing around it, on a background the engine can
remove, timed so a player reads it in a fraction of a second. Most failed effects fail on one of
those three, not on how they look.

The route is: design the effect as a still, animate the still into a short clip, then pull frames
from the clip into a flipbook. Generation mechanics and the spend gate are in the `layer` skill;
motion prompting is in `layer-video`.

`pack_sprite_sheet` is named outright below because it is Layer's deterministic packing utility, a
tool rather than a model, with no alternative to discover.

If a sibling skill named here is missing from your available skills, ask the user to install it
(`npx skills add layerai/skills --skill <name>`); unattended, proceed from tool schemas and flag the
gap.

## Quick reference

| Need                       | Do this                                                                                  |
| -------------------------- | ---------------------------------------------------------------------------------------- |
| Fire, magic, light, sparks | Solid black background, for additive blending                                            |
| Smoke, dust, debris, ink   | Flat key colour, then remove it per frame; these need real alpha                         |
| The look                   | `text_to_image` still, one effect, centred, nothing else in frame                        |
| The motion                 | `image_to_video` with the still as `first_frame`                                         |
| A looping effect           | `loop` capability, the same still as `first_frame` and `last_frame`                      |
| A locked camera            | `video_effects: [{type: "STATIC"}]` where the model exposes it, and say it in the prompt |
| Frames out of the clip     | The clip's `file_id` in an image slot with `video_frame_seconds`, one run per frame      |
| The flipbook               | `pack_sprite_sheet` with the frames' `file_ids` in play order                            |

## Background decides the blend

Engines composite effects one of two ways, and the background has to match.

- **Additive** (fire, lightning, glows, magic trails, sparks): the engine adds the effect's colour to
  the scene, so pure black vanishes. Ask for "pure black background, no floor, no environment, no
  ground glow". Black here is a feature, not a placeholder, and removing it would destroy the glow
  falloff.
- **Alpha-blended** (smoke, dust, rubble, water splashes, dark magic): these darken or occlude, so
  black cannot stand in for transparency. Generate on one flat key colour that does not appear in
  the effect, then remove it frame by frame with a `background_removal` model. Wispy edges suffer,
  so prefer dense, defined shapes for these effects.

Do not promise transparent video. Nothing in a video run's schema delivers an alpha channel, so
transparency is made on the extracted frames, not on the clip.

## Isolate and centre

One effect per run, centred, fully inside the frame with margin on every side. A fireball that
leaves the frame cannot be repositioned in an engine, and a second effect in frame has to be cut out
by hand. Say it: "a single effect, centred, entirely within frame, nothing else in the image, no
characters, no scenery".

Effects are seen small and fast: one bright core, one readable shape, one colour that says what the
effect does.

## Timing reads

A one-shot effect has three phases, and the prompt should name all of them with rough timings:
**anticipation** (a gather or charge), **burst** (the peak, fast), **dissipation** (falloff to
nothing). An effect that starts at full intensity reads as a glitch, and one that never fully fades
leaves a ghost on its last frame. End one-shots on empty black.

Loops (auras, portals, torch flames) have no beginning or end: cyclical motion only, and the loop
capability. See `layer-video` for why prompting "looping" alone produces a clip that jumps at the
seam.

## Frames out of the clip

Any image slot (`init_image`, `reference_image`, `first_frame`, `last_frame`) accepts a video
`file_id` and takes one frame of it, chosen by `video_frame` (`first`, `middle`, `last`) or by
`video_frame_seconds`, which overrides it. Space the timestamps evenly across the clip: eight to
twelve frames is a typical flipbook. Each frame is one run of whatever model receives it, so give the
frame a run that does useful work anyway: background removal for alpha-blended effects, an upscale
when the clip resolution is too low. Use `batch_size: 1`, since the default is four.

Some frame-extraction models take an `init_video` and a `frame_extraction_location` instead;
`get_base_model` says which inputs a model requires.

Frames from one locked-camera clip are already registered, so `pack_sprite_sheet` keeps them aligned:
it centres each frame at its own scale in one cell size. Do not trim frames individually first, or
the effect will jitter.

## Worked example

"A fireball impact for our top-down RPG, as an 8-frame flipbook."

1. `list_base_models` with `filter.use_case: "text_to_image"`, first result. Prompt: "Game VFX, a
   single fireball impact at the moment of burst, orange-white core, licking flames, flying embers,
   centred, entirely within frame, pure black background, no ground, no scenery, top-down view."
   Approve one.
2. `list_base_models` with `filter.use_case: "image_to_video"` and
   `filter.capabilities: {fixed_duration: true}`; `get_base_model` on the first result to see which
   frame slots and `video_effects` it takes.
3. Motion prompt with phases: "A small ember gathers for a quarter second, bursts outward fast, then
   flames and embers dissipate to nothing by the end. Locked-off camera, black background throughout."
   Pass the approved still's `file_id` as `first_frame`, `video_effects: [{type: "STATIC"}]` if supported,
   a short `duration_seconds`.
4. Price the job as a whole: the video plus eight frame runs, each estimated as the run it will be.
   Over 20 CUs, ask and wait for an explicit yes.
5. Execute, poll at `poll_interval_seconds`. Pull eight frames at evenly spaced
   `video_frame_seconds`, each into an upscaling run at `batch_size: 1`. Keep the black.
6. `pack_sprite_sheet` with `file_ids` set to the eight frames in play order and `columns: 4`.

## Common mistakes

- Removing the black background from an additive effect, which deletes the glow.
- Using black as the background for smoke or dust, which then cannot occlude anything.
- A scene, floor, or character in the frame around the effect.
- An effect that clips the frame edge.
- A one-shot with no anticipation, or one that never fully fades.
- Promising a transparent video.
- Trimming frames one by one before packing, so the flipbook jitters.
- Leaving `batch_size` at four on per-frame runs and paying four times.

© layerai · MIT · layerai/skills

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

Все скиллы по теме «Геймдев и 3D: Unity, Unreal, Godot, Blender» →
roblox-animation-vfx TabooHarmony Скилл roblox-animation-vfx для ИИ-агента, который помогает писать и чинить анимации, партиклы, лучи, трейлы и твины в Roblox. CX Codex +1 4 200установок pixelfx Patch Плагин pixelfx для Claude Code помогает создавать и дорабатывать пиксельные эффекты и анимации для игр. Агент может отрисовать эффект и править его по результату. ★ 8 631звёзд репо vfx-compositing calesthio Скилл vfx-compositing для Claude Code задаёт провайдер-независимое направление компоновки визуальных эффектов для генеративного видео, трейлеров и рекламы. CX Codex +1 235установок create-game-vfx MengTo Скилл create-game-vfx для ИИ-агента, который помогает делать визуальные эффекты в Three.js: атаки, попадания, статусы, телеграфы. Полезен, когда эффект должен читаться в бою и не ронять кадры. CX Codex +1 1 800установок roblox-vfx nonlooped Скилл roblox-vfx для Claude Code по сборке и оптимизации частиц, лучей, трейлов и подсветок в Roblox. Снижает нагрузку на GPU через управление площадью непрозрачных пикселей, дистанцией отключения эмиттеров и режимами эмиссии. CX Codex +1 1 600установок scenario-godot-vfx scenario-labs Скилл scenario-godot-vfx для Claude Code собирает и отлаживает частицы и игровые эффекты в Godot 4.7: взрывы, следы снарядов, дым и hit-stop. CX Codex +1 469установок

Из того же набора33

Весь набор →
layer-video-continuity Скилл layer-video-continuity для Claude Code помогает собирать многосерийные Layer-видео с общими персонажами, светом и декорациями. Передаёт контекст между сценами трейлеров и игровых катсцен. CX Codex +1 1 100установок layer-talking-characters Скилл layer-talking-characters для Claude Code создаёт говорящих персонажей и синхронизирует движение губ с аудио. Запускается для роликов с ведущим, реклам в стиле UGC, диалогов в трейлерах и замены реплики в готовом видео. CX Codex +1 1 100установок layer-video-direction Скилл layer-video-direction для Claude Code задаёт движение камеры, оптику, свет и тайминг при генерации отдельного шота в Layer. Запускается при постановке кадра или исправлении дрейфа камеры. CX Codex +1 1 100установок layer-environments Скилл layer-environments для Claude Code создаёт игровые фоны, параллаксные слои, панорамы 360° и игровые миры через Layer. Он подключается при создании окружения, настройке зацикливания слоёв или экспорте в Godot и Unity. CX Codex +1 1 100установок layer-tilesets Скилл layer-tilesets для Claude Code собирает игровые тайлы по общей сетке. Включается при создании изометрических, шестиугольных и top-down наборов, а также зданий с разными ракурсами. CX Codex +1 1 100установок layer-game-ui Скилл layer-game-ui для Claude Code и Codex настраивает генерацию игрового UI через Layer. Подключается при создании кнопок с 9-slice разметкой, иконок и экспорте UI-китов в движки. CX Codex +1 1 100установок layer-sprite-animation Скилл layer-sprite-animation для Claude Code помогает собрать спрайты персонажа и циклы анимации для 2D-игры. Он подключается к задачам с idle, walk, attack и другими действиями, а также с видами в четырёх или восьми направлениях. CX Codex +1 1 100установок layer-typography Скилл layer-typography для Claude Code рендерит точный текст и фирменные шрифты для изображений. Включается в задачу при добавлении надписей, логотипов и заголовков на графику. CX Codex +1 1 100установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой