Command Palette

Search for a command to run...

Назад к скиллам
скилл № 51368

skin-weights

Generate, lint and verify 2D skinning weights for layered skeletal characters — alpha-covering meshes, bounded harmonic weights between declared rigid bone…

БесплатноЗапускает вложенные скрипты
jammyfuот jammyfu★ 27 звёзд на GitHub

Установить skin-weights в Claude Code и Claude Desktop

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

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

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

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

Skin weights

Use this when a 2D character (layered parts, or one whole approved image for small motion) needs weighted meshes: auto-weighting a part, diagnosing a fold, leak or rubbery joint, or proving that weights survive the actual motion. It owns the weight field and its evidence. Hierarchy, pivots, art readiness, runtime integration and final acceptance stay with spine-skeletal, which this skill feeds.

Weights are a design decision, not a solver output. The solver interpolates between rigid regions you declare; it cannot know where a joint should bend, what is hidden under a sleeve, or that a beak must stay rigid.

From a one-line request

A short request such as "a pelican riding a bicycle with a fish in its beak, with bone and skin-weight animation" is enough. Before drawing, derive and write down the missing decisions, then show them in the first reply so the user can correct them:

  • Contacts from the action. Whatever the body uses must stay on it: a rider's feet on the pedals and hands (or wing tips) on the handlebar, a held object in the hand or beak. Each becomes a two-bone IK chain or a pinned contact with fixed bone lengths.
  • Rigid parts. Head, face, beak, hands, feet and boots, hard props (rims, frames, weapons) are one bone each.
  • Soft parts. Necks, tails, held animals, cloth ends and tyres get weights. A held object is pinned where it is gripped and loose at its free ends.
  • Rhythm. Secondary motion follows the main loop: a rider's head and tail sway once per pedal stroke; bumps add lag.
  • Mode. Pick whole-figure or layered parts from the motion size (see the spine-skeletal mode table).
  • Evidence by default. Lint, fold audit and surface measures, a fixed-camera GIF and a --bones --constraints overlay. The worked case examples/pelican-bicycle is the reference for these defaults.

Ask only when a choice changes the result and the request cannot settle it, for example which engine will play it.

Workflow

  1. Freeze inputs first. Approved layered art with painted joint overlap, setup bones on the drawn pivots, and a written rig (ogs.skin-rig/1, see formats). Pick the review alpha threshold and any lint bounds now; never loosen them after seeing a result. One part = one attachment with one outline. A head, beak, fist or prop is a single-bone (rigid) part.
  2. Mesh: python3 scripts/build_mesh.py rig.json --out mesh.json. Covers every visible pixel, fills enclosed holes, writes the outline first (Spine/rig-c hull rule). Rigid backdrops with separate islands use mesh.mode: "quad". Choose spacing so a joint's transition gap spans at least three to four cells.
  3. Solve: python3 scripts/solve_weights.py rig.json mesh.json --out weights.json. Per influence bone declare handleRadius (half the limb width at that bone) and coreInset (fraction of the bone kept free at each end). Transition width at a joint ≈ the gap between neighbouring cores. Read method before tuning.
  4. Lint: python3 scripts/lint_weights.py rig.json mesh.json weights.json. FAIL on stale hashes or bindings, normalization, foreign bones, influence count, detached influence islands (leakage) and rigid zones closer than minTransition (seam). PASS here is necessary, never sufficient.
  5. Deform with the real motion: python3 scripts/pose_trace.py rig.json mesh.json weights.json motion.json --out trace.json --report pose.json, then the spine-skeletal audit and surface measure on that trace. Include the extremes of every joint (contacts, IK reach, max flexion). Unreachable IK and follow-contact gaps are failures, not things to stretch away.
  6. Look at it: python3 scripts/render_skin.py trace.json --sheet sheet.png --gif loop.gif --scale 4 [--wire] [--weights] [--rings] [--heat BONE] [--bones] [--constraints] [--view=x0,y0,x1,y1]. One fixed camera for all frames (pass --view when a scrolling backdrop would stretch the fitted camera; use the = form for negative numbers), bilinear and supersampled; folded triangles are painted red (--rings circles them), --weights tints each part by bone like Spine's weights view, and --bones --constraints [--fade 0.5] draws the skeleton with its IK chains and targets over the art. Check the inner joint crease, outline continuity and rigid parts at full and game size.
  7. Export when it holds: python3 scripts/export_rigc.py rig.json mesh.json weights.json --motion motion.json --out build/ writes rig-c specs (y-up). With --verify-rigc <rig-c package> --bun <bun> it compiles with that rig-c, poses with rig-c's own core and compares every vertex. The official Spine editor/parser round trip remains not-run unless you run it.

Whole-figure mode (small motion, no cut parts)

For small-amplitude motion the figure does n

Полный SKILL.md на GitHub

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

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

Без ограничений — скилл может использовать любой инструмент.

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

  • references/formats.md
  • references/method.md
  • scripts/build_mesh.py
  • scripts/export_rigc.py
  • scripts/idle_motion.py
  • scripts/lint_weights.py
  • scripts/measure_anatomy.py
  • scripts/motion_qa.py
  • scripts/pose_trace.py
  • scripts/render_skin.py
  • scripts/requirements.txt
  • scripts/skinlib.py
  • scripts/solve_weights.py
  • scripts/test_skin_weights.py

FAQ

Что делает скилл skin-weights?

Generate, lint and verify 2D skinning weights for layered skeletal characters — alpha-covering meshes, bounded harmonic weights between declared rigid bone cores, static leak/seam/stale-binding lint, reference FK/IK/LBS traces for the spine-skeletal audit, fixed-camera review renders and rig-c/Spine export with round-trip verification.

Как установить скилл skin-weights?

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

Скилл skin-weights запускает скрипты?

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

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

Сравнить skin-weights с