majidmanzarpour/threejs-game-skills

threejs-debug-profiler

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.

All-time #6519 Trending #2779 Hot #5974 First seen Jun 14, 2026
8-week activity · all time api

Installation

$ npx skills add majidmanzarpour/threejs-game-skills --skill threejs-debug-profiler

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from majidmanzarpour/threejs-game-skills.

npx skills add majidmanzarpour/threejs-game-skills

Browse all from majidmanzarpour/threejs-game-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1.9K
License LICENSE
Default branch main
Open issues 2
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,415 B
  • docs SUMMARY.md 2,383 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1,900 installs

SKILL.md

Three.js Debug Profiler

Find root causes and optimize measured bottlenecks without breaking playability.

Follow 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.

Reference

references/debug-playbook.md — ordered triage for blank canvas, asset and audio loading, loop/animation/physics, input and mobile, the profiling sequence, and the __THREEGAMEDIAGNOSTICS__ shape. Read it when debugging or profiling anything non-obvious.

Debug

  1. Reproduce locally with the same command and URL the user had.
  2. Read console, page, and network errors.
  3. Check canvas display size against drawing-buffer size.
  4. Check renderer, context, and loop ownership — more than one active loop is a common cause.
  5. Check camera aspect, near/far, lights, materials, fog, scene contents, transforms.
  6. Check asset paths, loaders, CORS, and base path.
  7. Check animation delta units, physics update order and fixed timestep, collider and body ownership, input listeners, pointer and touch behavior, resize, and audio context unlock when audio is involved.
  8. Fix the root cause in the module that owns it, then retest the exact broken path.

Profile

  1. Reproduce in the correct build mode — production preview when user-facing performance matters.
  2. Baseline the scenario: FPS and frame time, draw calls, triangles, geometries, textures, memory, bundle.
  3. Classify the bottleneck as CPU, GPU draw, GPU fragment, GPU vertex, memory, or network.
  4. Change one thing — instancing, shared resources, culling, LOD, DPR cap, cheaper shadows or post, texture discipline.
  5. Re-measure the same scenario and confirm visuals and playability held.

Report

Lead with the root cause or the measured bottleneck. Then files changed, baseline and post metrics, commands, screenshots, the broken path retested, and residual risks.