一键导入
gdscript-diagnostics
Validate GDScript changes by refreshing Godot cache and checking diagnostics. Use after creating or editing GDScript files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Validate GDScript changes by refreshing Godot cache and checking diagnostics. Use after creating or editing GDScript files.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Format and lint GDScript files using gdscript-formatter. Use after editing GDScript files to ensure code style consistency.
Write gdUnit4 test code with type-specific assertions, signal testing, and scene runner support. Use when creating or updating tests for GDScript files.
Regenerate Godot caches (class_name registry and .uid files). Use after creating or renaming GDScript files with class_name.
Re-save Godot text resources (.tscn/.tres) through the editor pipeline to inject UIDs and validate that they load. Use after creating or editing .tscn/.tres files by hand.
Run gdUnit4 tests for Godot projects and report results (read-only). Use to verify test status after code changes. USE PROACTIVELY to check test results.
Launch the Godot editor GUI in the background so its stdout (print / push_warning / push_error) is directly readable. Use when the user explicitly asks to open the Godot editor, or when a change needs hands-on verification in the running editor/game.
| name | gdscript-diagnostics |
| description | Validate GDScript changes by refreshing Godot cache and checking diagnostics. Use after creating or editing GDScript files. |
| allowed-tools | ["Bash","mcp__ide__getDiagnostics"] |
| hooks | {"PreToolUse":[{"matcher":"Bash","hooks":[{"type":"command","command":"${CLAUDE_PLUGIN_ROOT}/skills/gdscript-diagnostics/scripts/ensure-godot.sh","once":true}]}]} |
Validate GDScript file changes by refreshing Godot's language server cache and checking for errors/warnings.
After creating or editing GDScript files (.gd):
Run the cache refresh script included in this skill (${CLAUDE_PLUGIN_ROOT}/skills/gdscript-diagnostics/scripts/refresh_godot_lsp.sh).
For specific file:
mcp__ide__getDiagnostics --uri file:///absolute/path/to/file.gd
For entire project:
mcp__ide__getDiagnostics
Note: Only available when IDE MCP server is connected. Skip if unavailable.
Check the diagnostic output for:
Note on diagnostic errors: