Co-Pilot / 辅助式
更新于 a month ago

three-agent-skills

Eemalorenzo
0.0k
emalorenzo/three-agent-skills
82
Agent 评分

💡 摘要

该技能提供了Three.js和React Three Fiber开发的优化指南和最佳实践。

🎯 适合人群

使用Three.js的Web开发人员使用React Three Fiber的React开发人员专注于WebGL/AR/VR的游戏开发人员优化3D应用程序的性能工程师教授3D图形编程的教育工作者

🤖 AI 吐槽:看起来很能打,但别让配置把人劝退。

安全分析低风险

风险:Low。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发)。以最小权限运行,并在生产环境启用前审计代码与依赖。

Three Agent Skills

AI coding agent skills for Three.js and React Three Fiber development.

Skills follow the Agent Skills specification.

Installation

npx add-skill three-agent-skills

Or from GitHub directly:

npx add-skill emalorenzo/three-agent-skills

List available skills

npx add-skill three-agent-skills --list

Install specific skill

npx add-skill three-agent-skills --skill three-best-practices npx add-skill three-agent-skills --skill r3f-best-practices

Available Skills

three-best-practices

Pure Three.js optimization guidelines. 100+ rules across 17 categories.

Use when:

  • Writing Three.js code
  • Optimizing WebGL/WebGPU performance
  • Managing memory and disposal
  • Writing shaders (GLSL or TSL)
  • Building VR/AR experiences with WebXR
  • Integrating physics engines
  • Optimizing for mobile devices

Categories:

  • Modern Setup & Imports (Import Maps, renderers)
  • Memory Management & Dispose (CRITICAL)
  • Render Loop Optimization (CRITICAL)
  • Geometry & Buffer Management
  • Material & Texture Optimization
  • Lighting & Shadows
  • Scene Graph Organization
  • Shader Best Practices (GLSL)
  • TSL - Three.js Shading Language (complete reference, post-processing, compute shaders)
  • Loading & Assets (GLTF, DRACO, Meshopt, KTX2)
  • Camera & Controls
  • Animation System (Mixer, blending, morph targets, skeletal)
  • Physics Integration (Rapier, Cannon-es)
  • WebXR / VR / AR
  • Audio (Spatial, HRTF)
  • Mobile Optimization
  • Production (Error handling, migration checklist)
  • Debug & DevTools

r3f-best-practices

React Three Fiber and Poimandres ecosystem best practices. 60+ rules across 11 categories.

Use when:

  • Writing R3F components
  • Optimizing R3F performance (re-renders)
  • Using Drei helpers
  • Managing state with Zustand
  • Implementing physics or post-processing

Ecosystem coverage:

  • @react-three/fiber
  • @react-three/drei
  • @react-three/postprocessing
  • @react-three/rapier
  • zustand
  • leva

Categories:

  • Performance & Re-renders (CRITICAL)
  • useFrame & Animation (CRITICAL)
  • Component Patterns
  • Canvas & Setup
  • Drei Helpers
  • Loading & Suspense
  • State Management
  • Events & Interaction
  • Post-processing
  • Physics (Rapier)
  • Leva (Debug GUI)

Usage Examples

Once installed, the agent uses skills automatically based on context:

Review my entire Three.js app and give me a score from 1 to 100.
Explain what's good, what needs improvement, and provide actionable fixes.
Help me set up a Three.js scene with proper memory management
Review my R3F component for performance issues
How do I load GLTF models with Drei?
Optimize my shader for mobile devices
Set up WebXR for my VR experience
Implement GPU particles with compute shaders
Integrate Rapier physics with my Three.js scene

Supported Agents

Works with any agent that supports the Agent Skills spec:

  • Claude Code
  • Cursor
  • Codex
  • OpenCode
  • VS Code Copilot
  • And more...

Documentation

License

MIT

五维分析
清晰度9/10
创新性7/10
实用性9/10
完整性8/10
可维护性8/10
优缺点分析

优点

  • 全面的优化指南
  • 支持Three.js和React Three Fiber
  • 易于安装和使用
  • 涵盖广泛的性能方面

缺点

  • 可能需要对Three.js概念的熟悉
  • 仅限于特定框架
  • 对初学者可能会感到压倒
  • 文档可能需要更多示例

相关技能

threejs-materials

A
toolCode Lib / 代码库
84/ 100

“看起来很能打,但别让配置把人劝退。”

pytorch

S
toolCode Lib / 代码库
92/ 100

“它是深度学习的瑞士军刀,但祝你好运能从47种安装方法里找到那个不会搞崩你系统的那一个。”

agno

S
toolCode Lib / 代码库
90/ 100

“它承诺成为智能体领域的Kubernetes,但得看开发者有没有耐心学习又一个编排层。”

免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。

版权归原作者所有 emalorenzo.