帮助你系统复现、定位并修复代码或环境中的复杂故障问题。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "debug" 技能: 1. 下载 https://raw.githubusercontent.com/anthropics/knowledge-work-plugins/main/engineering/skills/debug/SKILL.md 2. 保存为 ~/.claude/skills/debug/SKILL.md 3. 装好后重载技能,告诉我可以用了
这是生产环境报错日志和堆栈信息,请按“复现步骤、可能根因、验证方法、修复建议、风险检查”结构帮我系统排查,并优先给出最可能原因:\n[粘贴错误日志/stack trace]
一份结构化排查结果,包含高概率根因、验证步骤、修复方案与上线前检查项。
这个功能在 staging 正常、在 prod 异常。请帮我设计一套排查流程,比较配置、依赖、数据、缓存、权限、网络和构建差异,并给出最小验证实验。背景如下:\n[描述现象和环境信息]
一套按优先级排序的环境差异排查清单,以及可快速验证假设的实验步骤。
部署后某个功能异常,请根据变更内容帮我判断是否为回归问题,并输出“受影响范围、可疑提交类型、回滚建议、修复路径、后续预防措施”。变更摘要如下:\n[粘贴 deploy 说明、提交记录或 PR 摘要]
一份面向回归故障的分析结论,帮助快速决定回滚、修复和后续防护方案。
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Run a structured debugging session to find and fix issues systematically.
/debug $ARGUMENTS
┌─────────────────────────────────────────────────────────────────┐
│ DEBUG │
├─────────────────────────────────────────────────────────────────┤
│ Step 1: REPRODUCE │
│ ✓ Understand the expected vs. actual behavior │
│ ✓ Identify exact reproduction steps │
│ ✓ Determine scope (when did it start? who is affected?) │
│ │
│ Step 2: ISOLATE │
│ ✓ Narrow down the component, service, or code path │
│ ✓ Check recent changes (deploys, config changes, dependencies) │
│ ✓ Review logs and error messages │
│ │
│ Step 3: DIAGNOSE │
│ ✓ Form hypotheses and test them │
│ ✓ Trace the code path │
│ ✓ Identify root cause (not just symptoms) │
│ │
│ Step 4: FIX │
│ ✓ Propose a fix with explanation │
│ ✓ Consider side effects and edge cases │
│ ✓ Suggest tests to prevent regression │
└─────────────────────────────────────────────────────────────────┘
Tell me about the problem. Any of these help:
## Debug Report: [Issue Summary]
### Reproduction
- **Expected**: [What should happen]
- **Actual**: [What happens instead]
- **Steps**: [How to reproduce]
### Root Cause
[Explanation of why the bug occurs]
### Fix
[Code changes or configuration fixes needed]
### Prevention
- [Test to add]
- [Guard to put in place]
If ~~monitoring is connected:
If ~~source control is connected:
If ~~project tracker is connected:
围绕客户问题进行多来源调研与溯源,快速整理背景并支持准确回复。
系统化定位 bug、测试失败与异常行为,并在修复前梳理原因与排查步骤。