Skip to content
Back to skills

Godot Rigged Character

ASecurity

A rigged humanoid into Godot: BoneMap from contract bone names, retarget to the humanoid profile, AnimationLibrary, prop attachments, spring bones.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythongobashnodespring

Works with

  • cli

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add tipoLi5890/game-studio --skill godot-rigged-character --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Godot Rigged Character?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Godot Rigged Character
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tipoli5890-godot-rigged-character/badge)](https://www.skillsdirectory.com/skills/tipoli5890-godot-rigged-character)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: godot-rigged-character
description: >-
  A rigged humanoid into Godot: BoneMap from contract bone names, retarget to the humanoid
  profile, AnimationLibrary, prop attachments, spring bones.
---

# godot-rigged-character — a rigged character from game-assets, in Godot

The skeleton contract maps to `SkeletonProfileHumanoid`, and a `BoneMap` in the `.import` file
retargets the model on import, headless: the skeleton comes out renamed to the profile's bones,
every clip's tracks with it, so any clip retargeted the same way plays on any contract character.
This skill is that import, the checks that prove it happened, and what hangs off the skeleton
afterwards: clip libraries, props on bones, spring chains.

## Load what the situation needs

| The situation | Read |
|---|---|
| A rigged `.glb` and its `bone-names/1` file arrived; make it a humanoid | `reference/retarget.md` §1–3, `scripts/bone_map.py` |
| The import ran but the bones kept their exported names | `reference/retarget.md` §3 (the skeleton path, the whole-second rule) |
| What the retarget changed: names, unique skeleton, motion scale, rests, track paths | `reference/retarget.md` §4 |
| Root motion reads small, or a position track's numbers look wrong | `reference/retarget.md` §4, "divided by motion_scale" |
| A file of clips should play on the character: an AnimationLibrary, one per source | `reference/retarget.md` §5 |
| Prove every import: required bones, upright, left at +X | `reference/retarget.md` §6, `resources/retarget_post_import.gd` |
| Which profile bone is which; Little not Pinky; the thumb's joints; required bones | `reference/profile-bones.md` |
| A parcel in the courier's hand; a socket bone | `reference/retarget.md` §7 |
| Hood, bag, hem or hair should swing: `secondary/2` to spring bones | `reference/secondary.md`, `resources/secondary_springs.gd` |
| Springs do nothing in a test, or collider offsets vanished | `reference/secondary.md` §3 |
| The contract itself, role maps, the engine-name columns | `blender-retarget` → `reference/humanoid-contract.md` |
| What crosses the Blender export (props, drivers, shape keys) | `blender-retarget` → `reference/engine-handoff.md` |

## The route in four commands

```bash
python3 scripts/bone_map.py tres models/courier_rig.bone-names.json --out models/courier_rig.bone_map.tres
godot --headless -l en --path . --import
python3 scripts/bone_map.py import-entry models/courier_rig.glb.import \
    --bone-map res://models/courier_rig.bone_map.tres --import-script res://rig/retarget_post_import.gd
godot --headless -l en --path . --import        # look for RETARGET_CHECK {"pass":true,...}
```

`tres` refuses a names file that is not `bone-names/1` for godot, or names a bone the profile
lacks (exit 1), and fails when any of the 17 required profile bones is unmapped (exit 2, nothing
written). `import-entry` merges `"retarget/bone_map": Resource(...)` for the skeleton node into
`_subresources`, keeping the file's other settings, reads the skeleton's node path from the glTF
(`--skeleton auto`), sets the import script, and moves the file's time on a second so the next
import sees the edit. Godot exits 0 whatever happens; the verdict is the `RETARGET_CHECK` line and
the absence of an `ERROR:` line.

## What a retarget gives you

- **Profile names on mapped bones, exported names on the rest.** LeftUpperArm, RightHand,
  LeftUpperLeg; `Socket.R` and the `cc_` chains as exported. Game code finds sockets and chains by
  their exported names and humanoid bones by profile names, on every contract character.
- **A unique skeleton**, GeneralSkeleton by default, with clip tracks addressed as
  `%GeneralSkeleton:<bone>`. A clip library imported with the same BoneMap binds to it.
- **`Skeleton3D.motion_scale`** set to the hips' height, and position tracks stored divided by it;
  `get_root_motion_position()` gives metres back.
- **Rest rotations rewritten** to the profile's axes, global rest positions kept. Bone-local
  rotations read from the source no longer apply; rotations from clips imported the same way do.
- **The front is +Z** (`Vector3.MODEL_FRONT`), so root motion runs along +Z in the model's space.

## Discipline

- **The bone-names file is derived, never edited.** It comes from the role map
  (`contract_map.py --godot-out`); a wrong mapping is fixed in the role map and the file rebuilt,
  then the BoneMap, then the import.
- **One BoneMap per skeleton, shared by every file on it**: the body and every clip file. A clip
  file imported without it keeps the source track paths and plays nothing on the character.
- **Check every import.** `retarget_post_import.gd` as the import script costs nothing and turns a
  silent non-retarget (a wrong skeleton path prints no error) into an `ERROR:` line.
- **Do not let the retarget drop tracks you need.** `--remove-unmapped-tracks` removes the tracks
  of every bone outside the map, a keyed tail or hood included.
- **Spring chains at runtime, from the file.** Build them from `secondary/2` in `_ready`
  (`secondary_springs.gd`); an import script's colliders lose their offsets when the scene is
  saved, and a hand-built simulator drifts from the asset side's file.
- **Read spring poses inside `skeleton_updated`.** Anywhere else returns the animated pose and a
  test of secondary motion passes on nothing.
- **A prop is its own scene on a `BoneAttachment3D`**, never weighted into the body: swap, drop and
  hand over are reparenting.

## Files

| File | What it is |
|---|---|
| `scripts/bone_map.py` | `tres`: bone-names/1 to a BoneMap `.tres`; `import-entry`: the BoneMap (and import script) into a `.import`; `--selftest` runs inside Blender and needs Godot |
| `resources/retarget_post_import.gd` | import script: the checks of `reference/retarget.md` §6, a `RETARGET_CHECK` line, meta `retarget_check` on the root |
| `resources/spring_chains.gd` | `build(skeleton, secondary, names, owner)`: one `SpringBoneSimulator3D` with a setting per chain and a collider per collider |
| `resources/secondary_springs.gd` | the node that calls it on ready from the two JSON files |

## Scope — what this skill does NOT do

| Not here | Go to |
|---|---|
| A model with no skeleton: import settings, collision, LODs, the budget audit | `godot-3d-models` |
| State machines, blend spaces, root motion applied to a body, clip events | `godot-animation` |
| Moving the character: the controller, grounding, the camera | `godot-3d-controller` · `godot-camera` |
| The contract, role maps, retargeting a clip library in Blender, the export | `blender-retarget` |
| Making the `cc_` chains and their colliders | `character-autorig` |
| The character, stage by stage, and which skill owns each | `game-character-pipeline` |
| Which body, clip or map file is approved | `art-asset-registry` |

Files in this skill

  • SKILL.md6.7 KB
  • reference/profile-bones.md3.4 KB
  • reference/retarget.md7.7 KB
  • reference/secondary.md5 KB
  • resources/retarget_post_import.gd3.5 KB
  • resources/secondary_springs.gd2.2 KB
  • resources/spring_chains.gd5.8 KB
  • scripts/bone_map.py37.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.