这是一个基于 VS Code Agent Skills 标准的代码调试技能,将原有的 debug-system 工作流重构为符合 agentskills.io 规范的可复用技能包。
- 系统化调试: 采用6步调试循环(计划→分析→修正→执行→检查→记录)
- 多轮迭代: 支持复杂问题的多轮渐进式调试
- 人工确认: 关键节点暂停等待用户确认
- Bug管理: 集成Bug追踪和状态管理
- 经验沉淀: 记录调试过程和经验教训
debug_code/
├── SKILL.md # 技能定义文件(Agent Skills 标准)
├── README.md # 本说明文档
├── templates/ # 调试模板
│ ├── debug-round-record.md # 调试轮次记录
│ ├── bug-detail.md # Bug详细报告
│ ├── bug-list.md # Bug清单管理
│ ├── debug-summary.md # 调试总结
│ ├── lessons-learned.md # 经验教训
│ └── task-index.md # 任务索引
└── examples/ # 使用示例
└── README.md # 示例说明
确保在 VS Code 设置中启用了 Agent Skills:
{
"chat.useAgentSkills": true
}在 Copilot Chat 中使用自然语言描述问题:
我的程序报错 TypeError,帮我调试一下
这个函数运行结果不对,需要排查问题
数据库连接失败,帮我找出原因
6步调试循环:
📋 计划 ──→ 🔍 分析 ──→ 💡 修正
↑ ↓
│ ↓
📊 记录 ←── ✅ 检查 ←── ⚙️ 执行
│
↓
🎯 下轮目标 ← 暂停点(需用户确认)
- 步骤3: 确认问题信息后暂停
- 6.6记录: 规划下轮目标后暂停
- 步骤7: 完成决策前暂停
| 对比项 | debug-system | debug_code skill |
|---|---|---|
| 标准 | 自定义工作流格式 | Agent Skills 开放标准 |
| 加载方式 | 手动引用模板 | Copilot 按需自动加载 |
| 可移植性 | VS Code 内使用 | 跨 AI 工具使用 |
| 位置 | debug-system/ |
.github/skills/debug_code/ |
This is a code debugging skill based on the VS Code Agent Skills standard, refactoring the original debug-system workflow into a reusable skill package compliant with agentskills.io specification.
- Systematic Debugging: 6-step debug cycle (Plan→Analyze→Design→Execute→Verify→Document)
- Multi-round Iteration: Support progressive debugging for complex issues
- Human Confirmation: Pause at key points for user confirmation
- Bug Management: Integrated bug tracking and status management
- Experience Capture: Record debugging process and lessons learned
debug_code/
├── SKILL.md # Skill definition (Agent Skills standard)
├── README.md # This documentation
├── templates/ # Debug templates
└── examples/ # Usage examples
Enable in VS Code settings:
{
"chat.useAgentSkills": true
}Use natural language in Copilot Chat:
My program throws a TypeError, help me debug
This function returns wrong results, need to investigate
6-step Debug Cycle:
📋 Plan ──→ 🔍 Analyze ──→ 💡 Design
↑ ↓
│ ↓
📊 Document ←── ✅ Verify ←── ⚙️ Execute
版本: 1.0.0 | 基于 Copilot 工作流系统 debug-system