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
此技能提供一套進階財務建模工具,包含現金流折現分析、敏感度測試、蒙地卡羅模擬及情境規劃,適用於投資…
official
action-creator
anthropic
建立使用者專屬的一鍵動作模板,點擊後可在聊天介面中執行電子郵件操作。當使用者想要可重複使用的動作時使用…
official
docx
anthropic
全面的文件創建、編輯與分析,支援追蹤修訂、註解、格式保留及文字擷取。當Claude…
official
executive-briefing
anthropic
將研究發現轉化為可供高階主管使用的簡報。當使用者提及「executive」、「briefing」、「C-suite」、「board」等詞時自動啟用。
official