← Back to Skills Marketplace
zlszhonglongshen

code-debug-companion

by zlszhonglongshen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
64
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install code-debug-companion
Description
AI 驱动的智能代码调试助手,自动诊断错误、搜索解决方案、修复代码并验证。
README (SKILL.md)

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

助手: 分析 → 搜索 → 修复 → 测试,一站式完成。

Usage Guidance
Install only if you are comfortable with a debugging assistant that may search externally and propose or make project changes. Use it in a version-controlled workspace, review diffs before accepting edits, avoid sending proprietary stack traces or secrets to search, and require confirmation before file writes or GitHub issue creation.
Capability Assessment
Purpose & Capability
The stated purpose matches the workflow: diagnose errors, search for fixes, generate repairs, create tests, and report changed files. The same workflow includes state-changing code/test generation and possibly GitHub issue creation.
Instruction Scope
Triggers such as debug, 修复, and 报错 are broad for a workflow that may proceed into code changes, test-file creation, web search, and issue tracking without clearly requiring explicit user approval first.
Install Mechanism
The artifact contains markdown and JSON only, with no executable installer, dependency package, background service, or package-install step.
Credentials
External search is coherent for debugging, but the artifact does not define redaction or opt-in boundaries for stack traces, paths, logs, code snippets, or internal identifiers that may be used as search input.
Persistence & Privilege
No persistence, privilege escalation, credential harvesting, or background execution is shown. The notable authority is project mutation and possible external issue creation, not durable local persistence.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install code-debug-companion
  3. After installation, invoke the skill by name or use /code-debug-companion
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of code-debug-companion: - Provides an AI-driven workflow for automatic code error diagnosis, solution research, code fixing, and validation. - Supports error handling via pasted messages, screenshots, or full error stacks. - Integrates code review, web search, unit test generation, and GitHub issue tracking skills. - Outputs concise diagnosis, related discussions, fix details, test coverage, and affected files. - Supports multiple programming languages including JavaScript, TypeScript, Python, Go, Rust, Java, and C++.
Metadata
Slug code-debug-companion
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments