Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add Bbeierle12/Skill-MCP-Claude --skill "building-router"
Install specific skill from multi-skill repository
# Description
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.
# SKILL.md
name: building-router
description: 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.
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:
1. Multiplayer explicit β multiplayer-building required
2. Scale indicator β >1000 pieces triggers performance-at-scale
3. Persistence β Long-running servers trigger decay-upkeep
4. Platform constraint β Mobile/VR triggers platform-building
5. Default β structural-physics always 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 + undo
Battle Royale Building (2 skills)
performance-at-scale β fast collision
multiplayer-building β low-latency sync
Single-Player Builder (3-4 skills)
structural-physics β stability + damage
terrain-integration β natural terrain
builder-ux β blueprints + undo
performance-at-scale β if >1000 pieces
Persistent Server (4 skills)
multiplayer-building β networking
structural-physics β stability
decay-upkeep β automatic cleanup
performance-at-scale β entity management
Decision 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:
1. Spatial index β Query foundation for all other systems
2. Validator β Uses spatial for neighbor/support detection
3. Damage β Uses spatial for cascade radius
4. Network β Broadcasts all state changes
5. 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.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.