building-router
Skill9 starsChanged 6 months agoMITView on GitHub
Router for 3D building game mechanics in Three.js. Use when creating survival games, sandbox builders, base builders, or any game with player-constructed structures. Routes to 9 specialized skills for performance, physics, multiplayer, terrain, decay, UX, platform support, and design reference. Start here for building mechanics projects.
In this repository77 other files it gives its agents.
- building-mechanicsSkill
- algorithmic-artSkill
- audio-analysisSkill
- audio-playbackSkill
- audio-reactiveSkill
- audio-routerSkill
- aws-skillsSkill
- backend-dev-guidelinesSkill
- brainstormingSkill
- brand-guidelinesSkill
- builder-uxSkill
- canvas-designSkill
- case-studies-referenceSkill
- component-librarySkill
- d3js-visualizationSkill
- dashboardSkill
- decay-upkeepSkill
- doc-coauthoringSkill
- docxSkill
- form-accessibilitySkill
- form-reactSkill
- form-securitySkill
- forms-routerSkill
- form-ux-patternsSkill
- form-validationSkill
- form-vanillaSkill
- form-vueSkill
- frontend-designSkill
- frontend-dev-guidelinesSkill
- gsap-fundamentalsSkill
- gsap-reactSkill
- gsap-routerSkill
- gsap-scrolltriggerSkill
- gsap-sequencingSkill
- immersive-visuals-routerSkill
- internal-commsSkill
- mcp-builderSkill
- multiplayer-buildingSkill
- particles-gpuSkill
- particles-lifecycleSkill
- particles-physicsSkill
- particles-routerSkill
- pdfSkill
- performance-at-scaleSkill
- platform-buildingSkill
- postfx-bloomSkill
- postfx-composerSkill
- postfx-effectsSkill
- postfx-routerSkill
- pptxSkill
- product-self-knowledgeSkill
- r3f-dreiSkill
- r3f-fundamentalsSkill
- r3f-geometrySkill
- r3f-materialsSkill
- r3f-performanceSkill
- r3f-routerSkill
- router-templateSkill
- scientific-documentationSkill
- shader-effectsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
When multiple signals present:
- Distinctive: line 95
When combining skills, wire in this sequence:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Building Mechanics Router
Routes to 9 specialized skills based on game requirements.
Routing Protocol
- Classify — Single/multiplayer + scale + core features
- Match — Apply signal matching rules below
- Combine — Most games need 3-5 skills together
- Load — Read matched SKILL.md files before implementation
Quick Route
Tier 1: Core Mechanics
| Need | Skill | Signals |
| Spatial queries, collision | performance-at-scale | slow, lag, optimize, spatial, collision, thousands |
| Stability, damage, collapse | structural-physics | stability, collapse, support, damage, Fortnite, Rust, Valheim |
| Network sync, prediction | multiplayer-building | network, multiplayer, sync, server, latency, authoritative |
Tier 2: Enhanced Features
| Need | Skill | Signals |
| Slopes, foundations, anchoring | terrain-integration | slope, terrain, foundation, ground, pillar, heightmap |
| Timer decay, Tool Cupboard | decay-upkeep | decay, upkeep, maintenance, tool cupboard, abandoned |
| Blueprints, undo/redo, preview | builder-ux | blueprint, prefab, undo, redo, ghost, preview, selection |
Tier 3: Platform & Reference
| Need | Skill | Signals |
| Touch, VR, accessibility | platform-building | mobile, touch, VR, hand tracking, colorblind |
| Design analysis, trade-offs | case-studies-reference | how does Fortnite/Rust do, compare games, trade-offs |
Signal Priority
When multiple signals present:
- Multiplayer explicit →
multiplayer-buildingrequired - Scale indicator → >1000 pieces triggers
performance-at-scale - Persistence → Long-running servers trigger
decay-upkeep - Platform constraint → Mobile/VR triggers
platform-building - Default →
structural-physicsalways relevant for building games
Common Combinations
Full Survival (Rust-style, 6 skills)
performance-at-scale → spatial indexing
structural-physics → stability + damage
multiplayer-building → networking
terrain-integration → foundations on slopes
decay-upkeep → Tool Cupboard + upkeep
builder-ux → blueprints + undoBattle Royale Building (2 skills)
performance-at-scale → fast collision
multiplayer-building → low-latency syncSingle-Player Builder (3-4 skills)
structural-physics → stability + damage
terrain-integration → natural terrain
builder-ux → blueprints + undo
performance-at-scale → if >1000 piecesPersistent Server (4 skills)
multiplayer-building → networking
structural-physics → stability
decay-upkeep → automatic cleanup
performance-at-scale → entity managementDecision Table
| Mode | Scale | Terrain | Skills |
| Single | <1K | Grid | physics + ux |
| Single | <1K | Natural | physics + terrain + ux |
| Single | >1K | Any | performance + physics + ux |
| Multi | Fast | Any | performance + multiplayer |
| Multi | Survival | Any | performance + physics + multiplayer + decay |
| Multi | Persistent | Any | performance + physics + multiplayer + decay + ux |
Integration Order
When combining skills, wire in this sequence:
- Spatial index → Query foundation for all other systems
- Validator → Uses spatial for neighbor/support detection
- Damage → Uses spatial for cascade radius
- Network → Broadcasts all state changes
- Client prediction → Uses local spatial + validator
Fallback
- No scale stated → Ask: "How many pieces expected?"
- Unclear mode → Ask: "Single-player or multiplayer?"
- Generic "building game" → Start with
structural-physics+builder-ux
Reference
See references/integration-guide.md for complete wiring patterns and code examples.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

