godot-migration
Installation
SKILL.md
Migration and Porting (to 4.7)
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.
Always
- Commit or copy the project first. The converter and the editor rewrite files with no backup.
- Upgrade one step at a time where it's cheap: the latest 3.x (3.6) before 4.x; for 4.x projects, open them directly in 4.7.
- Let the editor import once (
run_godot.py import), then loop:migrate_scan.py→ fix →gd_check.py/cs_build.py→run_godot.py smokeuntil all are clean (godot-coreverification loop). - Re-save resources so the diffs stop: Project → Tools → Upgrade Project Files (rewrites
.tscn/.tresin the 4.7 format; 4.6+ scenes carryunique_id=). Commit the*.uidfiles. - Delete
.godot/if the editor shows ghost errors after the upgrade (it's a cache, and it rebuilds).