Skip to content
Development
Skill

/systematic-debugging

Find the root cause before proposing any fix. Use when something fails, throws, hangs, flakes, or behaves unexpectedly, including failing tests and CI. Auto-activates for bug reports.

From plugin
code-cli
21814 skills15 agents

Claude Code

$ npx -y skills add autohandai/code-cli --skill systematic-debugging --agent claude-code

SKILL.md

systematic-debugging.SKILL.md
name: systematic-debugging
description: Find the root cause before proposing any fix. Use when something fails, throws, hangs, flakes, or behaves unexpectedly, including failing tests and CI. Auto-activates for bug reports.
allowed-tools: read_file find_grep fff_find list_tree git_diff git_log git_status run_command search_with_context

Debug systematically

A fix without a confirmed cause is a guess, and guesses cost more than they save. Work the four phases in order; do not propose code before Phase 3 confirms a cause.

Phase 1 — Reproduce and read

  • Read the whole error: message, stack, exit code, the lines around it. The

answer is often already there.

  • Reproduce on purpose. Run the failing command, test, or scenario yourself with

`run_command`. If it cannot be reproduced, gather more evidence instead of guessing.

  • Note what changed: `git_log` and `git_diff` for the touched area, new

dependencies, config, environment (CI vs local, OS, shell, terminal, load).

  • For multi-layer systems, add cheap instrumentation at each boundary and run

once to see where the data goes wrong. Fix where it originates, not where it surfaces.

Phase 2 — Compare with what works

  • Find the nearest working example in the same codebase and list every difference,

however small. Do not assume a difference cannot matter.

  • Read the reference implementation completely before adapting a pattern.

Phase 3 — One hypothesis, one test

  • Write the hypothesis down in one sentence: "X causes Y because Z."
  • Test it with the smallest possible change or probe. One variable at a time.
  • If it fails, form a new hypothesis. Do not stack fixes. After three failed

fixes, stop and question the design with the user; that is an architecture problem, not a bug.

Phase 4 — Fix with a regression test

  • Write the failing test first; it must fail for the reason you found.
  • Apply the single fix. No bundled refactors or "while I am here" edits.
  • Run the test, the neighbouring suites, lint, and the project's proof command.
  • Report what the cause was, what you changed, and what you verified. If the

cause was environmental (load, disk, timing), say so with the evidence.

Red flags that mean "back to Phase 1"

"Quick fix for now", "just try changing X", "I do not fully understand but this might work", "one more attempt" after two failures.

Read more
@autohandai
Ships withcode-cli

Docs: English | 日本語 | 简体中文 | 繁體中文 | 한국어 | Deutsch | Español | Français | Italiano | Polski | Русский | Português (Brasil) | Türkçe | Čeština | Magyar | हिन्दी | Bahasa Indonesia A fast, self-improving terminal-native AI coding agent for planning, reflecting,

21814 skills15 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
218
Star history of autohandai/code-cli on GitHub, a chart by star-history.com

Other skills on code-cli.

architecture-breakdown

architecture-breakdown

Map an unfamiliar codebase or subsystem into modules, boundaries, data flow, entry points, and hot spots, and produce a breakdown…

@autohandai@autohandaiInstall Skill
brainstorm

brainstorm

Turn a rough software idea into a clear, well-scoped design before any code is written. Use when the user wants to design,…

@autohandai@autohandaiInstall Skill
code-reviewer

code-reviewer

Staff-engineer-level code review delivering 10 prioritized actionable findings across architecture, security, performance, and…

@autohandai@autohandaiInstall Skill
computer-control

computer-control

Operate native desktop applications through Autohand Computer Use. Use when the user asks Autohand to open, drive, click, type,…

@autohandai@autohandaiInstall Skill
data-scientist

data-scientist

Explore, clean, analyze, and model data in the workspace (CSV, JSON, Parquet, SQL, notebooks) with reproducible scripts and…

@autohandai@autohandaiInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react9d252k
@facebook@facebookInstall Skill

Questions about systematic-debugging.

Which coding agents can use systematic-debugging?
systematic-debugging installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.