SY

systematic-debug

A structured debugging workflow requiring evidence-based hypothesis testing and minimal-impact fixes.

Install

mkdir -p .claude/skills/systematic-debug && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17534" && unzip -o skill.zip -d .claude/skills/systematic-debug && rm skill.zip

Installs to .claude/skills/systematic-debug

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

系统化调试技能 - 按证据驱动流程定位和修复bug
25 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Collect evidence for bug reports (logs, stack traces, screenshots)
  • Narrow down the scope of a bug to specific files and functions
  • Formulate root-cause hypotheses for bugs
  • Verify hypotheses by adding log statements or checking tests
  • Implement minimal fixes for identified bugs
  • Validate fixes by running builds and existing tests

How it works

This skill guides a systematic debugging process, starting with evidence collection, narrowing the scope, formulating and verifying hypotheses, implementing minimal fixes, and finally validating the solution.

Inputs & outputs

You give it
User describes a bug or abnormal behavior
You get back
A verified fix for the bug, with manual testing steps for the user

When to use systematic-debug

  • Systematically debug bug
  • Analyze stack trace
  • Verify fix impact
  • Troubleshoot crashes

About this skill

系统化调试技能

当用户描述一个 bug 或异常行为时,按以下流程执行:

第一步:收集证据

  1. 让用户描述:预期行为 vs 实际行为
  2. 收集错误日志、堆栈跟踪、截图
  3. 确认复现条件(设备/操作步骤/频率)
  4. grep_search 在代码中搜索相关错误信息和关键字

第二步:缩小范围

  1. 根据错误信息定位到具体文件和函数
  2. view_code_item 阅读相关代码,理解调用链
  3. 画出调用链路:入口 → 中间层 → 出错点
  4. 识别可能的竞态条件、空值、类型错误

第三步:提出假设

  1. 列出 2-3 个最可能的根因假设
  2. 为每个假设说明:
    • 为什么认为这是原因
    • 如何验证/排除
  3. 按可能性排序

第四步:验证假设

  1. 添加日志语句验证假设(标记为 // DEBUG-TEMP
  2. 阅读相关测试文件,检查是否有覆盖
  3. 对比类似功能的正常实现(如果有)
  4. 如果项目有其他参考实现(如 nekobox),对比关键差异

第五步:实施修复

  1. 编写最小化修复(不要过度重构)
  2. 所有修改标注 // fix: [issue描述] 注释
  3. 确保修复不引入新问题(检查调用方)
  4. 清理第四步添加的 // DEBUG-TEMP 日志

第六步:验证修复

  1. 运行编译确认无语法错误
  2. 运行现有测试(如果有)
  3. 列出手动测试步骤让用户验证
  4. 检查边界情况和并发场景

注意事项

  • 不要猜测:每一步都要基于代码证据
  • 不要过度修复:只修改导致 bug 的代码,不要顺便重构
  • 保留上下文:在 walkthrough 中记录发现和修复过程
  • Android 特别注意:多进程通信、生命周期、主线程阻塞

When not to use it

  • When a bug fix requires extensive refactoring beyond minimal changes

Limitations

  • Emphasizes minimal fixes, not extensive refactoring
  • Requires evidence-based decisions at each step
  • Focuses on locating and fixing bugs, not general code improvements

How it compares

This skill provides a structured, evidence-driven approach to debugging, minimizing guesswork and ensuring thorough verification, which is more reliable than ad-hoc troubleshooting.

Compared to similar skills

systematic-debug side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
systematic-debug (this skill)05moNo flagsIntermediate
godot1,0444moReviewIntermediate
python-testing-patterns772moReviewIntermediate
error-handling-patterns352moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

1,0441,947

python-testing-patterns

wshobson

Implement comprehensive testing strategies with pytest, fixtures, mocking, and test-driven development. Use when writing Python tests, setting up test suites, or implementing testing best practices.

77204

error-handling-patterns

wshobson

Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.

35170

chrome-devtools

mrgoonie

Browser automation, debugging, and performance analysis using Puppeteer CLI scripts. Use for automating browsers, taking screenshots, analyzing performance, monitoring network traffic, web scraping, form automation, and JavaScript debugging.

41157

unreal-engine-cpp-pro

sickn33

Expert guide for Unreal Engine 5.x C++ development, covering UObject hygiene, performance patterns, and best practices.

43117

python-performance-optimization

wshobson

Profile and optimize Python code using cProfile, memory profilers, and performance best practices. Use when debugging slow Python code, optimizing bottlenecks, or improving application performance.

27131

Search skills

Search the agent skills registry