headless-godot
Installation
SKILL.md
Rules for making headless Godot (4.2+) development reproducible, avoiding drift and environment-specific failures.
Scope:
- Godot 4.2+ (Godot 3.x is out of scope)
Required rules (highest priority):
- Always use
--headless --path <PROJECT_DIR>(removescwddependency) - Always capture logs:
2>&1 | tee logs/<name>.log - In sandbox/CI, or after
user:/// XDG write failures, use project-localXDG_DATA_HOME,XDG_CONFIG_HOME, andXDG_CACHE_HOME - Never edit
.tscnas raw text (edits must go through--headless --script) - For repeated validation commands, standardize them as
tools/*.sh; after manual tweaks, re-run via the same scripts - If
res://tools/godot_apply_patch.gdis missing, copy.agents/skills/headless-godot/tools/godot_apply_patch.gdto<PROJECT_DIR>/tools/godot_apply_patch.gdbefore running patch commands - Keep startup smoke and logic tests separate: smoke starts
run/main_scene;run_tests.gdholds project-specific logic checks
If you get stuck, provide:
- Full command lines and
logs/*.log godot --versionoutput- Whether
export_presets.cfgexists (when exporting)