Skip to main content
skill CX Codex

godot-2d-animation — Claude Code skill: what it does, how to install

Provides production-tested GDScript patterns for Godot 2D animation, covering AnimatedSprite2D sync, procedural squash and stretch, and skeletal rigs.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-2d-animation -a claude-code
Open on GitHub

What godot-2d-animation does

The skill provides reference GDScript implementations for Godot 2D systems, targeting AnimatedSprite2D and AnimationPlayer nodes. It enforces strict rules against deprecated nodes like AnimatedTexture and prohibits controlling a sprite simultaneously from code and AnimationPlayer tracks. The one_frame_sync_fix.gd helper handles the one-frame visual glitch: calling advance(0) right after play() forces the engine to apply sprite transforms alongside properties like flip_h. This prevents delayed visual states.

For dynamic game feel, procedural_squash_stretch.gd handles velocity deformation and impact landing. Auxiliary scripts like skeleton_2d_rig_helper.gd and procedural_walker_2d.gd set up FABRIK and TwoBoneIK inverse kinematics. Managing Tweens through tween_lifecycle_manager.gd ensures previous tweens are terminated with kill(). An AnimationPlayer moving a CharacterBody2D must run on the Physics callback mode, or physics interpolation will stutter.

What it helps with

  • eliminate one-frame display glitches when changing animation and flip_h simultaneously
  • apply procedural squash and stretch based on character physics velocity
  • set up two-bone inverse kinematics for 2D character legs
  • stop conflicting Tweens from fighting over the same sprite property
  • decouple combat hitboxes and metadata from raw SpriteFrames visuals

Example prompts for the agent

  • Fix AnimatedSprite2D desync on direction change using one_frame_sync_fix.gd
  • Implement procedural squash and stretch for player landing with procedural_squash_stretch.gd
  • Configure a 2D skeletal IK leg rig using skeleton_2d_rig_helper.gd

How to install godot-2d-animation

1Skills CLI (Vercel)

npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-2d-animation -a claude-code

2Manually: put the files in place

~/.claude/skills/godot-2d-animation/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/godot-2d-animation/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about godot-2d-animation

How to install godot-2d-animation in Claude Code?

Run npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-2d-animation -a claude-code.

What does godot-2d-animation do?

It equips coding agents with GDScript patterns for Godot 2D animation, resolving frame-sync issues, procedural squash and stretch, and skeletal IK rigging.

Why does the skill require advance(0) after play()?

AnimatedSprite2D updates state on the next process tick by default. Calling advance(0) immediately synchronizes the new frame with simultaneous property changes like flip_h.

Similar skills

Everything for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set50

godot-master A Godot 4.7 skill hub: it routes a task to the right domain sections and hands back layer rules plus performance budgets. Useful at project start and when something drags. CX Codex +1 4,900installs godot-shaders-basics Supplies Godot shader patterns for draw-call batching, post-processing, and foliage. Useful when building hit-flashes or screen passes without depth glitches. CX Codex +1 688installs godot-ui-theming A skill that guides an AI agent through Godot UI theming: Theme resources, StyleBoxes, fonts and dark/light switching. CX Codex +1 617installs godot-particles Architecture rules and GDScript blueprints for Godot particle systems. Prevents GPU memory spikes and fixes stuttering physics trails. CX Codex +1 611installs godot-gdscript-mastery Guides coding agents through GDScript pitfalls, enforcing static typing and safe node lifecycle patterns in Godot. CX Codex +1 612installs godot-save-load-systems Save and load blueprints for Godot covering JSON and binary serialization, version migration, and rolling backups. Keeps game state handling consistent. CX Codex +1 595installs godot-testing-patterns Provides testing decision trees and GdUnit4 templates for Godot. Guides developers through unit tests, headless CI runs, frame stepping, and network mocks. CX Codex +1 585installs godot-3d-world-building A skill for building 3D levels in Godot: GridMap with MeshLibrary, CSG greyboxing, occlusion and chunk streaming. Useful once a prototype has to become a playable scene. CX Codex +1 536installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor