Tooluck logoTooluck
SKILL.md

threejs-debug-profiler

Agent skill frommajidmanzarpour/threejs-game-skills

Debug and profile Three.js browser games: blank canvases, render and runtime bugs, asset and audio loading, animation, resize, mobile input, plus performance profiling of draw calls, triangles, textures, memory, shader and post-processing cost, and bundle size.

How to install threejs-debug-profiler

install threejs-debug-profiler
# install the threejs-game-skills pack with the skills CLI
npx skills add majidmanzarpour/threejs-game-skills

# or add only this skill to Claude Code: copy the folder

skills/threejs-debug-profiler/

# into

~/.claude/skills/threejs-debug-profiler/ (all projects)

.claude/skills/threejs-debug-profiler/ (one project)

skills/threejs-debug-profiler/SKILL.md

MITFull file
1# Three.js Debug Profiler
2
3Find root causes and optimize measured bottlenecks without breaking playability.
4
5Follow the changed behavior's scope. Reuse the lead's existing reproduction and evidence; verify the affected path after a fix. A passing focused check only needs broader testing when shared behavior changed or an unresolved risk warrants it. Return measurements and defects to the lead for the consolidated verification pass.
6
7## Reference
8
9`references/debug-playbook.md` — ordered triage for blank canvas, asset and audio loading, loop/animation/physics, input and mobile, the profiling sequence, and the `__THREE_GAME_DIAGNOSTICS__` shape. Read it when debugging or profiling anything non-obvious.
10
11## Debug
12
13Reproduce first, with the same command and URL the user had, and read the console, page, and network errors. Find the module that owns the failure (renderer, loop, camera, scene, assets, audio, input, physics, UI, or base path), fix the root cause there, and retest the exact broken path. The playbook's triage order covers the common causes, such as more than one active loop, a canvas whose display size doesn't match its drawing buffer, and wrong delta units.
14
15## Profile
16…

Excerpt shown under the repository's MIT license.

More skills in threejs-game-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates