mcpField
T
threejs-debugging

threejs-debugging

github.com/cesartevisualDevelopment11366 installsUpdated 7w ago
Repository

About threejs-debugging

threejs-debugging is a debugging skill for diagnosing rendering problems in Three.js projects. It guides developers to gather evidence, isolate likely causes, make focused fixes, and verify the original issue.

Key features

  1. 01Collect symptoms and reproduction details
  2. 02Diagnose blank canvases and asset failures
  3. 03Investigate flicker, color, and picking
  4. 04Reduce scenes while preserving evidence
  5. 05Verify fixes and adjacent states

Use cases

  1. 01Trace a blank or incorrectly framed canvas
  2. 02Diagnose failed GLB loading or color issues
  3. 03Investigate flicker or inaccurate object picking

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/cesartevisual/threejs-skills --skill threejs-debugging

After installing, type/threejs-debuggingin Claude Code to confirm it loaded.

Bundled filesreferences/diagnostics.md

Details

From the project README

Rendering Diagnostics

Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.

Capture the visible symptom, console errors, failed requests, installed versions, backend, and a minimal reproduction before editing. Use the symptom tree to narrow likely causes.

For a blank canvas, first verify nonzero container/drawing dimensions, a live render loop, successful renderer creation, camera projection/framing, object visibility/layers, and valid finite transforms. Replace only the subject material with an unlit diagnostic material to distinguish lighting from geometry problems.

For asset failures inspect HTTP status, response content, CORS, decoder paths, and build base path. An HTML fallback response with status 200 is not a valid GLB. For color, trace texture classification through lighting, tone mapping, and output conversion.

For flicker inspect coplanar geometry, near/far precision, transparency sorting, duplicate render loops, and competing transform writers. For picking verify canvas/view-relative coordinates, matrices, layers, instancing, and shader deformation mismatch.

Reduce the failing scene one feature at a time while preserving evidence. Avoid unrelated dependency upgrades or disabling all error checks to make symptoms disappear. When context/device loss occurs, provide a clear recovery path rather than an unbounded renderer recreation loop.

Verify the original failing action after the fix and check adjacent states that share the same code. Explain the cause and evidence, not just the changed line.

API reference

Consult the official documentation for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.

Comments

Markdown supported