Use for any work on a Godot 4 project (project.godot, .gd, .tscn, .tres, GDScript, shaders, 3D models for Godot, or porting Godot 3 code). Maps the project, looks up the exact Godot 4.7 API instead of guessing, reviews code before and after each edit, and checks with Godot before finishing. Also in Dutch: 'werk aan mijn Godot-project', 'schrijf een GDScript', 'maak een scene', 'werkt dit in Godot 4'.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Godot?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/laaielichter-godot)
---
name: godot
description: "Use for any work on a Godot 4 project (project.godot, .gd, .tscn, .tres, GDScript, shaders, 3D models for Godot, or porting Godot 3 code). Maps the project, looks up the exact Godot 4.7 API instead of guessing, reviews code before and after each edit, and checks with Godot before finishing. Also in Dutch: 'werk aan mijn Godot-project', 'schrijf een GDScript', 'maak een scene', 'werkt dit in Godot 4'."
---
# Working on a Godot project with Godotwright
The Godotwright tools answer from the real Godot 4.7 class reference and from this project's own files.
Use them instead of memory: models learned Godot from years of Godot 3 tutorials, and Godot 3 names
(`KinematicBody2D`, `export var`, `yield`, `instance()`) do not work in Godot 4.
## Every task
0. **Something broken, or a project you do not know?** Call `godot_doctor` first: what is wrong, in which order to
fix it, why (the lesson), and which fixes `godot_fix` or `godot_migrate` can do for you.
1. **Map first.** Call `godot_scan` once: scenes and node trees, scripts with signatures, signals,
autoloads and the input map. Node paths and action names come from here, not from guesses.
2. **Look up, do not guess.** Before you use a class, method, property or signal you are not sure about,
call `godot_api` (exact signature) or `godot_api_search`. It also translates Godot 3 names.
3. **Review before you write.** Pass new GDScript to `godot_review` with `code` and `file` and fix every
error before saving it.
4. **Review after every edit.** Call `godot_review` with the changed `files`; in a fix loop pass
`only_new: true` to see only what changed.
Two more for work with git: a merge conflict in a `.tscn`, `.tres` or `project.godot` is settled with `godot_merge`
(never by editing conflict markers in a scene), and `godot_bisect` finds the commit that broke something.
For structure use the tools, not a text editor: `godot_scene_edit` (create a scene, rename, move, duplicate nodes),
`godot_tilemap` (cells), `godot_animation` (tracks and keys), `godot_new` (a script from a template that already
passes the review). `godot_format` tidies scripts without changing them; `godot_metrics` shows the functions that are
too complex and signals nobody emits or hears.
5. **Look at the whole change before you finish.** `godot_impact` lists the scenes, tests and saved scenarios your
edits reach and the checks to run for them; `godot_diff` shows what changed by meaning, and every line marked `!`
is something the change broke elsewhere (a scene connection to a removed function, a saved `@export` value).
6. **Check with Godot before you finish**, when it is installed: `godot_check`, and `godot_test` when the
project has GUT or GdUnit4 tests.
## Change the project with the tools, not by hand
- Renaming or moving anything: `godot_usages` first, then `godot_rename` (dry run, then `write: true`).
A script or shader already moved without it (`git mv`, a shell, an IDE): `godot_uid` puts the `.uid` left behind
next to the file and points the paths there (dry run, then `write: true`); op `check` says whether all is in sync.
- Scenes: `godot_scene_edit`. Project settings, input actions, autoloads: `godot_project_edit`. `.tres` resources and import settings (loop, compression, per-animation or per-mesh options): `godot_resource_edit`.
These keep `.tscn`, `.uid` and `project.godot` valid and touch only the lines of the change.
- Godot 3 code: `godot_migrate` (report, then `write: true`), then fix the listed TO DOs. It ports shaders too.
- Shaders: after writing or changing a `.gdshader` (or a Shader in a scene), run `godot_shader`; it checks the code
against Godot 4.7's shader tables and compiles it with Godot headless. `godot_api` with `shader:spatial.fragment`
lists the built-ins of a shader type and function.
- Mechanical findings (a freed check in the wrong order, `get_meta()` with a null default, a lone ternary, garbled
text, `emit_signal()`, MultiMesh or Timer order): `godot_fix` (report, then `write: true`), not by hand.
- Collision layers and masks: `godot_collisions` before you set one, and when something falls through or is not
detected; `between: ["Player", "Enemy"]` says who detects whom and the mask value to set (layer 3 is the value 4).
- Before deleting or moving a file: `godot_deps` op `why` (also paths the code builds); `op unused` lists what can go.
- A Godotwright write that made things worse: `godot_undo` puts the files back (newest write first).
## See what you built
- `godot_play` runs a scene with an input timeline and returns the values you watch per frame. `until` stops when a
condition holds, `signals` records when signals fire, `summary` keeps long runs short, and `expect` turns a run
into a test.
- When `godot_play` with `expect` proves a fix, keep it: `godot_scenario` op `save` with the same arguments runs it
once more and writes it to `.godotwright/scenarios/`, where `godotwright ci` runs it on every change. op `run`
runs the kept scenarios.
- `godot_explore` finds what you did not script: a seeded monkey presses the actions the scripts read and clicks the
buttons on screen, and each error, crash, hang or broken `always` claim comes back with the smallest input that
does it. Run op `plan` first (no Godot), fix the first finding, play its `input` again with op `replay`, and pass
`save` to keep the repro as a test. A clean run is no proof.
- `godot_session` loads a scene once and keeps it running; `godot_game` then shows the live tree, reads and sets
values and steps frames with input until a condition holds; `reload` puts the scripts you edited into the running
game with every node's values kept. Use it when a world loads slowly or a state is hard to reach; stop it when done.
- `godot_perf` measures frame times (p50/p95/p99, the slowest frames and their cause) and compares with the last run.
- `godot_leaks` loads, runs and frees a scene in cycles and names what grows per cycle (orphan nodes by class and
script with where they were made and removed, nodes left behind, objects that are not nodes); 0 per cycle proves a fix.
- `godot_screenshot` renders a scene or a model to a PNG.
- `godot_look` judges how a frame looks (exposure, contrast, hidden, floating or blending objects, contact shadows,
believable sizes) with a 0-100 score and an annotated picture; prove a visual change with `expect` claims such as
`"Crate grounded"` or `"score >= 70"`. `godot_tune` tries a value in a session started with `render: true` (or the
live game) and saves the ones you keep (dry run first). `godot_capture` records a scene with input: a contact sheet,
pops, loudness and clipping.
- `godot_live` reaches the game the user runs with F5 (op `install` once): status, tree and values, frame and GPU
times with spikes, the real frame, input.
- While that game runs, every edit of a `.gd`, `.tscn`, `.tres` or `.gdshader` comes back with a `Live (...)` line
from the game when something changed: errors (fix them, the hook blocks on them), the pixels that changed and where,
frame time and draw calls. Read it: it is what your edit did in the real game. "restart needed" means press F5
again (or ask the user to).
- Before you place a `.glb` or `.gltf` made elsewhere, run `godot_asset` (with `archetype` when you know what it is):
scale (a centimetre export is 100 times too big), origin, collision, LODs. Op `fix` with `write: true` sets it right
in the `.import`; `godot_undo` takes it back.
- After you change movement or combat code, run `godot_feel`: latency, the jump arc, coyote time and jump buffer in
frames, camera and hit-stop against a genre's ranges, with the value to change. Judge feel by these numbers.
- After you change audio or add a gameplay event, run `godot_sound` op `scan`: it names the jump, hit or pickup that
makes no sound. Make one with op `generate` (a preset and a seed; `write: true`) and put it on the event with op
`wire`. Op `measure` checks loudness, peaks and clipping of the sound files.
- After you change a level, run `godot_playtest`: it plays the level to its goal with the real controls and says
whether it can be finished, where the player gets stuck and where a soft lock is, with a map.
- When the user ran the game from the editor (F5/F6), `godot_logs` reads the errors of that run from the log file the
game writes, with `file:line` and the call chain; its `since` cursor gives only what is new on the next call.
## Know what real projects learned
Godotwright holds lessons from large Godot 4 projects (vehicles and moving decks, open worlds tens of kilometres wide,
cockpits, VFX, streaming, shaders, installers for shipped games, headless tests). Before you build any of that, call
`godot_lessons` with a few words about it; with a Godot error you do not understand, call it with the message as
`error`. The skills `debug`, `perf`, `vehicles`, `world`, `model` and `patch` hold the workflow for each of these.
## 3D models
`godot_model_brief` first, then `godot_model_library` (over a thousand ready-made base recipes to start from) or
`godot_model_spec`, `godot_model_build`, `godot_model_view` (look at it as text) and
`godot_model_lint` with the archetype. Models face +Z, +Y is up, units are metres. The `model` skill has the details.
## When the plugin hooks are on
Every `.gd`, `.tscn`, `.tres`, `.gdshader` and `project.godot` you edit is reviewed right after the edit: errors come
back to you at once, warnings as a note. Godot errors in a command's output come with the lessons that explain them.
Before you stop, review errors still open in files you changed are named once. Fix them, or say why they stay.
## Learn from real projects, and teach back
- When Godot shows an error you do not understand, call `godot_lessons` with the message as `error`: lessons from real
Godot projects say what it usually means and how to fix it. Before you build moving platforms, vehicles, ships,
large worlds, runtime-loaded models, shaders or headless tests, call `godot_lessons` with a few words about it.
- When a fix took more than one try, keep the lesson with `godot_lesson_add` (general words, the Godot message as
`error`, no names or code). The next check shows it when the same error comes back.
- Say whether a lesson helped with `godot_feedback` (`lesson`, verdict `right` or `wrong`).
- These tools come with Godotwright 0.3.0 and later; skip this part on an older server.
- For deeper work, hand off to the `godot-reviewer` agent (verified review of a change) or the `godot-debugger` agent
(root cause of an error or wrong behaviour) so their logs stay out of the main conversation.
If you verified that a review finding is a false alarm, report it with `godot_feedback` (verdict `wrong`). A finding
that is right but that the user decides to keep goes in the code, `# godotwright-ignore: <rule> -- <reason>` on its
line, so teammates, the hooks and CI see the decision; never add one only to make a finding go away.
Keep changes small and use static types (`var speed: float = 200.0`, `func jump() -> void`).