一键导入
godot-task
Execute a single Godot development task — generate scenes and/or scripts, verify visually.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute a single Godot development task — generate scenes and/or scripts, verify visually.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | godot-task |
| description | Execute a single Godot development task — generate scenes and/or scripts, verify visually. |
| context | fork |
All files below are in ${CLAUDE_SKILL_DIR}/. Load progressively — read each file when its phase begins, not upfront.
| File | Purpose | When to read |
|---|---|---|
quirks.md | Known Godot gotchas and workarounds | Before writing any code |
gdscript.md | GDScript syntax reference | Before writing any code |
scene-generation.md | Building .tscn files via headless GDScript builders | Targets include .tscn |
script-generation.md | Writing runtime .gd scripts for node behavior | Targets include .gd |
coordination.md | Ordering scene + script generation | Targets include both .tscn and .gd |
test-harness.md | Writing test/test_{id}.gd verification scripts | Before writing test harness |
capture.md | Screenshot/video capture with GPU detection | Before capturing screenshots |
visual-qa.md | Automated screenshot comparison against reference | reference.png exists and task has visual output |
doc_api/_common.md | Index of ~128 common Godot classes (one-line each) | Need API ref; scan to find class names |
doc_api/_other.md | Index of ~732 remaining Godot classes | Need API ref; class isn't in _common.md |
doc_api/{ClassName}.md | Full API reference for a single Godot class | Need API ref; look up specific class |
Bootstrap doc_api: bash ${CLAUDE_SKILL_DIR}/tools/ensure_doc_api.sh
Execute a single development task from PLAN.md:
$ARGUMENTS
scenes/*.tscn targets → generate scene builder(s)scripts/*.gd targets → generate runtime script(s)timeout 60 godot --headless --import to generate .import files for any new textures, GLBs, or resources. Without this, load() fails with "No loader found" errors. Re-run after modifying existing assets..tscn.gd files to scripts/timeout 60 godot --headless --quit to check for parse errors across all project scriptstest/test_{task_id}.gd implementing the task's Verify scenario.--write-movie to produce PNGsreference.png exists, compare against it — color palette, scale proportions, camera angle, and visual density should be consistent.ASSERT FAIL.
If any check fails, identify the issue, fix scene/script/test, and repeat from step 3.screenshots/{task_folder}/ before reporting completion.Steps 3-10 form an implement → screenshot → verify → VQA loop.
There is no fixed iteration limit — use judgment:
Always end your response with:
screenshots/{task_folder}/ and which frames best represent the result (e.g., frame0003.png, frame0006.png)visual-qa/{N}.md (or "skipped" if non-visual), note which mode (static/dynamic)On failure, also include:
The caller (godogen orchestrator) will decide whether to adjust the task, re-scaffold, or accept the current state.
# Import new/modified assets (MUST run before scene builders):
timeout 60 godot --headless --import
# Compile a scene builder (produces .tscn):
timeout 60 godot --headless --script <path_to_gd_builder>
# Validate all project scripts (parse check):
timeout 60 godot --headless --quit 2>&1
Error handling: Parse Godot's stderr/stdout for error lines. Common issues:
Parser Error — syntax error in GDScript, fix the line indicatedInvalid call / method not found — wrong node type or API usage, look up the class in doc_apiCannot infer type — := used with instantiate() or polymorphic math functions, see type inference rulesquit() call in scene builder; kill the process and add quit()Read MEMORY.md before starting work — it contains discoveries from previous tasks (workarounds, Godot quirks, asset details, architectural decisions). After completing your task, write back anything useful you learned: what worked, what failed, technical specifics others will need.