Debug issue

From n24q02m/better-godot-mcp · View interactive version

Debug issue is an AI agent skill from the GitHub repository n24q02m/better-godot-mcp. Systematic Godot debugging decision trees for physics, signals, rendering, navigation, and input issues

How to use this skill

Skill file

Debug Issue

Systematic debugging using domain-specific decision trees. Start by identifying the symptom category, then follow the corresponding tree.

Category Detection

Map user's symptom to the right tree:

| Symptom keywords | Category |

|---|---|

| "pass through", "no collision", "overlap", "stuck", "slides off" | Physics |

| "signal not firing", "not connected", "callback not called" | Signals |

| "invisible", "not showing", "behind", "flickering", "wrong color" | Rendering |

| "not moving to target", "path wrong", "stuck on nav", "no path" | Navigation |

| "key not working", "input ignored", "wrong button", "double input" | Input |

Physics Decision Tree

Check in this order -- each step is the most common cause at that point:

  1. Collision layer/mask mismatch (most common):

```

nodes(action="get_property", scene_path="<scene>.tscn", name="<body>", property="collision_layer")

nodes(action="get_property", scene_path="<scene>.tscn", name="<body>", property="collision_mask")

```

  1. Missing CollisionShape2D/3D:
  1. Wrong body type:
  1. Script velocity issues:

Signals Decision Tree

  1. Connection exists?
  1. Signature match?
  1. Signal emitted?
  1. Callable valid?

Rendering Decision Tree

  1. Visibility:
  1. Z-index:
  1. Material/shader:
  1. Viewport issues:

Navigation Decision Tree

  1. NavigationRegion setup:
  1. Navigation mesh baked?
  1. NavigationAgent config:
  1. Path calculation:

Input Decision Tree

  1. Input Map:
  1. Action name match:
  1. Event processing:
  1. Conflicts:

Diagnostic Steps

For any category:

  1. Inspect the scene tree: scenes(action="info", scene_path="<scene>.tscn")
  2. Read relevant scripts: scripts(action="read", script_path="res://scripts/<name>.gd")
  3. Check properties: nodes(action="get_property", scene_path="<scene>.tscn", name="<node_path>", property="<name>")
  4. Run the scene: project(action="run", scene_path="<scene>.tscn") and check output for errors
  5. Report findings: present root cause and specific fix (property change, missing node, script edit)

When to Use

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.