/godot-agent-skills:godot-migrationfrom godot-agent-skills
Upgrades or ports Godot projects to 4.7, handling 3→4 conversion, breaking changes from 4.0-4.6, and Unity/Unreal concept mapping. Includes a static scanner that lists stale APIs with file, line, and fix.
Ships in godot-agent-skills. 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.
Read when SKILL.md points to them; scripts run unread.
Run it first: python scripts/migrate_scan.py [DIR] reports the project's Godot version (config_version=4 means Godot 3, 5 means Godot 4; config/features gives the 4.x minor) and every stale API with file, line and fix. --rule NAME filters by rule, --limit N caps the output. It's static and fast; it never edits files.
run_godot.py import), then loop: migrate_scan.py → fix → gd_check.py/cs_build.py → run_godot.py smoke until all are clean (godot-core verification loop)..tscn/.tres in the 4.7 format; 4.6+ scenes carry unique_id=). Commit the *.uid files..godot/ if the editor shows ghost errors after the upgrade (it's a cache, and it rebuilds).python scripts/migrate_scan.py DIR --convert (wraps --validate-conversion-3to4) lists what the converter would change. Then --convert --apply (wraps --convert-3to4). Raise --max-kb/--max-lines for huge files (defaults 4000 KB, 100000 lines).export/onready/yield, many methods, shader built-ins and .shader → .gdshader. It also renames node names in paths ($Camera → $Camera3D) while the scene nodes keep their old names, so check every $/get_node path.setget, connect("sig", obj, "m", binds), funcref, RPC keywords | property set/get blocks, sig.connect(m.bind(...)), Callables, @rpc(...) |
| move_and_slide(vel, up, ...) | the converter emits set_velocity(); move_and_slide(); velocity = velocity: clean it up to velocity + move_and_slide(), and retune floor_snap_length and floor_max_angle |
| Tween node, interpolate_property | create_tween().tween_property(...) |
| TileMap | TileSets need re-setup (terrains replace autotile), then extract layers to TileMapLayer nodes (TileMap bottom panel) |
| Physics feel | gravity, friction, snapping and the engine changed. New 4.6+ projects use Jolt; a converted project keeps GodotPhysics3D until you switch physics/3d/physics_engine |
| Lighting/look | GLES3 → Compatibility, GLES2 doesn't exist. GIProbe → VoxelGI/SDFGI, tonemapping and glow differ, so retune the Environment (godot-3d-rendering) |
| Shaders | SCREEN_TEXTURE/DEPTH_TEXTURE → uniform sampler2D x : hint_screen_texture/hint_depth_texture; hint_color → source_color; see the scanner's shader3-* rules |
| Particles | Particles → GPUParticles3D. Process materials convert, but retune emission and sub-emitters |
| OS.* window and time APIs | DisplayServer, get_window(), Time |
| Files | File.new()/Directory → static FileAccess.open()/DirAccess.open() (they return null on error: check FileAccess.get_open_error()) |
| Plugins and addons | most Godot 3 addons don't work: get the 4.x version (godot-addons). GDNative → GDExtension (a rebuild against godot-cpp) |
| C# | regenerate the project: Project → Tools → C# → Create C# solution (Sdk="Godot.NET.Sdk/4.7.2", net8.0). Then partial classes, [Signal] delegate void XEventHandler(), += signal events, double delta, GodotObject, Instantiate<T>(), Godot.Collections types (godot-csharp) |
| Networking | the high-level multiplayer API was rewritten. Port to MultiplayerSpawner/Synchronizer and @rpc (godot-networking) |
Stale-name tables for writing new code: ../godot-core/references/godot3-traps.md.project.godot and config/features. Breaking changes per version are in ../godot-core/references/whats-new.md. The scanner flags the code-level ones (get_rpc_config, get_as_text(bool), BlendSpace sync, device == 0, C# Animation.Length as double, StringName animation names).Sdk="Godot.NET.Sdk/4.7.2" in the .csproj (the scanner flags older SDKs), rebuild, and fix the binary breaks. Android needs net9.0 (the generated csproj adds the condition).TileMap → TileMapLayer, ParallaxBackground → Parallax2D, SkeletonIK3D → the IK modifiers: deprecated, not removed, so migrate when you touch that code.Resource.duplicate(true) (4.5), async navigation map updates (4.5), TileMapLayer physics chunking (4.5), the glow defaults (4.6), thinner antialiased lines (4.7), AudioStreamPlayer2D/3D.area_mask default 0 (4.7).godot-export-ci).Think in scenes of nodes, not GameObjects with components. A scene is a prefab, a level and a component at once.
| Unity | Godot 4.7 |
|---|---|
| GameObject + components | node tree; one script per node; compose with child nodes (godot-architecture) |
| Prefab / prefab variant | PackedScene (.tscn) / inherited scene |
| ScriptableObject | Resource (.tres) with @export fields |
Awake/Start/Update/FixedUpdate | _init/_ready/_process(delta)/_physics_process(delta) |
Coroutines, async | await on signals and timers (C# await ToSignal(...)) |
| UnityEvent, C# events | signals |
| Tags, layers | groups (add_to_group), collision layers/masks, visual layers |
DontDestroyOnLoad, singletons | autoloads |
Resources.Load, Addressables | preload/load, ResourceLoader.load_threaded_request |
| PlayerPrefs | ConfigFile in user:// |
| Rigidbody / CharacterController | RigidBody3D / CharacterBody3D |
| Animator + state machine | AnimationTree with a state machine |
| UGUI / UI Toolkit | Control nodes + containers + Theme |
| Input System actions | Input Map actions (godot-input) |
transform.forward (+Z) | -global_basis.z (−Z is forward; Godot is right-handed, Y-up, 1 unit = 1 m) |
Debug.Log | print() / GD.Print(); push_warning/push_error |
Unreal: Actor → Node3D scene; Blueprint → GDScript or C# script on the node; GameMode/GameInstance → autoloads; Components → child nodes; DataAsset → Resource; Level streaming → load_threaded_request + add_child. |
Godot 3 → 4 C# and GDScript before/after, Unity-style component patterns in Godot, and a migration checklist (compiled by the tests): references/porting.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
godot-migration, godot-upgrade, gdscript-2.0, project-porting
27 skills in this plugin
/godot-2d2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene./godot-3d-gameplayBuilding 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building./godot-npx claudepluginhub el4cteo/godot-skills --plugin godot-agent-skillsOther plugins' skills for the same job