/layer:layer-vfxfrom Layer
Generates game VFX with Layer: spell effects, impacts, explosions, auras, portals, and looping ambient effects, then packs frames into sprite-sheet flipbooks.
Ships in Layer. 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.
None: SKILL.md is the whole skill.
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.
| 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 |
Engines composite effects one of two ways, and the background has to match.
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.
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.
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.
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.
"A fireball impact for our top-down RPG, as an 8-frame flipbook."
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.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.file_id as first_frame, video_effects: [{type: "STATIC"}] if supported,
a short duration_seconds.poll_interval_seconds. Pull eight frames at evenly spaced
video_frame_seconds, each into an upscaling run at batch_size: 1. Keep the black.pack_sprite_sheet with file_ids set to the eight frames in play order and columns: 4.batch_size at four on per-frame runs and paying four times.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub layerai/skills --plugin layer32 skills in this plugin
/layerUse when generating or editing game and entertainment assets on Layer through MCP: images, video, 3D meshes, audio, sprites, textures, or marketing creative. Also when choosing a Layer base model, pricing a run in Creative Units before spending them, uploading reference files, polling a generation, applying a trained style, or recovering from MODEL_NOT_FOUND, INSUFFICIENT_BALANCE, RATE_LIMITED, or a silently degraded reference set./layer-3dUse when producing 3D assets with Layer: generating a mesh from text or an image, retopologising or remeshing, retexturing an existing mesh, rigging a character, or animating a rigged mesh. Also when choosing between quad and triangle output, setting a polygon budget, or asking for PBR textures for a game engine. Keywords: 3D, mesh, model, text to 3D, image to 3D, remesh, retopology, retexture, rig, skeleton, animate, PBR, quad mesh, poly count, glTF, FBX./layer-art-directionUse when a Layer brief needs a direction before generating at volume: exploring a look with a moodboard, choosing between visual directions, storyboarding an ad, trailer or cutscene, pinning a colour palette, naming a style or era precisely, or framing a scene. Also when a brief is vague or generations keep missing an unstated intent. Keywords: art direction, moodboard, style exploration, storyboard, panels, beats, palette, composition, framing, era, reference./layer-audioUse when generating audio with Layer: sound effects for a game or trailer, music and background tracks, or speech and voice-over from text. Also when a sound effect comes back with unwanted ambience or reverb, when a music prompt needs structure or length control, or when choosing a voice and delivery for narration. Keywords: SFX, sound effect, foley, UI sound, music, soundtrack, loop, text to speech, TTS, voice over, narration./layer-environmentsUse when producing game environments with Layer: background and environment concept art, a side-scroller parallax background split into scrolling layers, a 360 skybox or panorama, or a generated world. Also when parallax layers do not line up or loop, when a background is too busy to read gameplay against, or when exporting layers to Godot or Unity. Keywords: environment, background, parallax, layers, side-scroller, platformer, skybox, 360, equirectangular, panorama, world./layer-game-assetsUse when producing in-game characters and props with Layer: heroes, NPCs, enemies, bosses, mascots, creatures, items and props. Also when a cast must stay on-model across many images, when a set of sprites must share one canvas size and ground line, or when a character must be split into parts for a skeletal rig. Keywords: character art, NPC, enemy, mascot, cast, on-model, consistency, prop, item, sprite set, Spine, rigging.Other plugins' skills for the same job