npx skills add https://github.com/pproenca/dot-skills --skill debug面向软件工程师的全面调试方法指南,包含 10 个类别共 54 条规则,按影响优先级排序。基于 Andreas Zeller 的《Why Programs Fail》研究成果及学术调试课程。
在以下情况时参考本指南:
| 优先级 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 问题定义 | 关键 | prob- |
| 2 | 假设驱动搜索 | 关键 | hypo- |
| 3 | 观察技术 | 高 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
obs- |
| 4 | 根本原因分析 | 高 | rca- |
| 5 | 工具掌握 | 中高 | tool- |
| 6 | Bug 分类与分级 | 中 | triage- |
| 7 | 常见 Bug 模式 | 中 | pattern- |
| 8 | 修复验证 | 中 | verify- |
| 9 | 反模式 | 中 | anti- |
| 10 | 预防与学习 | 低中 | prev- |
prob-reproduce-before-debug - 在调查前先复现 Bugprob-minimal-reproduction - 创建最小复现案例prob-document-symptoms - 精确记录症状prob-separate-symptoms-causes - 区分症状与原因prob-state-expected-actual - 说明预期与实际行为prob-recent-changes - 首先检查最近的更改hypo-scientific-method - 应用科学方法hypo-binary-search - 使用二分查找定位 Bughypo-one-change-at-time - 一次测试一个假设hypo-where-not-what - 先找到"在哪里",再问"是什么"hypo-rule-out-obvious - 首先排除明显原因hypo-rubber-duck - 大声解释问题obs-strategic-logging - 使用策略性日志记录obs-log-inputs-outputs - 记录函数输入和输出obs-breakpoint-strategy - 策略性地使用断点obs-stack-trace-reading - 从下到上阅读堆栈跟踪obs-watch-expressions - 使用监视表达式查看状态obs-trace-data-flow - 跟踪系统中的数据流rca-five-whys - 使用 5 个为什么技术rca-fault-propagation - 跟踪故障传播链rca-last-known-good - 查找最后已知的良好状态rca-question-assumptions - 质疑你的假设rca-examine-boundaries - 检查系统边界tool-conditional-breakpoints - 使用条件断点tool-logpoints - 使用日志点而非修改代码tool-step-commands - 掌握单步跳过/进入/跳出命令tool-call-stack-navigation - 导航调用堆栈tool-memory-inspection - 检查内存和对象状态tool-exception-breakpoints - 使用异常断点triage-severity-vs-priority - 区分严重性与优先级triage-user-impact-assessment - 在确定优先级前评估用户影响triage-reproducibility-matters - 将可复现性纳入分级考量triage-quick-wins-first - 首先识别并交付快速修复triage-duplicate-detection - 检测并关联重复的 Bug 报告pattern-null-pointer - 识别空指针模式pattern-off-by-one - 发现差一错误pattern-race-condition - 识别竞态条件症状pattern-memory-leak - 检测内存泄漏模式pattern-type-coercion - 注意类型强制转换 Bugpattern-async-await-errors - 捕获 async/await 错误处理错误pattern-timezone-issues - 识别时区和日期 Bugverify-reproduce-fix - 使用原始复现步骤验证修复verify-regression-check - 检查回归问题verify-understand-why-fix-works - 理解修复为何有效verify-add-test - 添加测试以防止复发anti-shotgun-debugging - 避免散弹枪式调试anti-quick-patch - 避免在不理解的情况下快速打补丁anti-tunnel-vision - 避免对初始假设产生隧道视野anti-debug-fatigue - 识别调试疲劳anti-blame-tool - 不要过快归咎于工具prev-document-solution - 记录 Bug 解决方案prev-postmortem - 进行无责复盘prev-defensive-coding - 在边界处添加防御性代码prev-improve-error-messages - 改进错误信息阅读单独的参考文件以获取详细解释和代码示例:
获取包含所有规则详情的完整指南:AGENTS.md
每周安装次数
128
代码仓库
GitHub 星标数
85
首次出现
2026年1月22日
安全审计
已安装于
claude-code104
codex103
opencode101
gemini-cli99
github-copilot92
cursor87
Comprehensive debugging methodology guide for software engineers, containing 54 rules across 10 categories prioritized by impact. Based on research from Andreas Zeller's "Why Programs Fail" and academic debugging curricula.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Problem Definition | CRITICAL | prob- |
| 2 | Hypothesis-Driven Search | CRITICAL | hypo- |
| 3 | Observation Techniques | HIGH | obs- |
| 4 | Root Cause Analysis | HIGH | rca- |
| 5 | Tool Mastery | MEDIUM-HIGH | tool- |
| 6 | Bug Triage and Classification | MEDIUM | triage- |
| 7 | Common Bug Patterns | MEDIUM | pattern- |
| 8 | Fix Verification | MEDIUM | verify- |
| 9 | Anti-Patterns | MEDIUM | anti- |
| 10 | Prevention & Learning | LOW-MEDIUM | prev- |
prob-reproduce-before-debug - Reproduce the bug before investigatingprob-minimal-reproduction - Create minimal reproduction casesprob-document-symptoms - Document symptoms preciselyprob-separate-symptoms-causes - Separate symptoms from causesprob-state-expected-actual - State expected vs actual behaviorprob-recent-changes - Check recent changes firsthypo-scientific-method - Apply the scientific methodhypo-binary-search - Use binary search to localize bugshypo-one-change-at-time - Test one hypothesis at a timehypo-where-not-what - Find WHERE before asking WHAThypo-rule-out-obvious - Rule out obvious causes firsthypo-rubber-duck - Explain the problem aloudobs-strategic-logging - Use strategic loggingobs-log-inputs-outputs - Log function inputs and outputsobs-breakpoint-strategy - Use breakpoints strategicallyobs-stack-trace-reading - Read stack traces bottom to topobs-watch-expressions - Use watch expressions for stateobs-trace-data-flow - Trace data flow through systemrca-five-whys - Use the 5 Whys techniquerca-fault-propagation - Trace fault propagation chainsrca-last-known-good - Find the last known good staterca-question-assumptions - Question your assumptionsrca-examine-boundaries - Examine system boundariestool-conditional-breakpoints - Use conditional breakpointstool-logpoints - Use logpoints instead of modifying codetool-step-commands - Master step over/into/outtool-call-stack-navigation - Navigate the call stacktool-memory-inspection - Inspect memory and object statetool-exception-breakpoints - Use exception breakpointstriage-severity-vs-priority - Separate severity from prioritytriage-user-impact-assessment - Assess user impact before prioritizingtriage-reproducibility-matters - Factor reproducibility into triagetriage-quick-wins-first - Identify and ship quick wins firsttriage-duplicate-detection - Detect and link duplicate bug reportspattern-null-pointer - Recognize null pointer patternspattern-off-by-one - Spot off-by-one errorspattern-race-condition - Identify race condition symptomspattern-memory-leak - Detect memory leak patternspattern-type-coercion - Watch for type coercion bugspattern-async-await-errors - Catch async/await error handling mistakespattern-timezone-issues - Recognize timezone and date bugsverify-reproduce-fix - Verify with original reproductionverify-regression-check - Check for regressionsverify-understand-why-fix-works - Understand why fix worksverify-add-test - Add test to prevent recurrenceanti-shotgun-debugging - Avoid shotgun debugginganti-quick-patch - Avoid quick patches without understandinganti-tunnel-vision - Avoid tunnel vision on initial hypothesisanti-debug-fatigue - Recognize debugging fatigueanti-blame-tool - Don't blame the tool too quicklyprev-document-solution - Document bug solutionsprev-postmortem - Conduct blameless postmortemsprev-defensive-coding - Add defensive code at boundariesprev-improve-error-messages - Improve error messagesRead individual reference files for detailed explanations and code examples:
For the complete guide with all rules expanded: AGENTS.md
Weekly Installs
128
Repository
GitHub Stars
85
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code104
codex103
opencode101
gemini-cli99
github-copilot92
cursor87
Flutter/Dart代码审查最佳实践:提升应用性能与质量的完整检查清单
839 周安装
OpenGL/DirectX转Metal完整指南:GLSL/HLSL到MSL着色器转换与API映射
144 周安装
Web性能优化指南:提升Lighthouse分数,优化核心Web指标,加速网站加载
148 周安装
XSS防护指南:全面防御跨站脚本攻击的最佳实践与代码示例
145 周安装
存储过程与函数实战指南:PostgreSQL/MySQL 业务逻辑封装、性能优化与最佳实践
145 周安装
Active Directory攻击技术指南:Kerberos攻击、横向移动与权限提升实战
102 周安装
密钥管理最佳实践指南:HashiCorp Vault与AWS Secrets Manager安全配置
146 周安装