glb-diff
БесплатноБез исполняемых скриптовНе проверенCompare two glTF or GLB models structurally with the glb-diff CLI or @three-ws/glb-diff and gate CI on severity. Use when reviewing a 3D asset change…
от nirholas★ 289 звёзд на GitHubОб этом скилле
GLB diff
@three-ws/glb-diff (Node 18+, ESM) reports what actually changed between two models: geometry, materials, textures, skeletons and animations, with git-style rename and move detection.
Run without installing: npx -y @three-ws/glb-diff before.glb after.glb
CLI
glb-diff <before> <after> [options]
<before>, <after> .glb/.gltf path or http(s) URL
--json full change set as JSON
--markdown | --md Markdown report for a pull-request comment
--fail-on <level> exit 1 when severity reaches: cosmetic | minor | major | breaking
--verbose include unchanged totals
--no-color
Exit codes: 0 ran and stayed below --fail-on (default never fails on changes), 1 severity reached --fail-on, 2 the tool could not run (bad args, unreadable or unparseable input).
Severity ladder: none, cosmetic (metadata only), minor (appearance changed, still loads and animates), major (geometry or hierarchy changed), breaking (something referenced by name is gone, such as a joint, so clips stop moving).
Library
import { readFile } from 'node:fs/promises';
import { diffModels, formatText, formatMarkdown } from '@three-ws/glb-diff';
const changes = await diffModels(await readFile('v1.glb'), await readFile('v2.glb'), { nameA: 'v1', nameB: 'v2' });
console.log(formatText(changes));
if (changes.severity === 'breaking') process.exit(1);
Also exported: describeModel, diffDescriptions, readDocument, isGLB, SEVERITIES, atLeast, maxSeverity, matchEntries.
Worked example
npx -y @three-ws/glb-diff avatar.v1.glb avatar.v2.glb --fail-on breaking
npx -y @three-ws/glb-diff base.glb https://cdn.example.com/live.glb --markdown > diff.md
Guidance
- Use
--fail-on breakingin CI to catch removed joints after an optimization pass, and--markdownto post the report on a pull request. - Treat exit code 2 as a tooling failure, not a regression.
- The diff runs locally. A URL input is fetched with plain
fetch.
Установить glb-diff в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл glb-diff?
Compare two glTF or GLB models structurally with the glb-diff CLI or @three-ws/glb-diff and gate CI on severity. Use when reviewing a 3D asset change, checking that an optimization or re-export did not break joints, clips or materials, or writing a model regression check.
Как установить скилл glb-diff?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл glb-diff запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic