blender-rig
Skill1 starsChanged 13 days agoMITView on GitHub
Use when rigging a mesh for game_realtime or film_cinematic - declarative armature creation (rig_build_armature), bone hierarchies, IK/FK and bone constraints, analytical ENVELOPE_KDTREE or AUTO_HEAT skin weights, influence limits, and test poses.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- blender-animateSkill
- blender-cameraSkill
- blender-diagnoseSkill
- blender-exportSkill
- blender-handsSkill
- blender-materialSkill
- blender-modelSkill
- blender-qaSkill
- blender-refSkill
- blender-retopoSkill
- blender-setupSkill
- blenderSkill
- blender-topology-fixSkill
- blender-topologySkill
- blender-uv-bakeSkill
- blender-vfx-flipbookSkill
- blender-vfx-meshSkill
- blender-vfx-simSkill
- blender-vfxSkill
- blender-vfx-textureSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Call rig_build_armature with bind_meshes=[{mesh_name, bind_mode: "ENVELOPE_KDTREE"|"AUTO_HEAT"|"RIGID_BONE", max_influences: 4 (game) or 8 …
- Very specific: line 24
TEST POSES & VISUAL CHECK: test 3 poses per joint (references/weights.md section 4) and capture look(mode="angles", shading="material") + …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Rig (declarative armature, IK/constraints & deterministic skin weights)
Requires
Mesh with state.md topology = PASS (or Landmark Graph coordinates in Swarm Phase 1). Hands done (characters). docs/blender/engine.md Rig rows (skeleton type, bone naming, influences, max bones). Transforms applied.
Inputs
Rig type (humanoid / quadruped / mech-prop) -> read ONE file from variants/. target_mode (game_realtime max 4 influences vs film_cinematic max 8 influences + bendy bones).
Steps
- DECISION CHECK: if
state.mdhas not locked rigging choices (Q1: Weight binding mode — Analytical ENVELOPE_KDTREE vs AUTO_HEAT vs RIGID_BONE,Q2: IK & Constraint setup), presentQ1..Q2with(Recommended)first. - PRE-CHECK: in single-agent or Phase 2 mode, run
audit_run_isolated(audit_type="topology")(docs/blender/scripts/audit_topology.py). Joint-zone pole/tri counts must be 0. - BUILD ARMATURE & CONSTRAINTS NATIVELY (
rig_build_armature/kit_rig_build_armatureindocs/blender/scripts/blender_kit_ops.py):- Pass
armature_name="ARM_<Asset>",bones=[{name, head, tail, roll_deg, parent, use_connect, use_deform, bbone_segments}]placed at exactLandmark Graph/ measured joint centers with symmetric.L/.Rnames and single root bone. - Pass
constraints=[{bone, type: "IK"|"COPY_ROTATION"|"DAMPED_TRACK"|"LIMIT_ROTATION"|"STRETCH_TO", target_obj, subtarget, chain_count, pole_target, pole_subtarget, pole_angle_deg, influence}]. - In Swarm Phase 1, pass
bind_meshes=[]soARM_<Asset>is authored without touchingSM_*meshes.
- Pass
- SKIN & BIND WEIGHTS (Phase 2 Assembly or Single-Call):
- Call
rig_build_armaturewithbind_meshes=[{mesh_name, bind_mode: "ENVELOPE_KDTREE"|"AUTO_HEAT"|"RIGID_BONE", max_influences: 4 (game) or 8 (film)}]. ENVELOPE_KDTREEcomputes analytical bone-segment distances, normalizes weights to1.0, and caps influences automatically even on multi-part non-manifold meshes whereAUTO_HEATfails.
- Call
- HANDS: apply the weight ramps from
docs/blender/reference/hand-topology.mdsection 8. - TEST POSES & VISUAL CHECK: test 3 poses per joint (
references/weights.mdsection 4) and capturelook(mode="angles", shading="material")+shading="xray". - AUDIT: run
audit_run_isolated(audit_type="rig", armature_name="ARM_<Asset>", target_mode=target_mode)(docs/blender/scripts/audit_rig.py) anddocs/blender/scripts/audit_naming.py.
Hard rules
| Rule | Detail |
| One root bone | and a single armature object ARM_<Asset> |
| Native context-free build | Use rig_build_armature (kit_rig_build_armature) so EditBone creation and weight binding are guarded by atomic_context_guard |
| Naming | engine.md rules first; else variant file names with .L / .R |
| Rest pose | the pose the mesh was modeled in; never skin in a different pose |
| Influences | <= 4 for game_realtime (or engine.md limit); <= 8 for film_cinematic |
| Weights | normalized (sum == 1.0), unweighted_verts == 0 |
| Scale | armature scale 1, rotation applied |
Done when
audit_rig.py / audit_run_isolated(audit_type="rig") pass; test pose look screenshots show no tears or collapse; weights normalized; state.md updated.
On fail
| Failure | Action |
AUTO_HEAT solver fails on disconnected parts | switch bind_mode to "ENVELOPE_KDTREE" or "RIGID_BONE" in rig_build_armature |
| Collapse or pinch at a joint | blender-diagnose row D -> blender-topology-fix (joint loops) |
| Too many influences | re-run rig_build_armature with max_influences=4 |
| Candy-wrapper forearm | twist bones (variants/humanoid.md section 3) |
Next
blender-animate (clips) or blender-qa -> blender-export.
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.

