threejs-debugging
Skill8 starsChanged 4 months agoISCView on GitHub
Diagnose unexpected Three.js WebGPU/TSL runtime, rendering, API, asset, or version behavior. Use for a concrete failure, a suspected upstream regression or known issue, or a choice among an application fix, released upgrade, bounded workaround, upstream report, and blocker.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- cesartevisual/threejs-skillstheir own version, first seen Sep 10, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- cesartevisual/threejs-skills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- product-from-scratchSkill
- threejs-ambient-contact-shadingSkill
- threejs-black-holes-and-space-effectsSkill
- threejs-bloomSkill
- threejs-camera-controls-and-rigsSkill
- threejs-choose-skillsSkill
- threejs-compatibility-fallbacksSkill
- threejs-dynamic-surface-effectsSkill
- threejs-exposure-color-gradingSkill
- threejs-image-pipelineSkill
- threejs-object-sculptorSkill
- threejs-particles-trails-and-effectsSkill
- threejs-procedural-buildings-and-citiesSkill
- threejs-procedural-creaturesSkill
- threejs-procedural-fieldsSkill
- threejs-procedural-geometrySkill
- threejs-procedural-materialsSkill
- threejs-procedural-motion-systemsSkill
- threejs-procedural-planetsSkill
- threejs-procedural-vegetationSkill
- threejs-rain-snow-and-wet-surfacesSkill
- threejs-scalable-real-time-shadowsSkill
- threejs-sky-atmosphere-and-hazeSkill
- threejs-spectral-oceanSkill
- threejs-visual-validationSkill
- threejs-volumetric-cloudsSkill
- threejs-water-opticsSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Keep one case record with the symptom, expected behavior, exact environment, minimal reproduction, first failed contract, local evidence, …
- Distinctive: line 49
Remove unrelated systems while preserving the suspect API, material, geometry path, backend, projection, precision, ownership, and …
- Very specific: line 105
When the diagnosis depends on version behavior, change one Three.js version at a time while holding the reproduction, backend, browser/GPU, …
- Distinctive: line 139
Stop when one conclusion has direct local evidence and, when upstream is involved, direct primary-source/release proof.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Three.js Debugging
Reproduce first. Treat installed source and official history as evidence, not as
background trivia. A domain skill defines the intended mechanism;
$threejs-visual-validation supplies formal image, timing, resource, or
regression proof when the diagnosis needs it.
Keep one case record with the symptom, expected behavior, exact environment, minimal reproduction, first failed contract, local evidence, upstream candidates, constant version matrix, conclusion, action, and limits. Record unknown values as unknown.
1. Reproduce the exact environment
Record every environment fact that can affect the failure: resolved package
version, runtime THREE.REVISION, lockfile resolution, import entrypoints,
browser/OS, seed, asset revisions, and exact command or interaction. For a
rendering or backend claim, also record renderer class, initialized backend,
GPU, and relevant capabilities. Build the smallest deterministic reproduction
that still fails.
A conclusion about the canonical WebGPU path requires an initialized
WebGPURenderer with renderer.backend.isWebGPUBackend === true. Otherwise
record that claim's blocker; reach $threejs-compatibility-fallbacks only when
the user explicitly requests that branch. Do not impose a renderer or backend
gate on a non-rendering API, export, asset, or version conclusion.
This step is complete when the relevant environment truth is recorded, the reproduction fails repeatedly under that environment, and another run can distinguish reproduced from not reproduced.
2. Name the violated contract and first failure
Separate API semantics, numerical invariants, render-state invariants, resource transitions, and visual expectations. Identify the earliest failing assertion, frame, pass, draw, dispatch, resource transition, or diagnostic—not merely the final symptom.
This step is complete when one observable boundary divides the last known-good state from the first bad state.
3. Minimize without replacing the mechanism
Remove unrelated systems while preserving the suspect API, material, geometry path, backend, projection, precision, ownership, and lifecycle behavior. At a cross-system boundary preserve the same units, frames/origin, owner, interval/cadence/sample phase, state identity, validity/staleness/error, reset, and completion semantics.
A different renderer, material, or representation may localize the fault; it cannot prove the original path correct.
This step is complete when every remaining component participates in the first failure and the suspected mechanism is still the one under test.
4. Resolve local evidence
Inspect the installed export map, source, types, tests, examples, and migration material for the resolved revision. Test local hypotheses first: application misuse, stale or duplicate imports, migration changes, missing renderer initialization, unsupported backend/capability, invalid data, duplicate output conversion, lifecycle/synchronization error, and third-party integration.
This step is complete when each plausible local hypothesis has an executable result or an explicit missing-evidence record.
5. Research upstream conditionally
Research upstream only when local evidence does not settle the cause, installed source and current documentation disagree, a version-dependent regression or upgrade is plausible, or the user asks about known issues. Read upstream research before searching and follow its primary-source order.
Classify every candidate independently:
| Classification | Required proof |
usage-or-integration-error | installed contract explains the failure and the local correction passes |
intentional-api-change | official migration or source history proves a deliberate change |
upstream-active | current checked code reproduces and an upstream record matches |
fixed-unreleased | the matching fix is merged and checked publication/package contents show it is not yet shipped, as of the recorded check time |
fixed-released | a published package contains the fix and the same reproduction passes |
not-reproduced | the candidate configuration does not reproduce the local failure |
unrelated | API, backend, symptom, affected range, or reproduction differs materially |
insufficient-evidence | reproduction, containment, fix, or release proof is missing |
Closed is not a classification, and merged is not evidence that an npm release
contains the fix. An unavailable registry, uninspected package, or unknown
publication state is insufficient-evidence, not fixed-unreleased. Record
the check time and versions inspected for a publication claim. A passing
candidate configuration does not prove the original failure resolved unless
the reproduction and relevant environment remain comparable.
This step is complete when every inspected candidate has exactly one supported classification.
6. Hold a constant version matrix when version-dependent
When the diagnosis depends on version behavior, change one Three.js version at a time while holding the reproduction, backend, browser/GPU, imports, assets, and assertion constant. As evidence permits, record the installed version, last known good, first bad, fixing commit, first published fixed release, and current checked release.
This step is complete when every conclusion about affected range or release availability follows from comparable rows rather than version labels.
7. Contain, verify, then choose one action
First identify the narrowest containment that protects the violated invariant. Then verify the proposed correction on the original reproduction. Recommend an upgrade only after proving the fixing commit, the first published package that contains it, and a passing reproduction on that package.
Choose one action:
- application fix for misuse or invalid state;
- released upgrade for a verified published fix;
- bounded workaround or pin with scope and removal condition;
- upstream report when current checked code reproduces without a matching case;
- blocker when required evidence is unavailable.
This step is complete when the chosen action has a passing or falsifiable verification, names its version/backend scope and side effects, and does not claim more than the evidence supports.
Report and stop
Return the root cause, installed result, relevant upstream issue/PR and fixing commit, affected range, first published fixed release, classification, fixed version result, regression assertion, one decision, and limitations.
Stop when one conclusion has direct local evidence and, when upstream is involved, direct primary-source/release proof. Also stop when all plausible candidates are classified and the exact missing evidence is explicit. Do not collect unrelated issue IDs after the action is settled.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

