code-debug-companion
/install code-debug-companion
Code Debug Companion - AI 智能代码调试助手
概述
这是一个完整的代码调试工作流,将错误捕获、解决方案研究、代码修复和测试验证串联起来,帮助开发者快速定位并解决 Bug。
工作流程
[错误信息/截图]
↓
[Code Review 分析错误原因]
↓
[Web Search 搜索类似问题/解决方案]
↓
[生成修复方案 + 单元测试]
↓
[写入修复代码 + 测试报告]
核心 Skill 编排
| Skill | 职责 |
|---|---|
| code-review | 分析错误类型、定位根因、识别代码问题 |
| brave-search | 搜索 StackOverflow/GitHub/文档中的类似问题 |
| setup-unit-test | 生成修复验证的单元测试用例 |
| github-issues | 有用的解决方案创建 Issue 跟踪 |
使用方法
场景 1:粘贴错误信息调试
调试以下错误:
TypeError: Cannot read property 'map' of undefined
at Array.reduce (src/utils.ts:42:18)
at processData (src/handlers.ts:15:7)
场景 2:截图调试
直接发送错误截图或终端输出,助手自动解析并开始调试流程。
场景 3:批量调试
粘贴整个错误堆栈,助手按优先级排序后逐个修复。
输出格式
修复完成后输出:
🐛 问题诊断:[错误类型 + 根因分析]
🔍 类似问题:搜索到 N 条相关讨论
✅ 修复方案:[具体修改内容]
🧪 测试用例:已生成 N 个测试覆盖此场景
📁 修改文件:列出所有变更文件
支持语言
JavaScript / TypeScript / Python / Go / Rust / Java / C++
示例对话
用户: 调试这个错误:AssertionError: expected function to throw Error
助手: 分析 → 搜索 → 修复 → 测试,一站式完成。
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install code-debug-companion - After installation, invoke the skill by name or use
/code-debug-companion - Provide required inputs per the skill's parameter spec and get structured output
What is code-debug-companion?
AI 驱动的智能代码调试助手,自动诊断错误、搜索解决方案、修复代码并验证。 It is an AI Agent Skill for Claude Code / OpenClaw, with 64 downloads so far.
How do I install code-debug-companion?
Run "/install code-debug-companion" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is code-debug-companion free?
Yes, code-debug-companion is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does code-debug-companion support?
code-debug-companion is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created code-debug-companion?
It is built and maintained by zlszhonglongshen (@zlszhonglongshen); the current version is v1.0.0.