/visual-effects:threejs-particles-trails-and-effectsfrom visual-effects
Builds GPU particle systems, ribbon or history trails and other effects in Three.js WebGPU/TSL, with a representation-first approach that chooses the motion and pool layout before the visuals. Covers analytic or recurrent particle motion, stable-slot or scan-compacted GPU pools, flow-conforming shells and wakes, dissolving debris, and effect-specific HDR and depth integration. Use when a user asks for sparks, debris, trails, a wake or a particle effect in a Three.js or WebGPU scene.
Ships in visual-effects. 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.
Own GPU-resident object- and world-space effects: spawn, motion, lifetime,
compaction, draw representation, depth/blend behavior, and scene-linear HDR
emission. Route viewport history to $threejs-dynamic-surface-effects, weather
accumulation to $threejs-rain-snow-and-wet-surfaces, authored event motion to
$threejs-procedural-motion-systems, and shared post ownership to
$threejs-image-pipeline or $threejs-bloom.
When an effect consumes collision, forcing, or exchange owned by another system, close this local handoff before step 1:
The source owner retains authority; the pool consumes immutable publications.
Invoke $threejs-choose-skills when the route needs additional system owners.
Then read coupled inputs
for effect-specific ownership and degradation rules.
Write one effect contract containing:
The step is complete when every visible or physical claim has one owner and every input has a frame, time, validity policy, and consumer.
Choose the least writable state that represents the mechanism:
| Mechanism | Representation |
|---|---|
| Pose and appearance are pure functions of spawn data and time | Immutable spawn records; evaluate analytically in vertex TSL |
| State recurs independently per particle | Structure-of-arrays hot state; one named compute integration stage |
| Collision or field feedback changes state | Recurrent state plus the owning GPU field/proxy at the same frame and sample time |
| Neighbor interactions matter | Spatial grid/hash or sort-and-scan before bounded local interaction |
Select allocation independently:
| Occupancy behavior | Allocation/compaction |
|---|---|
| Holes cost less than scan/scatter traffic | Stable slots, generation-bearing identity, alive flag, and bounded visible range |
| Dense output materially reduces later work | mark -> exclusive scan -> scatter -> publish indirect count into a second state set |
| Removal is serialized with unique source/destination ownership | Dense tail swap may be used; move every state and identity lane atomically |
For recurrent or compacted pools, read state and compaction before implementation. For neighbor interactions, read neighborhood interactions. The step is complete when every writable lane and every selected compaction or neighborhood phase is justified by a downstream consumer or measured saving.
Keep the order explicit:
ordered event packets
-> deterministic spawn/range allocation
-> optional neighborhood build from committed source state
-> analytic evaluation or one recurrent next-state update, including interaction
-> optional ordered compaction
-> optional trail sample and publication
-> draw from the committed state/count
-> post consumers
Generate cold parameters once and update only recurrent lanes. Preserve stable entity identity across slot movement. Birth, death, slot reuse, teleport, representation change, and unavailable prior state invalidate motion vectors, trails, interpolation, and temporal history before presentation. Analytic particles evaluate both previous and current presentation times; recurrent pools retain their simulation pair and a separately timestamped previous presented state when the renderer interpolates or skips ticks.
A camera cut or other presentation-only discontinuity resets affected screen-space motion and temporal accumulation without restarting particle simulation, lifetimes, identities, or valid world-space trail histories.
Read temporal identity when the effect feeds TAA, motion vectors, trails, or multi-frame post. The step is complete when each state version has one writer, draw consumes a committed version, and a reused slot cannot inherit prior entity history.
For ribbon or history trails, read trail histories and ribbons.
Use WebGPURenderer from three/webgpu, call await renderer.init(), and
require renderer.backend.isWebGPUBackend === true for this canonical path.
Route explicit WebGPU-unavailable teaching to
$threejs-compatibility-fallbacks.
Use Fn().compute(...), renderer.compute(...), storage nodes and
StorageInstancedBufferAttribute for recurrent state. Render sprites with
SpriteNodeMaterial; render shaped particles with InstancedMesh and a
NodeMaterial family material. Dense compaction publishes an indirect command
through IndirectStorageBufferAttribute and geometry.setIndirect().
computeAsync() in r185 waits for renderer initialization, not GPU completion.
Express global phase dependencies as ordered dispatches and keep frame-critical
counts and state GPU-resident.
Read r185 execution facts when implementing compute, indirect draw, bounds, or completion. The step is complete when every admitted spawn, update, neighborhood, compaction, trail publication, and draw phase has explicit GPU ordering, empty/overflow states publish valid counts and mappings, and the steady frame path performs no readback or per-particle object update.
Use sprites or instanced quads for camera-facing sparks, instanced lit meshes for shaped debris, hull-derived geometry for conforming plasma, and generated capsule/profile geometry for wakes. For flow-conforming work, read shells and wakes. For spark or debris work, read analytic sparks and dissolving debris.
Give each draw class an explicit depth and transparency contract. Use chunked analytic bounds or a GPU reduction for storage-driven motion. Keep beauty in scene-linear HDR through one tone-map/output conversion owner. Full-scene bloom reads HDR beauty; allocate a selective emissive MRT only for an authored inclusion/exclusion requirement with a valid transparent blend and measured attachment cost.
Read depth, HDR, and output before accepting transparent or emissive effects. The step is complete when occlusion, ordering, bounds, HDR contribution, and final conversion each have one tested owner.
Capture seeded fixed-time states and expose only applicable evidence: event and spawn ranges; live/slot count, overflow, identity, and age/velocity for pooled state; compaction count and mapping for compacted state; trail head/count, chronological samples, and breaks for trails; neighborhood occupancy and overflow for local interactions; bounds, depth mode, raw HDR, optional selective signal, bloom contribution, overdraw, and GPU time for the selected draw and post classes. Compare only admitted alternatives at the same visible workload.
When bloom is admitted, verify the beauty path with bloom disabled and preserve readable silhouette, layer roles, depth, and motion without halo support. Scale by stopping idle work, removing unnecessary writable state or compaction, then reducing active count, field bandwidth, transparent layers, and post extent while preserving the selected motion class and owners.
Read resource accounting and diagnostics and failure signatures for the applicable branches. The skill is complete when the seeded result is repeatable; every admitted event, update, neighborhood, compaction, trail, draw, and post phase has evidenced order; stable identity and reset controls pass; the frame path has zero required readbacks; depth and output ownership are singular; the bloom-off image remains legible when bloom is admitted; and the complete scene meets its named resource and timing budget.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
7 skills in this plugin
/blender-simulation-workflowCreate, diagnose, bake, and validate deterministic Blender physics simulations including fluid, smoke, fire, rigid bodies, cloth, soft bodies, particles, and hair. Use when a request involves physical dynamics, collision, cache baking, fluid or volume output, simulation handoff, or rendering a simulation./fire-smoke-vfxBuild fire and smoke effects as one visual language in Three.js. Use for fire skills, fireballs, fire waves or breath, fire tornadoes, burning ground, wildfire fronts, smoke columns, embers, "realistic fire", "inferno"./glsl-shadersComprehensive GLSL shader techniques for stunning real-time visual effects (ShaderToy-compatible, WebGL2): ray marching, SDF modeling, fluid simulation, particle systems, procedural generation, lighting, post-processing, and more. Use when a user asks for a GLSL or ShaderToy shader, a raymarched SDF scene, fluid or ink, procedural noise, a bloom or tone-map pass, or a fix for a WebGL2 shader compile error./threejs-bloomAdds bloom (the glow around bright light) to a Three.js WebGPU/TSL scene using scene-linear HDR input. Covers optical full-scene glare, selective or hybrid emissive contributors, transparent contribution blending, and viewport, exposure and performance gates for BloomNode. Use when a user asks for bloom, glow, halos or a glare pass in a Three.js or WebGPU scene, or when bloom looks wrong on emissive or transparent objects./threejs-physicsIntegrates Rapier or another physics engine with Three.js, including colliders, fixed timesteps and render synchronization. Use when a user asks to add physics, gravity, collisions, rigid bodies or a Rapier world to a Three.js scene, or when a fast body passes through a collider or resting bodies are unstable./visual-effects-guideStart here for visual effects work. Routes a request to the right visual-effects skill (fire and smoke, GLSL shaders, Three.js bloom, particles and trails, Three.js physics, Blender simulation bakes) and sequences several of them into a workflow with the input and output of each step. Use when a user asks how to make a fireball, flames, smoke, sparks, debris, a glow or bloom, a physics scene, a shader, or a Blender fluid or cloth simulation, or asks which VFX approach fits.npx claudepluginhub frzxw/supercharger --plugin visual-effects