debug
作者: anthropic
结构化调试会话——复现、隔离、诊断并修复。通过错误信息或堆栈跟踪触发,例如“在预发布环境正常但生产环境异常”,……
npx skills add https://github.com/anthropics/knowledge-work-plugins --skill debug/debug
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.
Usage
/debug $ARGUMENTS
How It Works
┌─────────────────────────────────────────────────────────────────┐
│ 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 │
└─────────────────────────────────────────────────────────────────┘
What I Need From You
Tell me about the problem. Any of these help:
- Error message or stack trace
- Steps to reproduce
- What changed recently
- Logs or screenshots
- Expected vs. actual behavior
Output
## 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 Connectors Available
If ~~monitoring is connected:
- Pull logs, error rates, and metrics around the time of the issue
- Show recent deploys and config changes that may correlate
If ~~source control is connected:
- Identify recent commits and PRs that touched affected code paths
- Check if the issue correlates with a specific change
If ~~project tracker is connected:
- Search for related bug reports or known issues
- Create a ticket for the fix once identified
Tips
- Share error messages exactly — Don't paraphrase. The exact text matters.
- Mention what changed — Recent deploys, dependency updates, and config changes are top suspects.
- Include context — "This works in staging but not prod" or "Only affects large payloads" narrows things fast.
来自 anthropic 的更多技能
comps-analysis
anthropic
始终遵循此数据源层级:
official
analyzing-financial-statements
anthropic
该技能从财务报表数据中计算关键财务比率和指标,用于投资分析。
official
applying-brand-guidelines
anthropic
该技能为所有生成的文档应用一致的企业品牌和样式,包括颜色、字体、布局和信息传达。
official
cookbook-audit
anthropic
根据评分标准审核Anthropic Cookbook笔记本。每当请求笔记本审核或审计时使用。
official
creating-financial-models
anthropic
该技能提供了一套高级财务建模工具,包括DCF分析、敏感性测试、蒙特卡洛模拟以及投资情景规划等功能。
official
action-creator
anthropic
创建用户专属的一键操作模板,在聊天界面点击即可执行邮件操作。当用户需要可复用的操作时使用…
official
docx
anthropic
全面的文档创建、编辑和分析,支持修订、批注、格式保留和文本提取。当Claude…
official
executive-briefing
anthropic
将研究发现转化为可供高管使用的简报。当用户提及“executive”、“briefing”、“C-suite”、“board”等词时自动激活。
official