Three.js 3D building system with spatial indexing, structural physics (arcade/heuristic/realistic), and multiplayer networking (delta compression, client prediction).
Ships in bbeierle12-skill-mcp-claude. 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.
Complete building system for Three.js games with performance optimization, structural physics, and multiplayer networking.
import { SpatialHashGrid } from './scripts/spatial-hash-grid.js';
import { HeuristicValidator } from './scripts/heuristic-validator.js';
// Spatial indexing for fast queries
const spatialIndex = new SpatialHashGrid(10);
spatialIndex.insert(piece, piece.position);
const nearby = spatialIndex.queryRadius(position, 15);
// Structural validation (Rust/Valheim style)
const validator = new HeuristicValidator({ mode: 'heuristic' });
validator.addPiece(piece);
const canPlace = validator.validatePlacement(newPiece);
Read these for detailed implementation guidance:
references/performance-at-scale.md - Spatial partitioning, chunk loading, instancing, LODreferences/structural-physics-advanced.md - Arcade vs heuristic vs realistic physicsreferences/multiplayer-networking.md - Authority models, delta sync, conflict resolutionscripts/spatial-hash-grid.js - O(1) queries for uniform distributionscripts/octree.js - Adaptive queries for clustered basesscripts/chunk-manager.js - World streaming for large mapsscripts/performance-profiler.js - Benchmarking utilitiesscripts/heuristic-validator.js - Fast validation (Fortnite/Rust/Valheim modes)scripts/stability-optimizer.js - Caching and batch updatesscripts/damage-propagation.js - Damage states, cascading collapsescripts/physics-engine-lite.js - Optional realistic physicsscripts/delta-compression.js - Only send changed statescripts/client-prediction.js - Optimistic placement with rollbackscripts/conflict-resolver.js - Handle simultaneous buildsscripts/building-network-manager.js - Complete server/client system| Pieces | Distribution | Use |
|---|---|---|
| <1,000 | Any | Array |
| 1-5k | Uniform | SpatialHashGrid |
| 1-5k | Clustered | Octree |
| 5k+ | Any | ChunkManager + Octree |
Server-authoritative with client prediction. Use delta compression for sync.
_meta.json (opens in a new tab)references/multiplayer-networking.md (opens in a new tab)references/performance-at-scale.md (opens in a new tab)references/structural-physics-advanced.md (opens in a new tab)scripts/building-network-manager.js (opens in a new tab)scripts/chunk-manager.js (opens in a new tab)scripts/client-prediction.js (opens in a new tab)scripts/conflict-resolver.js (opens in a new tab)scripts/damage-propagation.js (opens in a new tab)scripts/delta-compression.js (opens in a new tab)scripts/heuristic-validator.js (opens in a new tab)scripts/octree.js (opens in a new tab)scripts/performance-profiler.js (opens in a new tab)scripts/physics-engine-lite.js (opens in a new tab)scripts/spatial-hash-grid.js (opens in a new tab)scripts/stability-optimizer.js (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/bbeierle12-skill-mcp-claude:building-mechanicsfrom bbeierle12-skill-mcp-claude
bbeierle12-skill-mcp-claude@cascade-code-languages-misc-1 is listed by joshuarweaver/cascade-code-languages-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin bbeierle12-skill-mcp-claude78 skills in this plugin
/algorithmic-artCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations./audio-analysisAudio analysis with Tone.js and Web Audio API including FFT, frequency data extraction, amplitude measurement, and waveform analysis. Use when extracting audio data for visualizations, beat detection, or any audio-reactive features./audio-playbackAudio playback using Tone.js including players, transport, scheduling, and loading audio. Use when implementing background music, sound effects, audio synchronization, or timed audio events. Essential for any audio-enabled web application.