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 從公開儲存庫中收錄這些內容。

檢舉或申請下架