godot-diagnose
Skill1 starsChanged 3 days agoApache-2.0View on GitHub
Use when a Godot build, import, export or test run fails and the cause is unclear, or when a project's setup or wiring looks wrong.
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- algorithmsSkill
- animationSkill
- anti-cheatSkill
- asset-pipelineSkill
- automation-hooksSkill
- calendarSkill
- cameraSkill
- console-certSkill
- debug-toolsSkill
- determinismSkill
- game-aiSkill
- game-audioSkill
- game-dataSkill
- game-designSkill
- game-juiceSkill
- game-planSkill
- game-playtestSkill
- gameSkill
- game-telemetrySkill
- godot-addonsSkill
- godot-editor-bridgeSkill
- godot-export-releaseSkill
- godot-pitfallsSkill
- godot-shaders-vfxSkill
- godot-test-loopSkill
- inputSkill
- kit-reviewSkill
- kitSkill
- legalSkill
- llmSkill
- localizationSkill
- lookSkill
- mathSkill
- mobile-webSkill
- moddingSkill
- multiplayerSkill
- narrativeSkill
- new-gameSkill
- patternsSkill
- performanceSkill
- procgenSkill
- progressionSkill
- release-readinessSkill
- retroSkill
- savesSkill
- serversSkill
- steamSkill
- store-pageSkill
- typographySkill
- ui-accessibilitySkill
- ui-flowsSkill
- verify-before-doneSkill
- weekly-reviewSkill
- xrSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 28
Test packages referenced unconditionally -> they ship in release builds.
- Distinctive: line 55
Before debugging an engine error, look it up in the run history:
- Distinctive: line 97
Do not switch model or effort level in the middle of a task, and do not enable or disable MCP servers or plugins mid-task: each reprocesses …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
detect, doctor, validate
Three cheap commands tell you almost everything before you change code. All accept -Json and -Project <dir>.
detect - what the kit found (changes nothing)
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 detect -JsonReturns project, name, csharp, solution, godotVersion, runners[], goDotTestScene,
presets[] (name, platform). If runners lacks what you expect, the framework is not wired: the C#
test packages, extends GutTest scripts or main scene it keys off are missing.
doctor - what is misconfigured
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 doctor -Jsonchecks[] has status (OK, INFO, WARN, FAIL), message, and fix. Exit 1 only on FAIL. Act on every
FAIL and WARN; the usual ones are:
.slnoutside the project but nosolution_directory-> exports silently drop your C# code.- Test packages referenced unconditionally -> they ship in release builds.
- Export preset ships test folders -> add them to
exclude_filter. - GUT files not named
test_*.gd-> they never run. gdunit4_testadapter_v5/not in.gitignore.
init applies most of these fixes and never overwrites a file.
validate - the load check
The validate runner loads every script, scene and resource outside addons/ and instantiates each scene,
one test case per file. It finds parse errors, bad res:// paths and missing node scripts in files no unit
test touches. Run it alone while editing scenes:
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 test -Json -Quiet -Runners validateFailures name the file (res://scenes/Hud.tscn). Open that file; the message is Godot's own.
When the JSON is not enough
Each failure in runnerResults[].failures[] carries message, file, line and a few lines of details; read
those first. The full output of the run is in the file the JSON's log field names (test-results/hyperdot.log):
search it for the test or file name instead of reading it whole. summary.json, summary.md and per-runner
JUnit/TRX files stay in test-results/; coverage is in test-results/coverage/index.html.
Has this error happened before?
Before debugging an engine error, look it up in the run history:
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 status -JsonrecurringErrors[] groups past runs by error key (the error line with its numbers taken out, plus its res:// file;
engineErrors[].key is the same): count, failedRuns, firstSeen and lastSeen (time, commit, command).
count1: the error is new, so the change under test is the first suspect.- First seen at an earlier commit, or seen for weeks: it predates your change (
warnings[]says so). Report it, and check that it really is what failed before changing code for it;countwell abovefailedRunsmeans it also shows up when everything passes. firstSeen.commitis where it started: in that commit, or in uncommitted work on top of it (git log <commit>..lists what came after).
GPU crashes, hangs and wrong pictures
From Adam Sawicki (AMD), "Make Your Game Friendly for Graphics Debugging and Optimization" (Digital Dragons 2019): validation layers belong in regular testing ("Use them in regular testing"), and a crash wants a safe mode.
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 shot -Json -Quiet -GpuValidation -Scene res://levels/Boss.tscn
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 export -Json -Quiet -Run -GpuValidation -Preset Windows-GpuValidation (bench, shot, export -Run) runs with Godot's --gpu-validation and --accurate-breadcrumbs and
fails with gpu-validation-errors on the layer's errors, each with its VUID in gpuValidation.errors. It needs Vulkan
(Forward+ or Mobile) and the Khronos validation layer (Linux: vulkan-validationlayers, and mesa-vulkan-drivers for a
software Vulkan without a GPU; Windows: the Vulkan SDK); a Compatibility project, a headless run or a missing layer fails
with no-gpu-validation rather than passing unchecked. Godot 4.7.2 flags for your own runs (in --help):
--gpu-validationturns on the graphics API's validation layers, in release builds too;--gpu-abort(debug builds) stops at the first API usage error, which helps when the machine freezes.- A GPU reset (device lost):
--accurate-breadcrumbsputs barriers between breadcrumbs to narrow down the command that caused it;--extra-gpu-memory-trackingadds detail toRenderingDevice's memory report. Both are Vulkan only. - Rule out threading with
--single-threaded-scene, and the API or renderer with--rendering-driverand--rendering-method. Test stability first, then correctness, then performance, on more than one GPU vendor.
Keeping the session cheap
- Screenshots, benchmarks and launching an export produce long logs and images: hand them to the
godot-verifiersubagent, which returns a short verdict. - Do not switch model or effort level in the middle of a task, and do not enable or disable MCP servers or plugins mid-task: each reprocesses the whole conversation once.
- To abandon an approach,
/rewindto before it rather than compacting; compact (/compact) at a break between tasks.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

