/xenodot:godot-oneshot-vfxfrom xenodot
Provides a reusable one-shot VFX rig for Godot 4.6 combat effects (muzzle flash, hit spark, death burst, shockwave) that auto-frees on particle finish. Use when adding juice to combat seams or fixing leaking particles.
Ships in xenodot. 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.
Combat juice is short, frequent, and disposable: a muzzle flash, a hit spark, a
death burst. Each is spawned, plays once, and is gone. Mirror the audio house
style exactly — fire-and-free: instance a small Node3D-rooted effect at a
world point, let it emit one burst, and have it queue_free() itself on the
GPUParticles3D finished signal. ONE rig (vfx_base.tscn + VfxOneShot.gd)
backs many effects; a thin router component maps gameplay signals to effect
scenes. No global VFX manager — composition over autoloads. Build effects ON
DEMAND, one seam at a time; the reusable unit is the spawn-free lifecycle and
the routing map, never a per-effect singleton.
godot-composition — the router is a plain component (signals up / calls
down), NOT an autoload. A VFXManager singleton contradicts CLAUDE.md.godot-code-rules — strict typed GDScript; loaded before any .gd edit.project.godot config/features). GPUParticles3D
trails and Decal are Forward+/Mobile only — never Compatibility.godot-shooter-enemy-combat (enemy died, weapon
hit_confirmed / kill_confirmed) and godot-travelling-projectile-3d
(projectile signal hit(target), weapon signal fired). VFX only listens
on these — it changes no contract.entities/vfx/<name>.tscn (snake_case file). Nodes are
PascalCase (VfxOneShot, Particles, MuzzleFlash).Muzzle Marker3D → child MuzzleFlash
OmniLight3D ("off by default") in rifle.tscn / weapon.tscn.VfxRoot Node3D (Main-level or
level-local) BEFORE the owner queue_free()s — otherwise the burst is cut
when the projectile/enemy frees mid-effect. Set global_transform after
reparent so it stays at the impact point.entities/vfx/vfx_base.tscn + VfxOneShot.gdScene: VfxOneShot (Node3D, script below) → Particles (GPUParticles3D). On
the GPUParticles3D set one_shot = true, emitting = false (the script's
start() flips it AFTER placement), explosiveness = 1.0 (whole burst at once), a draw-pass mesh + a
ParticleProcessMaterial, and local_coords = false so particles stay in world
space where the burst spawned (true would drag them with the node — only use
true for an attached trailing effect).
class_name VfxOneShot
extends Node3D
## One-shot fire-and-free particle burst: emits once, frees self on `finished`.
@onready var _particles: GPUParticles3D = $Particles
func _ready() -> void:
_particles.one_shot = true
_particles.local_coords = false
_particles.emitting = false # ARM only — _ready() runs DURING add_child, before placement
if not _particles.finished.is_connected(_on_finished):
_particles.finished.connect(_on_finished)
# Do NOT restart()/emit here: global_transform is not set until AFTER add_child, so
# emitting now seeds every particle at the pre-placement origin (0,0,0).
## Call AFTER global_transform is set on this node — emits from the correct world point.
func start() -> void:
_particles.restart() # reset + emit; seeds particle origins at the now-correct world pos
func _on_finished() -> void:
queue_free()
Perf budget (inline, non-negotiable for the POC): lifetime 0.2–0.8 s,
≤ ~200 particles per burst, a flash light NEVER casts shadow. Keep
explosiveness = 1.0 so one burst = one finished.
A plain component child of the entity owning the seam. It holds a dictionary of
preloaded effect scenes and a single _spawn_vfx() that instances under the
surviving VfxRoot, places it, and lets the rig free itself.
class_name VfxRouter
extends Node
## Thin router: gameplay signal → one-shot effect scene. No autoload.
const FX_IMPACT: PackedScene = preload("res://entities/vfx/impact_burst.tscn")
const FX_DEATH: PackedScene = preload("res://entities/vfx/death_burst.tscn")
@export var vfx_root_path: NodePath # a surviving VfxRoot Node3D
func _spawn_vfx(scene: PackedScene, at: Transform3D) -> void:
var root: Node3D = get_node(vfx_root_path) as Node3D
if root == null:
return
var fx: Node3D = scene.instantiate() as Node3D
root.add_child(fx) # into tree BEFORE placement (arms the rig, does NOT emit)
fx.global_transform = at # place AFTER add_child — a pre-tree transform silently no-ops
if fx.has_method("start"):
@warning_ignore("unsafe_method_access")
fx.start() # emit LAST, from the now-correct world point
func on_hit(target: Node3D) -> void:
_spawn_vfx(FX_IMPACT, target.global_transform)
func on_died(enemy: Node3D) -> void:
_spawn_vfx(FX_DEATH, enemy.global_transform)
Wire it by connecting the existing seams to these handlers (e.g. projectile
hit → on_hit, enemy died → on_died, weapon fired → the muzzle pulse
below). The contract owners (godot-shooter-enemy-combat,
godot-travelling-projectile-3d) are unchanged — VFX only hangs a listener.
fired — reuse the existing OmniLight3DDo not add a new light. Drive the existing MuzzleFlash OmniLight3D as a
shadowless pulse on the weapon's fired signal. Confirm shadow_enabled = false on it (a flash must never cast a shadow — perf + correctness). Pulse its
energy up then tween back, optionally spawning a tiny spark VfxOneShot at the
Muzzle Marker3D.
func _on_fired() -> void:
$Muzzle/MuzzleFlash.shadow_enabled = false
$Muzzle/MuzzleFlash.light_energy = 4.0
create_tween().tween_property(
$Muzzle/MuzzleFlash, "light_energy", 0.0, 0.06)
hitentities/vfx/impact_burst.tscn is a vfx_base.tscn instance tuned to a short
spark cone (lifetime ~0.3 s, ≤ ~120 particles). Route projectile signal hit(target) → VfxRouter.on_hit, spawning at the hit point. ONE generic impact
first — per-surface (metal/concrete/flesh) tags are deferred.
For a cheap ring/blast with no particle cost: a MeshInstance3D (flat
ring/quad, unshaded transparent material) whose scale tweens up while alpha
tweens to 0, then queue_free(). Use when a burst needs a big readable shape
but not 200 particles.
func _ready() -> void:
var t: Tween = create_tween().set_parallel()
t.tween_property(self, "scale", Vector3.ONE * 4.0, 0.4)
t.tween_property($Ring, "transparency", 1.0, 0.4)
t.chain().tween_callback(queue_free)
VfxOneShot leak).shadow_enabled = false).tools/validate.sh passes on all touched .gd / .tscn.| Symptom | Fix |
|---|---|
| Effect invisible (emits but nothing drawn) | GPUParticles3D has no draw-pass mesh — assign a mesh to Draw Pass 1. |
| Node never frees / leaks in remote tree | one_shot is false, or finished not connected — set one_shot = true and connect finished → queue_free. |
| Burst at wrong spot (origin / dragged with owner) | local_coords wrong — set false for a world burst; set global_transform AFTER reparenting under VfxRoot. |
| Burst flashes at world origin (0,0,0) on spawn | Emission fires in _ready() (which runs DURING add_child, before global_transform is set) — split emit into start() and call it AFTER placement; _ready() only arms (emitting = false). |
| Burst cut short when projectile/enemy frees | Owner freed before the effect — reparent the effect under a surviving VfxRoot BEFORE the owner queue_free()s. |
| Trail empty / no trail renders | Running Compatibility renderer — trails are Forward+/Mobile only; switch to Forward+. |
| Re-used rig won't re-fire second time | Call start() (which restart()s) after placement; toggling emitting alone won't re-fire a one_shot mid-cycle. |
Adapted from GodotPrompter (https://github.com/jame581/GodotPrompter), MIT License, Copyright (c) GodotPrompter Contributors.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
godot-vfx, one-shot, particles, combat-effects, fire-and-free
npx claudepluginhub arthur0n/xenodot-forge --plugin xenodot50 skills in this plugin
/agent-reportThe agent→orchestrator handoff protocol. A backgrounded worker's relayed result string truncates on long, tool-heavy turns, so the handoff is an artifact, not a string — the worker Writes its full report to a file, and the orchestrator reads that file directly. Load this whenever a task asks you to hand off a structured report to another agent. Any agent doing background work that must be handed off uses it — not only builders. Defines the report contract the writer follows./autonomous-main-goalThe hive's Autonomous Mode self-drive loop. When a standing Main Goal is active, evaluate it, break it into ordered slices, then on each `[Autonomous check/cavemanUltra-compressed communication mode — always active for this agent. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Drop only when interviewing the user via mcp__ui__form (labels/descriptions must be clear prose).
/godot-3d-pixelationSubViewport-based low-resolution crisp rendering of a 3D scene in Godot 4.x — the foundation of the "3D pixel art" style. Use for pixelated/retro/PSX/low-res 3D, setting SubViewport render resolution, "crisp pixels", restructuring a scene tree so 3D renders below window resolution, or when a downscaled viewport looks blurry./godot-animation-librariesImport and play skeletal animations on a sourced 3D character in Godot 4.6 — the separate-glTF workflow (one model file + anim-only files), merging anim clips into an AnimationLibrary loaded onto your own AnimationPlayer, and retargeting a foreign animation (e.g. Mixamo) onto your skeleton via SkeletonProfileHumanoid. Use when an animated rigged .glb arrives in assets/models/, when a character must stop being a static capsule and play a looping idle/walk, when animations come in their own glTF separate from the model, when a sourced animation targets a different skeleton than your character, or when an imported AnimationPlayer's clips won't play / play on the wrong bones. NOT for static-prop import (that is godot-mesh-import + its style delta), NOT for shader-time foliage sway (godot-foliage), NOT for 2D sprite-frame animation./godot-arena-spatial-designOPT-IN spatial-design principles for a combat/arena encounter space in Godot — nine measurable properties (loop topology, interior cover, partitioned sightlines, cover mix, bounded verticality, landmarks, spawn-to-engagement pacing, scale/density, choke-vs-open) that turn a flat blockout into a real firefight space. Use ONLY when the level being built is a combat/arena encounter (enemy waves, gunfights) — apply ALONGSIDE whichever build method is chosen (`godot-greybox` static default, `godot-runtime-arena` runtime, or `godot-gridmap-level` tile-fill). NOT the build mechanism itself, NOT a general level-design bar for non-combat spaces (that's `level-design-principles`).Other plugins' skills for the same job