Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

meshoptimizer

БесплатноЗапускает вложенные скриптыНе проверен

Operate zeux/meshoptimizer for source-pinned native or JavaScript/WASM integration, meshopt simplification, meshlets and codecs, or preservation-aware…

akillnessот akillness★ 63 звезды на GitHub

Об этом скилле

meshoptimizer

When to use this skill

  • Inspect or integrate the named meshoptimizer C/C++ library, its meshopt APIs or JavaScript modules.
  • Choose a meshopt optimization, simplification, codec or meshlet workflow against a known asset and renderer contract.
  • Convert an asset with gltfpack while preserving approved scene semantics and loader compatibility.
  • Diagnose a MeshoptDecoder or EXT/KHR_meshopt_compression integration using the actual encoded format and loader version.
  • For Blender modeling, Draco-only work, generic engine rendering or Three.js gameplay without meshoptimizer, route to the owning tool instead. Rust meshopt and other external bindings require their own version/license inspection.

Instructions

1. Select one bounded mode and freeze the evidence

Choose exactly one primary mode: inspect-source, native-integration, js-decoder, optimize-or-simplify, meshlets-or-codecs, or gltfpack-conversion. Record input artifact, upstream revision, existing toolchain/loader versions, permitted output directory and acceptance checks before proceeding. Do not silently upgrade a project or switch a release to master.

Read this installed skill's relative references/source.json for selected-file hashes and references/upstream.md for pinned sources, license scope, commands and release differences. Resolve these paths and scripts/preflight.py relative to the directory containing this SKILL.md, never relative to an assumed repository root.

Helper host prerequisite: Before running the helper, use a POSIX Python environment with os.O_NOFOLLOW and os.open support for dir_fd. Native Windows may fail closed with secure_posix_traversal_unavailable; preserve these safety guards. Windows users can retry in a WSL environment that supports these features or manually compare the original manifest-listed source files against the pinned evidence. Neither this guidance nor a manual comparison verifies helper execution or runtime behavior; report those as unverified.

When execution of the offline helper is authorized, from the installed skill directory use:

python3 -B scripts/preflight.py --json
python3 -B scripts/preflight.py --json --repo /absolute/nonsymlink/upstream-checkout

The helper performs no network access and never executes upstream code. Without --repo, no source was checked. With it, only listed file bytes are compared: whole_revision_verified=false, runtime_verified=false and tool_versions_verified=false remain true limitations. Missing discovered tools do not prove installation failure; exit 0 does not prove Git HEAD, a compiler or renderer works. Stop on mismatched evidence before using the pin as verified.

2. Inspect source and preserve the license boundary

The audited master pin is f0a684f11ead064e176775c9b796f82a55910e92; release v1.3 is a different commit. Read the actual source signatures for the chosen pin, not a current search snippet. Native code is C++11, with a C-compatible header; it runs mesh processing on the CPU, not GPU rendering. CMake requires 3.5+; the JS source package declares 1.3.0 but registry delivery was not verified.

Read the full pinned MIT license and retain its copyright/permission/warranty notice when distributing substantial portions. For gltfpack or bundled sources, include applicable cgltf/jsmn, fast_obj, micro_ply and sdefl notices. Optional Basis Universal and libwebp add Apache-2.0 and BSD conditions. Sample assets and dependency closure are not automatically cleared by root MIT. See the relative upstream reference before redistribution.

3. Follow only the selected mode

native-integration

  1. Inspect the project's build and existing library revision. Choose CMake or explicit source-file integration; include meshoptimizer.h and compile only necessary C++ algorithm files where appropriate.
  2. Preview build paths and flags. Approve dependency acquisition, configuration/build and project writes separately; run only the approved step. CMake defaults to a static library. Shared builds use MESHOPT_BUILD_SHARED_LIBS; MESHOPT_STABLE_EXPORTS excludes unstable exports.
  3. For a representative fixture, record compiler/configuration, API call and output geometry checks. Compile/link success is distinct from rendered correctness and performance.

js-decoder

  1. Confirm the asset extension, loader and installed meshoptimizer version. Inspect js/README.md and declarations for that exact revision.
  2. Check MeshoptDecoder.supported; await MeshoptDecoder.ready before direct decoding. For Three.js glTF, supply it with GLTFLoader.setMeshoptDecoder before load. Do not confuse loader setup with direct codec initialization.
  3. Validate count/stride and target capacity: target bytes are count multiplied by stride; vertex stride is divisible by four, index stride is two or four. Match any filter to the encoded stream.
  4. Test one known encoded fixture and a malformed fixture with boun
Полный SKILL.md на GitHub

Установить meshoptimizer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Bash
Write
Edit

Вложенные файлы

evals/evals.jsonreferences/source.jsonreferences/upstream.mdscripts/preflight.py

FAQ

Что делает скилл meshoptimizer?

Operate zeux/meshoptimizer for source-pinned native or JavaScript/WASM integration, meshopt simplification, meshlets and codecs, or preservation-aware gltfpack conversion. Use when the request names meshoptimizer, meshopt APIs, gltfpack, MeshoptDecoder or EXT/KHR_meshopt_compression. Route generic mesh modeling, unrelated compressors and Three.js gameplay to their own tools; this is not a renderer or general game-development guide.

Как установить скилл meshoptimizer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл meshoptimizer запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить meshoptimizer с