debug
bởi anthropic
Phiên gỡ lỗi có cấu trúc — tái hiện, cô lập, chẩn đoán và sửa lỗi. Kích hoạt bằng thông báo lỗi hoặc dấu vết ngăn xếp, "cái này hoạt động ở môi trường staging nhưng không ở prod",…
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.
Thêm skills từ anthropic
comps-analysis
anthropic
LUÔN tuân theo thứ tự ưu tiên nguồn dữ liệu sau:
official
analyzing-financial-statements
anthropic
Kỹ năng này tính toán các tỷ số và chỉ số tài chính chính từ dữ liệu báo cáo tài chính để phân tích đầu tư.
official
applying-brand-guidelines
anthropic
Kỹ năng này áp dụng nhận diện thương hiệu và phong cách doanh nghiệp nhất quán cho tất cả tài liệu được tạo ra, bao gồm màu sắc, phông chữ, bố cục và thông điệp.
official
cookbook-audit
anthropic
Kiểm tra một notebook trong Anthropic Cookbook dựa trên tiêu chí đánh giá. Sử dụng khi có yêu cầu xem xét hoặc kiểm tra notebook.
official
creating-financial-models
anthropic
Kỹ năng này cung cấp bộ công cụ lập mô hình tài chính nâng cao với phân tích DCF, kiểm tra độ nhạy, mô phỏng Monte Carlo và lập kế hoạch kịch bản cho đầu tư…
official
action-creator
anthropic
Tạo các mẫu hành động một cú nhấp chuột dành riêng cho người dùng, thực thi các thao tác email khi được nhấp trong giao diện trò chuyện. Sử dụng khi người dùng muốn các hành động có thể tái sử dụng cho…
official
docx
anthropic
Tạo, chỉnh sửa và phân tích tài liệu toàn diện với hỗ trợ theo dõi thay đổi, nhận xét, bảo toàn định dạng và trích xuất văn bản. Khi Claude…
official
executive-briefing
anthropic
Chuyển đổi các phát hiện nghiên cứu thành bản tóm tắt dành cho lãnh đạo. Tự động kích hoạt khi người dùng đề cập đến 'executive', 'briefing', 'C-suite', 'board',…
official