nobody-debugs

GitHub

提供系统化的四阶段调试流程(复现、隔离、根因分析、修复),强调通过TDD和二分法精准定位问题,避免盲目尝试,确保一次性修复并防止回归。

skills/nobody-debugs/SKILL.md HashWarlock/nobody-plans-for-pi

Trigger Scenarios

遇到代码Bug 测试失败 出现意外行为

Install

npx skills add HashWarlock/nobody-plans-for-pi --skill nobody-debugs -g -y
More Options

Use without installing

npx skills use HashWarlock/nobody-plans-for-pi@nobody-debugs

指定 Agent (Claude Code)

npx skills add HashWarlock/nobody-plans-for-pi --skill nobody-debugs -a claude-code -g -y

安装 repo 全部 skill

npx skills add HashWarlock/nobody-plans-for-pi --all -g -y

预览 repo 内 skill

npx skills add HashWarlock/nobody-plans-for-pi --list

SKILL.md

Frontmatter
{
    "name": "nobody-debugs",
    "description": "Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes"
}

Systematic Debugging

Overview

4-phase process: reproduce, isolate, identify root cause, fix with test.

Core principle: Random fixes waste hours. Systematic tracing takes minutes.

Announce at start: "I'm using the nobody-debugs skill to trace this."

Phase 1: Reproduce

Before anything else, get a reliable reproduction:

  1. Find the exact command/action that triggers the bug
  2. Note the exact error message and behavior
  3. Confirm it reproduces consistently
  4. If intermittent, note frequency and conditions

Cannot reproduce? Gather more data before proceeding. Don't guess.

Phase 2: Isolate

Narrow down where the problem lives:

  1. Binary search — Comment out half the code, does it still fail?
  2. Simplify inputs — Find the minimal input that triggers the bug
  3. Check boundaries — Which module/function/line is the boundary between working and broken?
  4. Read error traces — Follow the stack trace to the actual failure point

Goal: "The bug is in function X, triggered when Y happens."

Phase 3: Root Cause

Trace backward from the symptom to the origin:

  1. Start at the crash/error point
  2. Ask: "What state caused this to fail?"
  3. Trace that state backward: "Where was this value set?"
  4. Repeat until you find the original cause

Root cause checklist:

  • Can you explain WHY the bug happens, not just WHERE?
  • If you fix this, will the symptom definitely disappear?
  • Is this the deepest cause, or just another symptom?

Common traps:

  • Fixing the symptom, not the cause
  • Stopping at the first suspicious thing
  • Assuming without evidence

Phase 4: Fix with Test

  1. Write failing test reproducing the bug (TDD RED)
  2. Watch it fail with the exact symptom
  3. Apply minimal fix addressing root cause
  4. Watch it pass (TDD GREEN)
  5. Check for regressions — run full test suite
  6. Add defense — validation, assertions, logging at the failure point

When Stuck

Problem Action
Can't reproduce Add logging, try different environments
Too many variables Isolate one variable at a time
Fix broke something else Revert, understand dependencies first
"No root cause found" 95% of the time = incomplete investigation

Red Flags

  • Proposing fixes before understanding the root cause
  • "Let me try this and see if it works"
  • Changing multiple things at once
  • Not writing a regression test
  • Fixing symptoms instead of causes

Real-World Impact

  • Systematic approach: 15–30 minutes to fix
  • Random fixes approach: 2–3 hours of thrashing
  • First-time fix rate: ~95% vs ~40%
  • New bugs introduced: Near zero vs common

Version History

  • fc2edc0 Current 2026-07-25 05:06

Same Skill Collection

skills/nobody-brainstorms/SKILL.md
skills/nobody-executes-plans/SKILL.md
skills/nobody-finishes-a-development-branch/SKILL.md
skills/nobody-receives-code-review/SKILL.md
skills/nobody-requests-code-review/SKILL.md
skills/nobody-uses-git-worktrees/SKILL.md
skills/nobody-uses-tdd/SKILL.md
skills/nobody-verifies-before-completion/SKILL.md
skills/nobody-writes-plans/SKILL.md
skills/nobody-writes-skills/SKILL.md
skills/using-plans-for-nobody/SKILL.md

Metadata

Files
0
Version
fc2edc0
Hash
4060e8b7
Indexed
2026-07-25 05:06

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 12:13
浙ICP备14020137号-1 $Гость$