summerengine/summer/debug
Claude Code and agent skill by summerengine/summer
- community
Checking that the SKILL.md file is still in the repository.
Disciplined bug, crash and error loop: script errors, console, debugger, hypothesis, fix, verify.
Install
npx vskill@latest install summerengine/summer/debugSKILL.md
/debug — Triage and Fix a Bug End-to-End
The disciplined debugging loop for Summer projects. Read the error before guessing. Form a hypothesis before editing. Verify the fix before declaring victory. Never grep the codebase before reading the actual error.
Core principle: The debugger already knows what's wrong. Your job is to listen to it before doing anything else.
When to use this skill
- The user says "it crashes", "it broke", "throws an error", "doesn't work", "freezes", "wrong behavior".
- The user invokes
/summer debug, asks for a support report, or wants something they can send to Summer. - The user pastes a stack trace.
- A previous build or test step failed and the user wants to fix it.
When NOT to use this skill
- The user is asking how to prevent a class of bug — that's a design question. Use the relevant discipline skill (
gdscript-patterns,scene-composition). - The user is asking for a feature with a known unfinished spec — that's
make-gameterritory. - The bug is in a file outside the game project that the host agent can debug natively (CI config, npm scripts) — use the host's debugger.
The Loop
Do not skip steps. Do not loop back to "Hypothesize" without re-running the cheap diagnostic.
0. Support report mode
If the user asks for /summer debug, "send this to Summer", "make a report", or they are stuck in Codex, a cloud sandbox, or another agent environment, create a portable report first:
Tell the user where the Markdown file was written and remind them to review local paths and stack traces before sending. Then continue the normal debug loop only if they also asked you to fix the bug.
Fallback when the MCP tool is not available but shell is available:
Add --play only when the issue appears after pressing Play.
1. Listen
Ask the user one focused question and wait for the answer:
What's happening, and when does it happen?
If they already gave a clear symptom in the request, skip the question. If they say "something's broken", that one question is your only call until they reply. Don't run tools yet.
2. Diagnose — cheapest tool first
In strict order. Stop at the first one that returns useful signal.
| Order | Tool | When | |
|---|---|---|---|
| 1 | summer_get_script_errors | Always start here. Catches GDScript parse errors, missing identifiers, signature mismatches. Cheapest, no side effects. | |
| 2 | summer_get_diagnostics | Aggregate console + debugger error counts. One call, broad picture. | |
| 3 | summer_get_console | Read the editor Output panel — print statements, warnings, errors that didn't crash. | |
| 4 | summer_get_debugger_errors | Runtime errors caught by the debugger. Use AFTER summer_play for runtime-only bugs. | |
| 5 | summer_get_debugger_warnings | Warning bodies (file/line/function/callstack). Use when diagnostics reports a non-zero debugger.warnings. |
If `summer_get_script_errors` is clean and the user says it crashes only when running: it's a runtime bug. Go to step 2b.
2b. Runtime-only bugs
Reproduce it yourself first. Write a RunVerification probe that performs the repro steps (press / key), reports the state you expect to be wrong, and saves a frame. See "Drive the game yourself" below for the exact call. The returned results.errors_seen and reports are the diagnostic. This costs one call, touches nothing the user owns, and gives you a repro you can re-run after the fix.
Fall back to the editor session only when the repro genuinely needs a human (feel, hardware, "is this what you meant?"):
If you go this route, do not skip the "reproduce now" prompt. Auto-running and grabbing whatever's in the buffer leads you to chase ghosts from previous sessions.
2c. Missing MCP tools versus an unavailable engine
If summer_get_script_errors is not listed in this session, use summer engine get-script-errors from the shell (see summer-cli for flags and the package-version fallback). Missing MCP tools alone do not mean Summer Engine is stopped. Continue the same diagnostic order through the shell equivalents below.
If the operation returns engine_not_running (or "Summer Engine is not running"), follow summer-cli's "Start or reconnect to Summer Engine" sequence: open the existing project yourself, wait for readiness, verify project context, then retry the diagnostic. Use the project's exact path; bare summer run fails. Starting the engine does not reload the host's MCP tool list.
Only when neither MCP nor shell access can read the engine, ask the user for the Output and Debugger panel text. Reason over it and continue the diagnostic loop, explicitly noting anything you could not verify. Do not loop on unavailable MCP tools, recreate the project, or substitute stock Godot.
3. Hypothesize — one specific theory
State exactly one hypothesis, in one sentence, naming the file and line.
Good: "Typo atscripts/player.gd:14—GRAVTYshould beGRAVITY."Bad: "Could be a typo, missing import, or wrong scope."
If you have multiple plausible theories, pick the highest-prior-probability one. The user can correct you if you're wrong; chasing all three at once wastes their time.
Verify the hypothesis without editing. If the error mentions a missing node, call summer_inspect_node to confirm. If it's a missing resource, summer_inspect_resource. If it's a scene-graph issue, summer_get_scene_tree. Confirm the world state matches the error before proposing a fix.
4. Propose — ask before writing
Surface the proposed fix in plain language and ask permission. Two patterns:
Code fix:
May I editscripts/player.gdto renameGRAVTY→GRAVITYon line 14?
Scene fix vs code fix:
The script callsaudio.play()but theAudioStreamPlayerchild is gone. Two options:1. Re-add theAudioStreamPlayerto./Coin(preserves the original behavior).2. Null-check incoin.gd(defensive, but the audio is silent).Which one do you want?
Never unilaterally pick when there are two equally valid fixes (scene vs code, defensive vs strict, fast vs correct). Ask.
5. Fix — minimal, focused
- For GDScript edits:
Readthe 20–40 lines around the error,Editthe exact change. Don't read the whole file. Don't reformat. Don't rename other things. - For scene edits: use the appropriate
summer_*tool (summer_add_node,summer_set_prop,summer_replace_node). Group multi-step changes insummer_batchfor one undo step. - Nested resource properties:
summer_set_resource_propertyworks against inlinesub_resourcetargets too — passnodePath,resourceProperty, andsubProperty(there is no dotted"mesh.size"form). Structural failures (node not found,property is not a resource,resource is null) are explicit errors; a bad value shape is not — a JSON object instead of an engine literal string, a misspelledkey/subProperty, or a wrong-typed value returnsok:trueyet silently no-ops or coerces destructively on current engines (dict → material cleared; dict →Color(0,0,0,1); newer engines reject these withunknown_property/bad_value_shape/type_mismatch). Pass class names andColor(...)/Vector3(...)strings, and confirm the fix in the saved.tscnor a snapshot diff, never fromokalone. Seesummer_docs_readidreference/mcp-tools-reference.
6. Verify — re-run the diagnostic that found it
The fix is not done until the same diagnostic that found the bug returns clean.
- Script error → re-run
summer_get_script_errors. - Runtime error → re-run the play/reproduce/check-debugger loop.
- Console warning →
summer_clear_console, thensummer_playand confirm clean output.
If the diagnostic is still red after the fix, you formed the wrong hypothesis. Go back to step 3 — do not make a second edit on top of the first. Revert if the first edit didn't help, then re-hypothesize.
Anti-Patterns
| Don't | Why | |
|---|---|---|
| Grep the whole project before reading the error | The error already names the file and line. Save the user's tokens. | |
| Read whole files | 20–40 lines around the error is usually enough. | |
| Run multiple diagnostics in parallel | They mask each other's signal. Cheapest first, escalate. | |
| Edit before asking | The user owns the fix decision, you own the diagnosis. | |
| "Try this, see if it works" | That's not a hypothesis, that's gambling. State the theory or ask another question. | |
| Reformat the file while you're in it | Out-of-scope edits make the diff hostile to review. | |
| Auto-fix linter warnings unrelated to the bug | Same reason. | |
| Declare victory after editing | Re-run the diagnostic. Always. |
Quick reference — common Summer Engine bug families
| Symptom | First tool | Common cause | |
|---|---|---|---|
| "Identifier X not declared" | summer_get_script_errors | Typo, missing import, wrong scope | |
| "Invalid call. Nonexistent function 'X' in base 'Nil'" | summer_get_debugger_errors after summer_play | Node was deleted in editor, code still references it | |
| "Cannot find type 'X'" | summer_get_script_errors | Class name mismatch, missing autoload, missing class_name | |
| Game runs but visuals wrong | summer_get_console + summer_inspect_node | Material/light/camera misconfigured | |
| Game freezes (no crash) | summer_get_console after summer_play for ~3s | Infinite loop in _process or _ready | |
summer_set_resource_property "succeeded" but nothing changed | n/a | Bad value shape (JSON object, misspelled subProperty, wrong type). Pass engine literal strings and confirm in the saved .tscn. |
Closing
A debug session is done when:
- The user-reported symptom no longer reproduces.
- The diagnostic that originally flagged the bug returns clean.
- No new errors or warnings have been introduced.
Tell the user one short sentence: "Fixed <file>:<line> — <change>. Diagnostic clean." Then stop.
What the MCP debug tools CAN and CAN'T see (read this before claiming "clean")
The static and boot-time tools (summer_get_script_errors, summer_get_console, summer_get_diagnostics) can't substitute for play-testing — but you have a play-testing route, so a false-clean report is a choice, not a limitation. Know which tool answers which question.
What the MCP CAN see
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglibrary/skills/debug/SKILL.md
Popularity
- Repository stars
- 65
- Repository forks
- 4
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/summerengine/summer/debug)