threesmith
/threesmith
Pisze, zmienia i debuguje kod three.js oraz react-three-fiber: sprawdza API zainstalowanej wersji, wycieki i wydajność oraz modele.
- Autor
- laaielichter ↗
- Repozytorium
- Threesmith ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 11.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Pisze, zmienia i debuguje kod three.js oraz react-three-fiber: sprawdza API zainstalowanej wersji, wycieki i wydajność oraz modele.
Oryginalny opis (EN)
Use when writing, changing, debugging or shipping three.js or react-three-fiber code. Looks up the exact API of the installed three version, reviews code against it, checks the assets and decoders the code loads, opens the page in headless Chromium and reads the live scene, proves behaviour with steps and claims, measures draw calls and leaks, and builds 3D models without Blender. Prevents the classic mistakes: removed APIs, wrong import paths, black scenes, 404 models, shaders that no longer compile, per-frame allocations.
Jak działa
- Workflow
- Rules of thumb
Podgląd SKILL.md
--- name: threesmith description: Use when writing, changing, debugging or shipping three.js or react-three-fiber code. Looks up the exact API of the installed three version, reviews code against it, checks the assets and decoders the code loads, opens the page in headless Chromium and reads the live scene, proves behaviour with steps and claims, measures draw calls and leaks, and builds 3D models without Blender. Prevents the classic mistakes: removed APIs, wrong import paths, black scenes, 404 models, shaders that no longer compile, per-frame allocations. --- # Threesmith for three.js three.js changes every month and your memory holds old versions of it. Check every API against the installed release, and look at the page before you say it works. ## Workflow 1. **New project or broken scene:** `three_doctor` first (what is wrong, in which order), `three_scan` for the map (stack, pages, files that use three, renderer settings, assets). 2. **Before writing code that uses an API you are not sure of:** `three_api` (it reads `node_modules/three`), or `three_search` to find a name. "Not exported" means it does not exist in this release: do not invent it. 3. **Before saving new code:** `three_review` with `code` + `file`. **After every edit:** `three_review` with `only_new: true`, and in TypeScript `three_types`. Fix errors first; `three_fix` does the pure renames (dry run, then `write: true`; `three_undo` if needed). A verified false alarm goes to `three_feedback`. 4. **Loading models or textures:** `three_assets`: every path must resolve with exact capitals, and Draco, meshopt or KTX2 files need their decoder set up on the GLTFLoader. `three_model_inspect` says what a `.glb` needs. 5. **Before saying it works:** `three_check` on the page (a folder with `index.html` or the dev server URL) and look at the screenshot. Black, empty or wrong: `three_inspect` says why per object. 6. **Proving behaviour:** `three_play` with `steps`, `watch` and `expect`; keep a passing run with `three_scenario` op save. For a state that is slow to reach, `three_session` once and `three_page` to drive it. 7. **Errors you do not understand:** `three_explain` with the message as printed, `three_lessons` with it as `error`. When a fix took more than one try, `three_lesson_add`. 8. **Speed and memory:** `three_perf` before and after a change; `three_leaks` with the steps of one cycle. 9. **Before deploying:** `three_build`. 10. **3D models:** `three_model_brief`, `three_model_build`, `three_model_view` (text views), `three_model_lint`. ## Rules of thumb - Import addons from `three/addons/...` (with `.js`). `OrbitControls`, `GLTFLoader` and friends are not in `three`. - `WebGPURenderer` and node materials come from `three/webgpu`, TSL from `three/tsl`; `ShaderMaterial` and `onBeforeCompile` do not work under WebGPU. - Colour textures need `texture.colorSpace = THREE.SRGBColorSpace`; with EffectComposer, end with an `OutputPass`. - Shadows need `renderer.shadowMap.enabled = true`, a light with `castShadow`, casters and receivers. - Add `gltf.scene`, not `gltf`. Await the loader before using the model. - Never `new` a Vector3, geometry or material inside the loop; `dispose()` what you remove. - After changing `camera.aspect`, call `camera.updateProjectionMatrix()`.
Wersje
W bazie nie ma innych skilli o nazwie threesmith.
Migawka bazy z 13.11.2026 · wersja paczki 016b021b4350 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100react-three-fiber
Renderuje sceny 3D z JSON przez React Three Fiber i @json-render/react-three-fiber: siatki, światła, modele, środowiska i integracja Three.js z katalogami json-render. - 100threejs-react-three-fiber
Buduje sceny Three.js w React z React Three Fiber i drei: JSX, pętlę klatek, zdarzenia i ładowanie zasobów. - 100react-three-fiber-patterns
Pomaga budować interaktywne doświadczenia 3D w React z react-three-fiber, helperami drei i shaderami: kompozycja sceny, wydajność i animacje. - 1003d-web-experience
Pomaga budować i debugować sceny 3D w sieci, na przykład w Three.js albo React Three Fiber: zasoby, ładowanie, sterowanie i wydajność. - 90local-react-three-fiber-game-abb82834
Buduje gry 3D w przeglądarce w React Three Fiber, z kompozycją sceny, wspólnym stanem Reacta i HUD 3D. - 100react-three-fiber
Buduje sceny 3D w React z React Three Fiber: konfiguratory produktów, ładowanie modeli GLTF, animacje useFrame, obsługa kliknięć i najechań oraz przyspieszanie wolnych scen.