/maneki-vfx:maneki-vfxfrom maneki-vfx
Author polished real-time game VFX for Godot 4 (2D and 3D) as JSON effect specs, render them to a contact sheet, look at the frames, and revise. Use when the user asks for a visual effect or "VFX" in a Godot game (a slash, impact, hit spark, explosion, magic burst, shockwave, projectile, lightning, laser or tether, a weapon trail or aura that follows a character's animation, fire, rain, snow, fog, leaves, dust, a waterfall, god rays, a shield or portal, speed lines or a pulse over the screen, a scorch or rune circle on the ground, light cast by an effect), or asks to make an effect juicier or more polished, to restyle it (anime, toon, realistic, dark fantasy, cyberpunk, pixel art, ink, painterly, flipbook drawn, hologram, retro 3D, storybook), to match a reference clip or picture, to build effects from their own textures or shaders, or to play an effect from game code with hit-stop and camera shake.
Ships in maneki-vfx. 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.
Read when SKILL.md points to them; scripts run unread.
An effect is one JSON file (a spec) of layers on a timeline. The Godot addon addons/maneki_vfx plays it in
2D or 3D, and a render command turns it into a contact sheet you look at before you revise. You can only use
what the catalog defines, so every valid spec plays. The format has ten layer types, nineteen shader nodes and
twelve built-in styles.
Paths below are relative to this skill's folder, the one this SKILL.md is in (in Claude Code:
${CLAUDE_SKILL_DIR}); scripts/x.sh means that file here. Run the scripts from the Godot project's folder, or
pass --project <dir> to any of them.
addons/maneki_vfx is missing from the project, install it: scripts/install-addon.sh. It copies the
addon from --from <dir> (the repo root or the addon folder), else from the repository this skill came in (a
Claude Code plugin install or a clone has it two folders up), else by cloning the release named in SOURCE;
then it runs the addon's install step (addons/maneki_vfx/tools/install.gd), which enables the editor plugin
and registers the ManekiVfx autoload. If it cannot find the addon, ask the user where their copy of the
maneki-vfx repository is and pass --from. It never replaces an installed addon unless given --update.scripts/check.sh. It checks Godot, the project, the addon and the plugin, validates the examples and
renders slash_3d. Its last line is the sheet's path: open it, and show it to the user so they know rendering
works on their machine. If it, validate.sh or render.sh says the project's addon and this skill are
different versions, tell the user which side is newer and the command it names. To update the addon, with the
user's yes, run scripts/install-addon.sh --update: show the user the changelog's Breaking entries it prints,
and if it ends with a scripts/migrate.sh ... --write command, show the files it lists and run it only with
their yes, right away: until it runs, an effect that relied on a changed default builds differently, and
validate.sh and check.sh print a notice that says so. A project the user pinned (addons/maneki_vfx.pin)
stays on its release.rendering/viewport/hdr_2d=true in project.godot).
It changes how every 2D sprite in the game is blended, so tell the user and ask before you turn it on with
scripts/install-addon.sh --hdr-2d.scripts/godot.sh prints the Godot binary the scripts use (set GODOT_BIN to choose one). Rendering opens a
small window for a few seconds: it needs a display and a GPU. A render that never finishes is stopped after
MVFX_TIMEOUT seconds (default 300). Every script prints its usage with -h. Only reading a reference clip
needs more: ffmpeg and ffprobe (scripts/read-clip.sh says how to get them when they are missing).
Some agents run commands in a sandbox: Codex does by default, and Cursor and Gemini CLI can. Two steps need more than a sandbox allows:
install-addon.sh clones the addon when it is not next to this skill. If the clone
fails, ask for network access for that one command, or ask the user for a copy and pass --from. Never
search the disk for a copy.render.sh, check.sh, gallery.sh and movie.sh open Godot in a window, which a sandbox
blocks. Run them outside the sandbox from the start. If one runs inside anyway, it stops after 20 s and says
so.To ask: in Codex, run the command with sandbox_permissions: "require_escalated" and a one-line reason, such as
"open a Godot window to render the effect". In other agents, ask the user to approve the command outside the
sandbox, or to run it in their own terminal and tell you when it is done. Everything else, including
validate.sh, read-clip.sh and read-picture.sh, works inside the sandbox. Never change the user's sandbox settings yourself.
Plan, in words, before any JSON. Read vfx/ first: a house style in vfx/styles/, the asset manifest
vfx/assets.json, and effects already approved for this game. Reuse them. If one of these is true, read
its page now, before you plan:
scripts/validate.sh --style <name>
with no file for the style's brief, start from the examples it names (under addons/maneki_vfx/), and
set "style" in the spec (references/styles.md).scripts/read-clip.sh <clip> first and
take its window, hit, holds, frame_step and flashes into your beats; for a screenshot of their game, run
scripts/read-picture.sh <picture> first and take its accents, outline, pixel grid and glow, not its
ground color (references/reference-matching.md).Then write five lines:
core), secondary elements (sparks, glow, flash),
tertiary detail (smoke, debris, distortion, ground, ambient), and a trail or light if there is
one;Write the spec to vfx/<name>.vfx.json. Copy the closest example, then change it. Give every layer a
"role": a style treats each layer by its role, and an inferred role can be wrong (chips that fall are
inferred sparks, since debris is never inferred).
Validate: scripts/validate.sh vfx/<name>.vfx.json. Fix every ERROR line. Read every WARNING
line: the polish lints begin with what they are about (Layering, Color, Anatomy, Timing, Impact, Alpha,
Loops, Points, Budget, Style) and say what to change. A Style rule (<style>) warning breaks a rule of the effect's style: fix it.
The roles: line names each layer's role, (inferred) where you gave none: set those. A godot-only line
means the spec uses a project shader node. A line that says a name "was renamed" names the new one:
scripts/migrate.sh --write <file> renames it in place. If it refuses and asks for --from, ask the user
which release the file was written for.
Render: scripts/render.sh vfx/<name>.vfx.json. It validates, renders, and prints the sheet's absolute
path as its last line (by default .maneki-vfx/sheets/<name>.png). Read its WARNING lines too. With a
reference, add --reference <clip, picture or clip report>: the sheet puts the reference's frames above
yours at the same milliseconds from the hit. With a motion, --anchors draws its tracks.
Look at the sheet. Open the PNG with your image-reading tool. An agent that cannot see its render is working blind: never judge an effect from the validator or the report alone. If you cannot read images, say so and ask the user to look.
Critique in two passes. First the stills, against references/polish-checklist.md: anatomy, layering, color, readability. Then a separate timing pass on the motion strip (the bottom row, consecutive frames at 60 fps): count the frames of the attack, the hold and the decay. With a reference, compare against it first: timing from the printed numbers, then size, shape, palette, edges. Write one line per failed check: what is wrong and which field fixes it. references/artifacts.md maps symptoms to causes.
Revise the one or two worst problems, then go back to step 3.
Stop after 4 rounds of render and revise. Then offer variants:
vfx/<name>_a.vfx.json, _b, _c, each changing the current best along
one axis only: timing (snappier attack and a longer hold, or stepped frames), shape language (for
example a thin crescent, a wide smear, broken shards), palette and energy (hotter and brighter, or darker
and heavier).scripts/gallery.sh vfx --only <name> draws the current best and the
three variants (and any other spec whose name contains it) side by side in one overview
(.maneki-vfx/gallery/overview.png). Show the user the overview
and the three sheet paths with a one-line difference for each, and ask which they want (or which parts to
combine: "the timing of a with the colors of c").vfx/<name>.vfx.json, then make two or three new variants that push the
chosen direction further or borrow one named trait from another variant. Repeat until the user is happy.For one frame at full size: scripts/render.sh <spec> --frame 0.12 --size 960x540. To restyle without editing:
scripts/render.sh <spec> --style toon; to see one effect under every style at once:
scripts/gallery.sh vfx --only <name> --styles all. For a clip the user can watch: scripts/movie.sh <spec>
(an AVI in .maneki-vfx/movies/). For the user, the previewer plays an effect in a window with a scrub slider,
loop, speeds down to 0.1x, frame stepping and a style picker, and reloads when the file changes:
"$(scripts/godot.sh)" --path . res://addons/maneki_vfx/tools/preview.tscn -- --spec res://vfx/<name>.vfx.json
(add --style <name> to try a style). In the Godot editor, with the plugin on, it is Project > Tools >
"Preview VFX effect...".
The 63 examples are in addons/maneki_vfx/examples/, in subfolders by kind. List the folder (subfolders
included) and pick by name (names below drop .vfx.json). By effect:
| The effect | Start from |
|---|---|
| A weapon slash | slash_3d, slash_smear_2d |
| An impact or hit spark with a hit-stop | impact_3d, hit_spark_2d |
| An explosion, a ground slam, a shockwave | combat/explosion_3d, combat/explosion_2d, combat/ground_slam_3d, combat/shockwave_2d |
| A projectile with a trail and its impact, a muzzle flash | combat/magic_missile_3d, combat/muzzle_flash_3d |
| A magic burst, a summoning circle, a level-up, a buff | magic_burst_2d, magic/summoning_circle_3d, magic/level_up_3d, magic/buff_spirals_3d |
| Ice, a shape burning away, electric crackle | magic/ice_burst_3d, magic/dissolve_3d, magic/electric_crackle_2d |
| Lightning, chain lightning, a laser | energy/lightning_strike_3d, energy/chain_lightning_3d, energy/laser_3d |
| A beam a game aims, or stops at a wall (points, a coil, a head, dust along it) | energy/charged_beam_3d |
| A shield dome, a portal | energy/shield_3d, energy/portal_3d |
| A torch, a campfire, embers | environment/torch_3d, environment/campfire_3d (lit and put out: a sustain window), embers_3d |
| Something the game holds: a held beam, a crater that burns until released, a channeled spell | energy/held_beam_3d, combat/meteor_crater_3d |
| Rain | environment/rain_3d (drops, splashes, ripples), environment/rain_sheet_2d (screen layers) |
| Snow, a sandstorm, dust motes, fireflies | environment/snow_3d, nature/snow_2d, nature/sandstorm_3d, environment/dust_motes_3d, nature/fireflies_3d |
| Falling leaves, petals, bubbles | environment/leaves_3d, nature/petals_2d, environment/bubbles_2d |
| A splash, footstep dust | nature/water_splash_3d, nature/footstep_dust_3d |
| Fog, heat haze, god rays, a waterfall | environment/fog_bank_3d, nature/heat_haze_3d, environment/god_rays_3d, environment/waterfall_3d |
| Coins that bounce, a heal aura, a charge-up | feedback/coin_burst_3d, feedback/heal_aura_3d, feedback/charge_up_3d |
| Speed lines, a low-health pulse over the screen | energy/speed_lines_2d, screen/low_health_pulse_2d |
| A slash or impact for a look | the style's own: styles/<style>/slash, styles/<style>/impact (seven styles have them), else the examples its brief names |
| A trail, glow, sparks, aura or tether on a character's animation | the specs in references/models.md, sections 3 and 11 |
By what they use, to see a feature at work:
| Feature | Used well in |
|---|---|
decal (scorch, runes, a glow on the floor) | combat/explosion_3d, magic/summoning_circle_3d, energy/lightning_strike_3d |
light (a flash that fades, a steady flicker, lights that move) | combat/explosion_3d, environment/torch_3d, nature/fireflies_3d |
The flipbook node (fire, smoke) | environment/torch_3d, environment/campfire_3d, combat/explosion_3d |
depth_fade (soft against the ground) | environment/fog_bank_3d, energy/shield_3d, combat/magic_missile_3d |
Debris that lands and bounces (ground, on_ground) | combat/ground_slam_3d, nature/footstep_dust_3d, feedback/coin_burst_3d |
| Child bursts born where a particle lands | environment/rain_3d, nature/water_splash_3d |
| A camera volume (weather that fills the view) | environment/rain_3d, environment/snow_3d, nature/petals_2d, nature/sandstorm_3d |
screen layers | environment/rain_sheet_2d, screen/low_health_pulse_2d, energy/speed_lines_2d, nature/sandstorm_3d |
beam | the energy/ beams, magic/electric_crackle_2d (2D), environment/god_rays_3d (light shafts) |
| Ribbons on particles (swirls) | feedback/heal_aura_3d, magic/buff_spirals_3d |
A distortion haze | nature/heat_haze_3d |
The strip mesh | environment/waterfall_3d |
A style's own examples are 2D or 3D, as suits the look; every style applies to 2D and 3D effects alike.
The smallest useful spec, a 2D hit spark:
{
"format": "maneki-vfx/0",
"name": "hit_spark",
"space": "2d",
"duration": 0.36,
"palette": { "core": "#ffffff", "primary": "#ffc23d", "secondary": "#ff4d12" },
"preview": { "extent": 170 },
"events": [
{ "type": "hit_stop", "at": 0.03, "duration": 0.05 },
{ "type": "shake", "at": 0.03, "amplitude": 6, "duration": 0.2 }
],
"layers": [
{ "id": "flare", "type": "sprite", "role": "core", "life": 0.2,
"size": { "curve": [[0, 80], [0.2, 240], [1, 150]], "ease": "out" },
"opacity": { "curve": [[0, 1], [0.3, 1], [0.7, 0]] },
"material": {
"nodes": [
{ "id": "star", "op": "shape", "shape": "star", "points": 4, "radius": 0.9, "thickness": 0.12 },
{ "id": "halo", "op": "shape", "shape": "glow", "radius": 0.8, "thickness": 0.5 },
{ "id": "dim", "op": "math", "fn": "multiply", "a": "halo", "b": 0.6 },
{ "id": "body", "op": "math", "fn": "max", "a": "star", "b": "dim" },
{ "id": "cool", "op": "remap", "in": "life", "from": [0, 1], "to": [1, 0.4] },
{ "id": "hot", "op": "math", "fn": "multiply", "a": "body", "b": "cool" },
{ "id": "ramp", "op": "gradient_map", "in": "hot",
"gradient": [[0, "$secondary"], [0.5, "$primary"], [1, "$core"]] }
],
"color": "ramp",
"alpha": "body",
"emission": { "curve": [[0, 4], [1, 1.2]] }
} },
{ "id": "sparks", "type": "burst", "role": "sparks", "start": 0.03, "count": 24,
"speed": [600, 1300], "drag": 7, "gravity": 500,
"lifetime": [0.15, 0.32], "size": [6, 11], "stretch": 0.05, "shape": "spark",
"color": [[0, "$core"], [0.4, "$primary"], [1, "$secondary"]], "emission": 3 }
]
}
mesh_shell (a mesh carrying a material: arc, ring, disc, quad, cylinder, cone, sphere,
a strip along a path, or the user's mesh), sprite (a quad, camera-facing in 3D), burst (particles),
trail (a ribbon behind a moving point or an animated anchor), screen_flash (flash, invert, impact frame,
chroma split, dim), distortion (bends the scene behind it), beam (a ribbon between two points: lightning,
lasers, tethers), light (lights the scene around the effect), screen (a material over the whole screen)
and decal (3D: projected onto the ground under it). Layers draw in list order, a later one over an earlier
one; in 3D, distortion, dim flashes and decals stay under the rest wherever they are listed.role says what a layer is: core, glow, smoke, sparks, debris, flash, distortion,
ground, ambient, trail or light. Styles drop, scale, retime and reskin layers by role.duration, start, life and event at are seconds on the effect's clock. Curve times
are 0..1 of the layer's life, not seconds: a key at 0.25 of a 0.4 s layer is 0.1 s after it starts. Hit-stop
holds freeze the effect clock; the sheet's labels are wall-clock time, holds included.[0, 1, 0] points down the screen. position and a 3D rotation need every axis: [0, 1, 0].{"curve": [[t, v], ...], "ease": "out"}. Fields typed
number, vec2 or range in the catalog are constants."#rrggbb" (sRGB), [r, g, b] (linear, may exceed 1 for HDR) or a palette name "$core". Use
palette names: a style recolors them, never literals. Glow comes from emission times color above the glow
threshold (1.0): keep emission 2 to 5 on the hot core only.nodes run in order; each reads earlier nodes by id, one part of a node
("uv.y" is v as a number, "<id>.r" one channel of a color node), the built-ins "uv", "life" (0..1)
and "time" (seconds), or values. color and alpha name the nodes to show. Set alpha explicitly; left out,
it is the last node that outputs a number. A texture or scroll node, or a burst with
"shape": "texture", can name a style's kit texture ("kit:smoke", "kit:spark"...) with no asset entry.vfx/<name>.vfx.json; the user's textures, meshes and shader nodes in vfx/assets.json
(found from any spec at or below vfx/); motion files in vfx/motions/; house styles in
vfx/styles/<style>.json, used as "style": "styles/<style>.json" (paths in a spec are relative to the spec).
Sheets, clip reports and the gallery go to .maneki-vfx/, which belongs in .gitignore.references/format.md is the guided tour; references/catalog.md lists every field, type, default and limit.
Every function is static, so this works with or without the plugin (with it, ManekiVfx.spawn(...) is the same
call):
const Vfx = preload("res://addons/maneki_vfx/maneki_vfx.gd")
func _on_sword_hit(at: Vector3) -> void:
var fx: Vfx.Player3D = Vfx.spawn("res://vfx/sword_hit.vfx.json", get_tree().current_scene, at)
if fx == null:
return
fx.hit_stop.connect(_freeze_gameplay)
fx.shake.connect(_shake_camera)
fx.cue.connect(_on_vfx_cue)
spawn returns null when the spec fails to load; the reasons are in Godot's output. The signals carry
hit_stop(duration), shake(amplitude, duration) and cue(cue_name). Typing the player as Vfx.Player3D or
Vfx.Player2D gives the editor's completion.
spawn(path, parent, at, options) builds the effect under parent, places it (at is a Vector3 or
Transform3D in 3D, a Vector2 or Transform2D in 2D), plays it once and frees it when it is over (after its last
particle is gone). A looping effect is not freed: call queue_free() on it. options.style swaps the style.
Each spawn gets its own particle seed, so two torches side by side do not flicker in step; options.seed
picks one (0 is what the render shows).Vfx.warm_up(path, parent) on a loading screen pays both costs early. parent must be in the scene tree.create(path, options) returns the player without adding or playing it; load_effect(path, options) also
returns {ok, errors, warnings, godot_only}. A player has play(from), stop(), seek(t), speed
(0.25 is quarter speed), duration(), is_playing(), and the signals finished, hit_stop, shake, cue.sustain window is held until fx.release(): it finishes the pass of its loop, plays its
outro and frees itself. options.loops or options.hold (seconds) plan it with no code; sustain_started
and released mark the loop and the outro (references/format.md, section 2).points and name them on every layer that
shares them (each beam's from/to, follow for an impact, span along it). Then fx.set_point("to", target.global_position) moves the whole effect's end, each frame if it likes; null hands it back to the
spec. fx.bind_point("from", hand) keeps a point on a node. fx.set_point("<layer id>", "to", position)
moves one beam's end alone. An end named after an anchor in the spec rides that anchor by itself.motion starts when the character's clip reaches motion.offset, placed at the model's
root as it stood when the clip started. It plays the baked motion; fx.bind_skeleton(skeleton) (or
fx.bind_anchor(name, node)) reads the live bones instead, fx.unbind() goes back. Pause the character's
animation during a hit-stop. references/models.md, section 8, has the code._freeze_gameplay,
but not with Engine.time_scale: that also freezes the effect, which then holds again afterward.ManekiVfx.flash_scale (0 turns flashes off) and
ManekiVfx.shake_scale to an accessibility option; flashes can trigger seizures, and many hits a second strobe.fx.drive_camera = true makes the player move the current
camera itself.Vfx.apply_glow(environment, fx) once to write the effect's glow settings into your
WorldEnvironment's Environment. In 2D, that Environment's background mode must be Canvas, and the project
needs HDR 2D (section 1).The format, and checking your work:
Read when the task needs it:
follow, live binding,
particles born on an anchor or a model's surface, beams between anchors.beam), light on the scene (light), rain or speed lines over the screen (screen), marks on
the ground (decal), fire and smoke flipbooks, soft edges against the ground (depth_fade), waterfalls and
rivers (strip).SOURCE (opens in a new tab)references/artifacts.md (opens in a new tab)references/beams-lights-screens-decals.md (opens in a new tab)references/catalog.md (opens in a new tab)references/format.md (opens in a new tab)references/models.md (opens in a new tab)references/particles.md (opens in a new tab)references/polish-checklist.md (opens in a new tab)references/reference-matching.md (opens in a new tab)references/styles.md (opens in a new tab)references/user-assets.md (opens in a new tab)scripts/check.sh (opens in a new tab)scripts/gallery.sh (opens in a new tab)scripts/godot.sh (opens in a new tab)scripts/install-addon.sh (opens in a new tab)scripts/lib.sh (opens in a new tab)scripts/migrate.sh (opens in a new tab)scripts/movie.sh (opens in a new tab)scripts/project.sh (opens in a new tab)scripts/read-clip.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub francosae/maneki-vfx --plugin maneki-vfxOther plugins' skills for the same job