Debugging

mrgoonie/claudekit-skills/.claude/skills/debugging

作者 mrgoonie80113d86bc44无许可证2.2K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库6个月前更新

Systematic debugging frameworks for finding and fixing bugs - includes root cause analysis, defense-in-depth validation, and verification protocols

AI 生成的概览

提供系统化调试框架,用于排查缺陷、追溯根因、验证修复并在宣称完成前进行确认。

功能
该技能以子技能形式提供一套调试方法:系统化调试、根因追溯、纵深防御验证以及完成前验证。它引导智能体依次进行根因调查、模式分析、假设检验和实现,并给出将症状对应到相应框架的分派指引。它产出的是结构化的调试指导,而不是代码或文件。
适用场景
适用于遇到缺陷、测试失败或异常行为时,错误出现在堆栈跟踪深处时,或同一缺陷反复出现时。它也用于在宣称完成之前验证修复是否有效。
运行要求
无需任何工具、软件包、运行时、凭据或网络访问;它仅为说明性指令,不附带脚本。

Debugging Skills

A collection of systematic debugging methodologies that ensure thorough investigation before attempting fixes.

Available Sub-Skills

Systematic Debugging

Location: systematic-debugging/SKILL.md

Four-phase debugging framework: Root Cause Investigation → Pattern Analysis → Hypothesis Testing → Implementation. The iron law: NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST.

Root Cause Tracing

Location: root-cause-tracing/SKILL.md

Trace bugs backward through the call stack to find the original trigger. Don't fix symptoms - find where invalid data originated and fix at the source.

Defense-in-Depth Validation

Location: defense-in-depth/SKILL.md

Validate at every layer data passes through to make bugs structurally impossible. Four layers: Entry Point → Business Logic → Environment Guards → Debug Instrumentation.

Verification Before Completion

Location: verification-before-completion/SKILL.md

Run verification commands and confirm output before claiming success. The iron law: NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE.

When to Use

  • Bug in production → Start with systematic-debugging
  • Error deep in stack trace → Use root-cause-tracing
  • Fixing a bug → Apply defense-in-depth after finding root cause
  • About to claim "done" → Use verification-before-completion

Quick Dispatch

SymptomSub-Skill
Test failure, unexpected behaviorsystematic-debugging
Error appears in wrong locationroot-cause-tracing
Same bug keeps recurringdefense-in-depth
Need to confirm fix worksverification-before-completion

Core Philosophy

"Systematic debugging is FASTER than guess-and-check thrashing."

From real debugging sessions:

  • Systematic approach: 15-30 minutes to fix
  • Random fixes approach: 2-3 hours of thrashing
  • First-time fix rate: 95% vs 40%

来源与署名

来源:mrgoonie/claudekit-skills位于.claude/skills/debugging提交80113d8

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架