r3f-router
28
总安装量
19
周安装量
#13274
全站排名
安装命令
npx skills add https://github.com/bbeierle12/skill-mcp-claude --skill r3f-router
Agent 安装分布
claude-code
13
opencode
13
gemini-cli
11
antigravity
11
codex
11
windsurf
9
Skill 文档
R3F Router
Routes to 5 specialized React Three Fiber skills based on task requirements.
Routing Protocol
- Classify â Identify primary task type from user request
- Match â Find skill(s) with highest signal match
- Combine â Most R3F tasks need 2-4 skills together
- Load â Read matched SKILL.md files before implementation
Quick Route
Tier 1: Core (Always Consider)
| Task Type | Skill | Primary Signal Words |
|---|---|---|
| Scene setup | r3f-fundamentals |
canvas, scene, camera, lights, render, useFrame |
| Custom shapes | r3f-geometry |
geometry, vertices, bufferAttribute, instancing, mesh |
| Surface appearance | r3f-materials |
material, shader, texture, uniform, color, PBR |
Tier 2: Enhanced (Add When Needed)
| Task Type | Skill | Primary Signal Words |
|---|---|---|
| Optimization | r3f-performance |
performance, FPS, draw calls, LOD, culling, memory |
| Helpers/Controls | r3f-drei |
OrbitControls, useGLTF, Text, Environment, Html |
Signal Matching Rules
Priority Order
When multiple signals present, resolve by priority:
- Explicit component â “add OrbitControls” â
r3f-drei - Specific technique â “use instancing” â
r3f-geometry - Problem domain â “custom shader” â
r3f-materials - Default tier â Fall back to
r3f-fundamentals
Confidence Scoring
- High (3+ signals) â Route immediately
- Medium (1-2 signals) â Route with
r3f-fundamentalsas base - Low (0 signals) â Ask user for clarification
Common Combinations
Basic 3D Scene (3 skills)
r3f-fundamentals â Canvas, camera, lights, render loop
r3f-drei â OrbitControls, Environment, helpers
r3f-materials â MeshStandardMaterial, textures
Wiring: Fundamentals provides scene structure, drei adds controls and environment, materials define appearance.
Custom Shader Effect (3 skills)
r3f-fundamentals â Scene setup, useFrame for animation
r3f-geometry â Custom BufferGeometry if needed
r3f-materials â ShaderMaterial, uniforms, GLSL
Wiring: Fundamentals handles render loop, materials provides shader infrastructure.
Particle System (4 skills)
r3f-fundamentals â Scene, camera, render loop
r3f-geometry â InstancedMesh, buffer attributes
r3f-materials â Custom particle shader
r3f-performance â Optimization, draw call reduction
Wiring: Geometry provides instancing, materials handles particle rendering, performance ensures smooth animation.
Product Visualization (4 skills)
r3f-fundamentals â Scene structure
r3f-drei â useGLTF, Environment, ContactShadows, OrbitControls
r3f-materials â PBR materials, environment mapping
r3f-performance â LOD, texture optimization
Wiring: Drei loads model and provides studio setup, materials ensures realistic rendering.
Large Scene (4 skills)
r3f-fundamentals â Base scene management
r3f-geometry â Merged geometry, instancing
r3f-performance â LOD, culling, lazy loading
r3f-drei â Bounds, Preload, Detailed
Wiring: Performance strategies combined with geometry optimization for smooth rendering.
Decision Table
| Scenario | Model Loading | Custom Shapes | Custom Shaders | Optimization | Route To |
|---|---|---|---|---|---|
| Simple viewer | Yes | No | No | No | fundamentals + drei |
| Custom geometry | No | Yes | No | No | fundamentals + geometry |
| Shader art | No | Maybe | Yes | No | fundamentals + materials + geometry |
| Game/simulation | Maybe | Yes | Maybe | Yes | all skills |
| Product viz | Yes | No | No | Maybe | fundamentals + drei + materials |
| Particles | No | Yes | Yes | Yes | fundamentals + geometry + materials + performance |
Skill Dependencies
r3f-fundamentals (foundation)
âââ r3f-geometry (extends fundamentals)
âââ r3f-materials (extends fundamentals)
âââ r3f-drei (extends fundamentals)
âââ r3f-performance (applies to all)
- Always start with
r3f-fundamentals r3f-geometryandr3f-materialsoften used togetherr3f-dreican replace manual implementationsr3f-performanceapplies optimization to any combination
Fallback Behavior
- Unknown task type â Start with
r3f-fundamentals+r3f-drei - No clear signals â Ask: “What are you trying to render?” and “Any specific effects needed?”
- Conflicting signals â Prefer
r3f-dreiabstractions over manual implementations
Quick Decision Flowchart
User Request
â
â¼
âââââââââââââââââââââââ
â Need 3D model? âââYesâââ¶ r3f-drei (useGLTF)
âââââââââââââââââââââââ
â No
â¼
âââââââââââââââââââââââ
â Custom geometry? âââYesâââ¶ r3f-geometry
âââââââââââââââââââââââ
â No
â¼
âââââââââââââââââââââââ
â Custom shader? âââYesâââ¶ r3f-materials
âââââââââââââââââââââââ
â No
â¼
âââââââââââââââââââââââ
â Performance issues? âââYesâââ¶ r3f-performance
âââââââââââââââââââââââ
â No
â¼
âââââââââââââââââââââââ
â Controls/helpers? âââYesâââ¶ r3f-drei
âââââââââââââââââââââââ
â No
â¼
r3f-fundamentals (default)
Reference
See individual skill files for detailed patterns:
/mnt/skills/user/r3f-fundamentals/SKILL.md/mnt/skills/user/r3f-geometry/SKILL.md/mnt/skills/user/r3f-materials/SKILL.md/mnt/skills/user/r3f-performance/SKILL.md/mnt/skills/user/r3f-drei/SKILL.md