/xenodot:godot-animation-librariesfrom xenodot
Imports and plays skeletal animations on a 3D character in Godot 4.6. Handles separate glTF model/anim files, merges clips into AnimationLibrary, and retargets foreign animations (e.g. Mixamo) via SkeletonProfileHumanoid.
Ships in xenodot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Animated character = sourced rigged .glb (skeleton + skinned mesh) + anim clips in separate anim-only glTF files, merged into one AnimationLibrary loaded onto an AnimationPlayer on a node you own. Model and anims stay apart: re-sourcing either is a one-file swap. Foreign skeleton clips (Mixamo, Quaternius) retarget via SkeletonProfileHumanoid. Verification target: animated character playing looping idle from a separate anim file.
godot-mesh-import — import/scale/nest the model exactly as that base skill says (+ the game's style delta for the surface); this skill adds the animation layer only.godot-3d-pixelation — judge in F5 at SubViewport scale (foot-sliding, wrong-bone retargets obvious low-res).godot-composition — CharacterBody3D base + model + AnimationPlayer as children; gameplay calls down (anim_player.play()), animation signals up (animation_finished).godot-code-rules — any .gd driving playback must be strict-typed; gate with tools/validate.sh.godot-verify — mandatory 3-layer check after wiring.assets/models/<char>.glb (skeleton + skinned mesh, no clips), assets/models/<char>_idle.glb, <char>_walk.glb … (anim-only, skeleton + animation, no skin needed). assets/ gitignored.AnimationLibrary → resources/animations/<char>.tres.CharacterBody3D — not made-local, not inherited scene. AnimationPlayer is a child of that node, animating the nested model's Skeleton3D.SkeletonProfileHumanoid for humanoid clips. Non-humanoid (quadrupeds, machines) skip retargeting — requires matching bone names at source.AnimationTree yet — scope is AnimationPlayer + AnimationLibrary + retargeting only.1. Import and nest the model
Delegate to godot-mesh-import. Confirm imported scene contains Skeleton3D + skinned MeshInstance3D. If model .glb ships an AnimationPlayer with wanted clips, use those directly (skip step 3).
2. Split clips from one glTF (only if anims NOT in separate files)
If a single .glb carries one long timeline with multiple motions:
.glb → Advanced Import Settings.Prefer separate anim-only files — they re-source cleanly. Use split only when the source bundles everything.
3. Build AnimationLibrary from separate anim-only glTFs
@tool
extends EditorScript
## tools/build_<char>_anim_library.gd — merge anim-only glTFs into one AnimationLibrary.
## Run from editor: File > Run. Author-time only.
const ANIM_GLBS: Dictionary = {
"idle": "res://assets/models/<char>_idle.glb",
"walk": "res://assets/models/<char>_walk.glb",
}
const OUT_PATH: String = "res://resources/animations/<char>.tres"
func _run() -> void:
var library := AnimationLibrary.new()
for clip_name: String in ANIM_GLBS:
var packed: PackedScene = load(ANIM_GLBS[clip_name])
var scene: Node = packed.instantiate()
var player: AnimationPlayer = scene.find_child("AnimationPlayer", true, false)
if player == null:
push_error("No AnimationPlayer in %s" % ANIM_GLBS[clip_name])
scene.free()
continue
var source_lib: AnimationLibrary = player.get_animation_library("")
var first: StringName = source_lib.get_animation_list()[0]
var clip: Animation = source_lib.get_animation(first).duplicate(true)
library.add_animation(StringName(clip_name), clip)
scene.free()
var err := ResourceSaver.save(library, OUT_PATH)
if err != OK:
push_error("Save failed: %d" % err)
else:
print("VERIFY: wrote %s with %s" % [OUT_PATH, library.get_animation_list()])
Produces resources/animations/<char>.tres with clips named idle, walk, … (not raw glTF clip names).
4. Load library onto your own AnimationPlayer
extends CharacterBody3D
## entities/<char>/<char>.gd
@export var anim_library: AnimationLibrary # assign resources/animations/<char>.tres in Inspector
@onready var _anim: AnimationPlayer = $AnimationPlayer
@onready var _model: Node3D = $Model # nested .glb instance
func _ready() -> void:
if anim_library != null:
_anim.add_animation_library("", anim_library)
_anim.root_node = _anim.get_path_to(_model) # tracks must reach Skeleton3D
_anim.play("idle")
func _physics_process(_delta: float) -> void:
var moving := velocity.length() > 0.1
var wanted := "walk" if moving else "idle"
if _anim.current_animation != wanted: # guard prevents per-frame reset of one-shots
_anim.play(wanted)
play() on an already-playing clip is a no-op — the current_animation guard is still needed for one-shots. Calls go down (gameplay → play); connect animation_finished for follow-up on one-shots (signal up).
5. Retarget a foreign animation (Mixamo / mismatched rig)
.glb in FileSystem → Import dock → Advanced Import Settings.SkeletonProfileHumanoid.mixamorig: bones map cleanly.SkeletonProfileHumanoid. Both sides must speak the same profile.After retargeting, the anim-only .glb feeds step 3's library builder like any native clip.
6. Verify
tools/validate.sh
$GODOT --headless --path . --script tools/verify_scene.gd -- entities/<char>/<char>.tscn main.tscn
F5 with character in a level: mesh deforms (not T-pose), idle loops with no snap, walk switches cleanly, feet don't sink/float, motion crisp/blocky at SubViewport scale.
.glb imported and nested under owned CharacterBody3D (per godot-mesh-import), with visible Skeleton3D + skinned MeshInstance3DAnimationLibrary at resources/animations/<char>.tres with clean clip namesAnimationPlayer is child of your node, loads library, root_node points at nested modelcurrent_animation guard presentSkeletonProfileHumanoid; bones mapped; re-imported@tool script, not hand-assembledtools/validate.sh passes; verify_scene.gd prints VERIFY: OK| Symptom | Fix |
|---|---|
| Rigid T-pose / no deformation | Step 4 — set root_node to nested model; confirm clip playing |
| Clip plays but no bone moves | root_node wrong — must point at model owning Skeleton3D, not at CharacterBody3D |
| Foreign clip (Mixamo) does nothing | Skeleton mismatch — Step 5: retarget clip AND character against same SkeletonProfileHumanoid |
| Idle snaps/pops at loop point | Clip loop mode is None — set to Linear in Advanced Import, re-import, rebuild library |
| Clip resets to frame 0 every physics frame | play() called every frame — Step 4: guard with if _anim.current_animation != wanted |
| Library has raw glTF clip names ("Armature|Idle") | Step 3 — add_animation("idle", clip) renames on merge; rebuild with @tool script |
| Re-import loses animation wiring | Model was made-local — must be nested instance; AnimationPlayer/library on your node |
| Mesh deforms but giant/tiny/sunk | Scale/seat is the model-import step — godot-mesh-import Step 3 |
| Feet slide while walking | Root-motion vs in-place mismatch — drive velocity from clip root motion, or use in-place clip + move body in code; not both |
Adapted from GodotPrompter (https://github.com/jame581/GodotPrompter), MIT License, Copyright (c) GodotPrompter Contributors.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
godot, animation, skeletal-animation, retargeting, gltf, mixamo
npx claudepluginhub arthur0n/xenodot-forge --plugin xenodot50 skills in this plugin
/agent-reportThe agent→orchestrator handoff protocol. A backgrounded worker's relayed result string truncates on long, tool-heavy turns, so the handoff is an artifact, not a string — the worker Writes its full report to a file, and the orchestrator reads that file directly. Load this whenever a task asks you to hand off a structured report to another agent. Any agent doing background work that must be handed off uses it — not only builders. Defines the report contract the writer follows./autonomous-main-goalThe hive's Autonomous Mode self-drive loop. When a standing Main Goal is active, evaluate it, break it into ordered slices, then on each `[Autonomous check/cavemanUltra-compressed communication mode — always active for this agent. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Drop only when interviewing the user via mcp__ui__form (labels/descriptions must be clear prose).
/godot-3d-pixelationSubViewport-based low-resolution crisp rendering of a 3D scene in Godot 4.x — the foundation of the "3D pixel art" style. Use for pixelated/retro/PSX/low-res 3D, setting SubViewport render resolution, "crisp pixels", restructuring a scene tree so 3D renders below window resolution, or when a downscaled viewport looks blurry./godot-arena-spatial-designOPT-IN spatial-design principles for a combat/arena encounter space in Godot — nine measurable properties (loop topology, interior cover, partitioned sightlines, cover mix, bounded verticality, landmarks, spawn-to-engagement pacing, scale/density, choke-vs-open) that turn a flat blockout into a real firefight space. Use ONLY when the level being built is a combat/arena encounter (enemy waves, gunfights) — apply ALONGSIDE whichever build method is chosen (`godot-greybox` static default, `godot-runtime-arena` runtime, or `godot-gridmap-level` tile-fill). NOT the build mechanism itself, NOT a general level-design bar for non-combat spaces (that's `level-design-principles`)./godot-art-styleSingle source of truth for a 3D-pixel-art game's palette + visual style language in Godot — a shared `tools/art_style.gd` const module of NAMED swatches and style scalars that the procedural generators (`gen_textures.gd`, `gen_models.gd`) `preload()` and read, so textures and models cohere by construction instead of drifting from hand-copied `Color()` literals. The GAME owns its swatches + scalars (its look); this skill is the pattern and the conventional location, never the palette. Use when placeholder art looks incoherent across textures/models, when the same colour is typed into more than one generator, before adding a new procedural texture/model spec, or when an art-director needs one place to set the look. NOT an asset-sourcing or import skill (that is asset-advisor / godot-mesh-import-pixel-art / godot-texture-import-pixel-art).Other plugins' skills for the same job