Debugging Devtools Extensions
flutter/devtools
Guidelines and step-by-step workflow for debugging DevTools extensions locally, including stub mode, fixed-port launching, browser auto-opening, URL query parameters, target app connection, and…
Interactive debugging mode that generates hypotheses, instruments code with runtime logs, and iteratively fixes bugs with human-in-the-loop verification.
$ npx skills add doraemonkeys/claude-code-debug-mode --skill debug-mode -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install doraemonkeys/claude-code-debug-mode debug-mode --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/doraemonkeys/claude-code-debug-mode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/debug-mode .claude/skills/debug-mode && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "debug-mode" agent skill from https://github.com/doraemonkeys/claude-code-debug-mode/tree/master/debug-mode into .claude/skills/debug-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-mode", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/doraemonkeys/claude-code-debug-mode/tree/master/debug-modeType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add doraemonkeys/claude-code-debug-mode --skill debug-mode -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install doraemonkeys/claude-code-debug-mode debug-mode --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/doraemonkeys/claude-code-debug-mode.git skills-src && mkdir -p .agents/skills && cp -r skills-src/debug-mode .agents/skills/debug-mode && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "debug-mode" agent skill from https://github.com/doraemonkeys/claude-code-debug-mode/tree/master/debug-mode into .agents/skills/debug-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-mode", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add doraemonkeys/claude-code-debug-mode --skill debug-mode -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install doraemonkeys/claude-code-debug-mode debug-mode --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/doraemonkeys/claude-code-debug-mode.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/debug-mode .cursor/skills/debug-mode && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "debug-mode" agent skill from https://github.com/doraemonkeys/claude-code-debug-mode/tree/master/debug-mode into .cursor/skills/debug-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-mode", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/doraemonkeys/claude-code-debug-mode.git --path debug-mode--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add doraemonkeys/claude-code-debug-mode --skill debug-mode -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install doraemonkeys/claude-code-debug-mode debug-mode --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/doraemonkeys/claude-code-debug-mode.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/debug-mode .gemini/skills/debug-mode && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "debug-mode" agent skill from https://github.com/doraemonkeys/claude-code-debug-mode/tree/master/debug-mode into .gemini/skills/debug-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-mode", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install doraemonkeys/claude-code-debug-mode debug-modeInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add doraemonkeys/claude-code-debug-mode --skill debug-mode -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/doraemonkeys/claude-code-debug-mode.git skills-src && mkdir -p .github/skills && cp -r skills-src/debug-mode .github/skills/debug-mode && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "debug-mode" agent skill from https://github.com/doraemonkeys/claude-code-debug-mode/tree/master/debug-mode into .github/skills/debug-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-mode", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add doraemonkeys/claude-code-debug-mode --skill debug-mode -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install doraemonkeys/claude-code-debug-mode debug-mode --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/doraemonkeys/claude-code-debug-mode.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/debug-mode .opencode/skills/debug-mode && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "debug-mode" agent skill from https://github.com/doraemonkeys/claude-code-debug-mode/tree/master/debug-mode into .opencode/skills/debug-mode/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "debug-mode", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
debug-modeInteractive debugging mode that generates hypotheses, instruments code with runtime logs, and iteratively fixes bugs with human-in-the-loop verification.
Debug Mode is an agent skill from doraemonkeys/claude-code-debug-mode. Interactive debugging mode that generates hypotheses, instruments code with runtime logs, and iteratively fixes bugs with human-in-the-loop verification. Only for hard-to-diagnose bugs; in those cases, remind the user that debug-mode is available, and never proactively activate this skill.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Debugging and Human-in-the-loop approvals. The repository describes itself as: Cursor-style Debug Mode skill for coding agents. Hypothesis-driven debugging with runtime log instrumentation and human-in-the-loop verification. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit c34f9e3. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Debug Mode loads about 1.3k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 559 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from doraemonkeys/claude-code-debug-mode at commit c34f9e3, republished under its MIT licence (© doraemonkeys). 559 words, ~1,256 tokens.
.claude/skills/debug-mode/SKILL.md (or your agent's skills folder).You are in Debug Mode — a hypothesis-driven debugging workflow. Do NOT jump to fixes. Follow each phase in order.
Ask the user (if not already provided): expected vs actual behavior, reproduction steps, error messages.
Read the relevant source code. Understand the call chain and data flow.
Generate testable hypotheses as a numbered list:
Based on my analysis, here are my hypotheses:
1. **[Title]** — [What might be wrong and why]
2. **[Title]** — [Explanation]
3. **[Title]** — [Explanation]Include both obvious and non-obvious causes (race conditions, off-by-one, stale closures, type coercion, etc.).
Write to {project_root}/.agents/debug.log using an absolute path by default.
project_root = hardcoded constant string inferred from context (file paths in the conversation). PROHIBITED: import.meta.dir, __dirname, process.cwd(), Deno.cwd(), path.resolve() or any runtime detection. Exception: remote/CI environments or non-writable local filesystem — use /tmp/.agents/debug.log instead.
Before each reproduction: create .agents/ if needed. If .agents/debug.log exists and is non-empty, archive it first (rename to debug-1.log, debug-2.log, etc., incrementing sequentially) before resetting debug.log to empty, preserving historical logs.
Server-side: file-append API (fs.appendFileSync, open("a"), etc.). Browser-side: fetch POST to a debug API route. Must work in all environments (dev/release).
Adapt for non-standard environments & intermittent bugs (Evidence over Ritual):
ALL instrumentation MUST be wrapped in region blocks for clean removal:
// #region DEBUG (JS/TS/Java/C#/Go/Rust/C/C++)
# #region DEBUG (Python/Ruby/Shell/YAML)
<!-- #region DEBUG --> (HTML/Vue/Svelte)
-- #region DEBUG (Lua)
...instrumentation...
// #endregion DEBUG (matching closer)console.log、print or any stdout/stderr output. All debug output MUST go to debug.log — server-side via file-append, browser-side via fetch to a debug API endpoint.[DEBUG H1], [DEBUG H2], etc.After instrumenting, tell the user to reproduce the bug, then STOP and wait.
When the user has reproduced:
wc -l or ls -lh). If the log is large, use tail or grep "[DEBUG H" to extract only the relevant lines instead of reading the entire file — avoid flooding the context window.## Diagnosis
**Root cause**: [Explanation backed by log evidence]
Evidence:
- [H1] Ruled out — [why]
- [H2] Confirmed — [log evidence]If inconclusive: new hypotheses → more instrumentation → archive & reset log → ask user to reproduce again.
Write a fix. Keep debug instrumentation in place.
Archive and reset .agents/debug.log, ask user to verify the fix works, then STOP and wait.
If fixed: Remove all #region DEBUG blocks and contents (use Grep to find them), delete all .agents/debug*.log files (including archived logs), summarize.
If NOT fixed: Read new logs, ask what they observed, return to Phase 2, iterate.
console.log、print etc. Route all debug output to {project_root}/.agents/debug.log (or adapt the transport if runtime constraints require it).debug.log before each reproduction.#region DEBUG blocks.© doraemonkeys, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in debug-mode of doraemonkeys/claude-code-debug-mode.
Open the folder on GitHubat commit c34f9e3
Debug Mode next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Debug Mode this skilldoraemonkeys/claude-code-debug-mode | 117 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Debugging Devtools Extensionsflutter/devtools | 1.7k | — | ~839 | Automated safety check: Pass | BSD-3-Clause | |
| iOS ImplementMacMagazine/app-iOS | 171 | — | ~741 | Automated safety check: Pass | None | |
| Refactorsd0xdev/sd0x-harness | 192 | — | ~3k | Automated safety check: Notes | MIT | |
| Bug Fixsd0xdev/sd0x-harness | 192 | — | ~1.4k | Automated safety check: Notes | MIT | |
| PUA High-Agency Governance for Traetanweai/pua | 20k | — | ~878 | Automated safety check: Pass | MIT |
flutter/devtools
Guidelines and step-by-step workflow for debugging DevTools extensions locally, including stub mode, fixed-port launching, browser auto-opening, URL query parameters, target app connection, and…
MacMagazine/app-iOS
Complete feature-implementation workflow for MacMagazine with pattern matching, review gates, and quality verification.
sd0xdev/sd0x-harness
Multi-target refactoring orchestrator. An agent skill from sd0xdev/sd0x-harness.
sd0xdev/sd0x-harness
Bug fix workflow. An agent skill from sd0xdev/sd0x-harness.
tanweai/pua
An instruction-only discipline for Trae that forces evidence-based work when an agent keeps failing, gives up or declares a task finished without proof.
mindfold-ai/Trellis
Reach into past AI conversation history through the trellis mem CLI.
Categories
Interactive debugging mode that generates hypotheses, instruments code with runtime logs, and iteratively fixes bugs with human-in-the-loop verification. Debug Mode is an agent skill from doraemonkeys/claude-code-debug-mode. Interactive debugging mode that generates hypotheses, instruments code with runtime logs, and iteratively fixes bugs with human-in-the-loop verification.
Debug Mode fits situations like: tasks that involve Debugging; tasks that involve Human-in-the-loop approvals.
Run `npx skills add doraemonkeys/claude-code-debug-mode --skill debug-mode -a claude-code`. Or copy the skill folder (debug-mode in doraemonkeys/claude-code-debug-mode) into .claude/skills/debug-mode in your project. Claude Code loads it when a task matches its description.
Run `npx skills add doraemonkeys/claude-code-debug-mode --skill debug-mode -a codex`. Or copy the skill folder (debug-mode in doraemonkeys/claude-code-debug-mode) into .agents/skills/debug-mode in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add doraemonkeys/claude-code-debug-mode --skill debug-mode -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/debug-mode, .gemini/skills/debug-mode, .github/skills/debug-mode and .opencode/skills/debug-mode in your project.
SKILL.md names no scripts, command-line tools or credentials: Debug Mode is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Debug Mode is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Debug Mode: Debugging Devtools Extensions (flutter/devtools, 1.7k stars), iOS Implement (MacMagazine/app-iOS, 171 stars), Refactor (sd0xdev/sd0x-harness, 192 stars) and Bug Fix (sd0xdev/sd0x-harness, 192 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
doraemonkeys (a GitHub user) maintains it in doraemonkeys/claude-code-debug-mode, which has 117 GitHub stars. The repository was last updated on September 2, 2026.
Source: doraemonkeys/claude-code-debug-mode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.