/pixelstrata:three-quarksfrom pixelstrata
Add particle effects and VFX to three.js games with three.quarks (MIT): BatchedRenderer, ParticleSystem, emitter shapes, over-life behaviours, billboard/stretched/mesh/trail render modes, flipbook sprite sheets, effects designed in the quarks.art visual editor and loaded from JSON with QuarksLoader, React Three Fiber via quarks.r3f, and Unity Shuriken import. Use when a three.js or R3F project needs fire, smoke, explosions, magic, hit sparks, trails, rain or dust, or mentions three.quarks, quarks.r3f, BatchedRenderer or quarks.art.
Ships in pixelstrata. 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.
three.quarks (MIT) is a high-performance
particle and VFX library for three.js, written in TypeScript. Version 0.17.1. It needs
three >= 0.182. A batched renderer keeps draw calls low. Effects can be designed in the visual
editor at quarks.art/create and loaded from JSON.
Not this skill: the scene, camera and render loop → threejs-scene-setup; materials →
threejs-materials-lighting; Godot particles (GPUParticles) → Godot skills; designing the feel
of an impact → game-feel. Pixel-art flipbooks for the effect texture → PixelLab
vfx_workbench via pixelstrata.
npm install three.quarks (and quarks.r3f for React Three Fiber). Check the project's
three version meets the peer dependency.BatchedRenderer, add it to the scene, and call batchRenderer.update(delta)
every frame.public/effects/ or assets/vfx/.performance-optimization).Setup and an emitter in code
import * as THREE from 'three';
import { BatchedRenderer, ParticleSystem, ConstantValue, IntervalValue, ConstantColor,
ConeEmitter, RenderMode, SizeOverLife, ColorOverLife, PiecewiseBezier, Bezier,
Gradient } from 'three.quarks';
const batch = new BatchedRenderer();
scene.add(batch);
const sparks = new ParticleSystem({
duration: 0.5, looping: false,
startLife: new IntervalValue(0.2, 0.5),
startSpeed: new IntervalValue(4, 8),
startSize: new IntervalValue(0.05, 0.15),
startColor: new ConstantColor(new THREE.Vector4(1, 0.8, 0.3, 1)),
maxParticle: 64,
emissionOverTime: new ConstantValue(0),
emissionBursts: [{ time: 0, count: new ConstantValue(30), cycle: 1, interval: 0, probability: 1 }],
shape: new ConeEmitter({ radius: 0.1, angle: Math.PI / 4 }),
material: new THREE.MeshBasicMaterial({ map: sparkTex, transparent: true,
blending: THREE.AdditiveBlending, depthWrite: false }),
renderMode: RenderMode.StretchedBillBoard,
speedFactor: 0.1,
});
sparks.addBehavior(new SizeOverLife(new PiecewiseBezier([[new Bezier(1, 0.8, 0.3, 0), 0]])));
scene.add(sparks.emitter);
batch.addSystem(sparks);
const clock = new THREE.Clock();
renderer.setAnimationLoop(() => { batch.update(clock.getDelta()); renderer.render(scene, camera); });
Check the emissionBursts and speedFactor field names against the installed version's
typings. The quick-start fields (duration, looping, startLife, startSpeed, startSize,
startColor, maxParticle, emissionOverTime, shape, material, renderMode) come from the
official README.
Effects from the editor (JSON)
import { QuarksLoader, QuarksUtil } from 'three.quarks';
const loader = new QuarksLoader();
loader.load('effects/explosion.json', (effect) => { explosionTemplate = effect; });
function explodeAt(pos) {
const fx = explosionTemplate.clone();
fx.position.copy(pos);
scene.add(fx);
QuarksUtil.addToBatchRenderer(fx, batch);
QuarksUtil.setAutoDestroy(fx, true);
QuarksUtil.play(fx);
}
React Three Fiber: wrap the canvas content in QuarksProvider from quarks.r3f and use its
<ParticleSystem ... autoPlay /> component with emitters and behaviours from three.quarks.
PointEmitter, ConeEmitter, SphereEmitter, HemisphereEmitter,
CircleEmitter, DonutEmitter, RectangleEmitter, GridEmitter, MeshSurfaceEmitter.uTileCount / vTileCount (and startTileIndex, blendTiles) and add
FrameOverLife. This is how PixelLab/vfx_workbench spritesheets become 3D effects. Use
THREE.NearestFilter on the texture for a pixel-art look.worldSpace (particles stay behind a moving emitter), prewarm,
softParticles, renderOrder.BatchedRenderer in the scene, addSystem/addToBatchRenderer
missing, or update never called → check all three.batch.update(delta) skipped while paused → keep calling it, or pass 0
deliberately.transparent: true, additive blending,
depthWrite: false.QuarksUtil.setAutoDestroy(fx, true).worldSpace: true.three to the version's peer dependency.threejs-scene-setup, threejs-materials-lighting, game-feel,
performance-optimization, pixelstrata (VFX textures).Examples are adapted from the three.quarks README (MIT, © 2019 Forrest Sun).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jasonmello/pixelstrata --plugin pixelstrata7 skills in this plugin
/godot-mcpDrive the Godot engine from the agent through the godot-mcp server (Coding-Solo, MIT): run a project and read its debug output and errors, launch the editor, create scenes, add nodes with properties, load textures into Sprite2D nodes, save scene variants, export MeshLibrary for GridMap, and fix UIDs. Use when verifying a Godot change by running it, importing generated sprites into scenes, reading runtime errors, or when the user mentions godot-mcp or the mcp__godot__ tools.
/jolt-physicsUse Jolt Physics, the MIT-licensed multi-core 3D rigid-body engine, in Godot (built in since 4.4, default for new 3D projects since 4.6) or as a standalone C++ library: switch a Godot project to Jolt, explain behaviour differences from GodotPhysics3D (joints, margins, kinematic contacts, ray face_index, soft bodies), migrate from the godot-jolt extension, and set up PhysicsSystem, layers, bodies, CharacterVirtual, vehicles, ragdolls and determinism in C++. Use when the user mentions Jolt, JoltPhysics, physics/3d/physics_engine, jolt_physics_3d settings, godot-jolt, JPH_ defines, BodyInterface, or physics that changed after switching engine.
/material-makerCreate procedural PBR, stylized and pixel-art 3D materials with Material Maker (MIT, built on Godot 4.7): author or edit .ptex node graphs as JSON, export them from the command line with --export-material to Godot 4 (ORMMaterial3D/StandardMaterial3D .tres), Unity, Unreal, Blender or glTF, write custom GLSL nodes (.mmg), paint 3D models, and import the maps into the engine. Use when the user wants a procedural texture or material (bricks, rock, wood, metal, sci-fi panels, terrain textures), mentions Material Maker, .ptex, .mmg, ORM maps, tileable textures, or needs albedo/normal/roughness/height maps for a 3D game.