Agent skill

systematic-debugging

4-phase root cause debugging: understand bugs before fixing.

HezaoHezaogithub.com/HezaoHezaoGitHub ↗
claude-codecan modify filesMIT
Install
npx skills add HezaoHezao/poirot --skill systematic-debugging --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 11 KB
Bundled scripts: none
Declared author: Adapted from hermes-agent (Nous Research, MIT); obra/superpowers
Allowed tools: -bash-read_file-list_dir-web_search
Path: poirot/backend/agents/skill/builtin_skills/core/systematic-debugging/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 193
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Systematic Debugging ## Overview Random fixes waste time and create new bugs. Quick patches mask underlying issues. **Core principle:** ALWAYS find root cause before attempting fixes. Symptom fixes are failure. ## The Iron Law ``` NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST ``` If you haven't completed Phase 1, you cannot propose fixes. ## The Feedback Loop Rule The feedback loop is the debugging work. Before reading code to build a theory, create or identify a **tight** command that can go red on the user's exact symptom and green when the bug is fixed. A tight loop is fast, deterministic, agent-runnable, and specific enough to catch this bug — not merely "doesn't crash". When a clean repro is hard, spend disproportionate effort building the loop. ## When to Use Use for ANY technical issue: test failures, bugs in production, unexpected behavior, performance problems, build failures, integration issues. **Use ESPECIALLY when:** - Under time pressure (emergencies make guessing tempting) - "Just one quick fix" seems obvious - You've already tried multiple fixes - Previous fix didn't work - You don't fully understand the issue ## The Four Phases You MUST complete each phase befo

What's inside
Steps it walks through
  1. Overview
  2. The Iron Law
  3. The Feedback Loop Rule
  4. When to Use
  5. The Four Phases
  6. Phase 1: Root Cause Investigation
  7. 1. Read Error Messages Carefully
  8. 2. Build a Tight Feedback Loop
  9. 3. Check Recent Changes
  10. 4. Gather Evidence in Multi-Component Systems
  11. 5. Trace Data Flow
  12. Phase 1 Completion Checklist
  13. Phase 2: Pattern Analysis
  14. 0. Minimize the Reproduction
Commands it runs
Run a specific failing test
pytest tests/test_module.py::test_name -v
Or run a scripted repro
python scripts/repro_bug.py
Or run a high-repetition flaky repro
for i in {1..100}; do pytest tests/test_flake.py::test_name -q || break; done
git log --oneline -10
git diff
git log -p --follow src/problematic_file.py | head -100
Find where the function is called
More from poirot
All skills →
About this skill
What does the systematic-debugging skill do?

4-phase root cause debugging: understand bugs before fixing.

How do I install it?

Run `npx skills add HezaoHezao/poirot --skill systematic-debugging --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From HezaoHezao/poirot, a repository with 193 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going