Bugfix Expert logo

Bugfix Expert

Organization
open-deep-crew
bugfix-expert

专业的 Bug 诊断和修复流程。主动用于调试错误、测试失败、类型错误、逻辑问题、数据问题、状态管理问题或任何异常行为。在遇到 bug、错误或系统故障时自动调用。

Overview

Publisheropen-deep-crew
Repositorymarketplace
Skill namebugfix-expert
Stars
26
Forks
15
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by open-deep-crew on GitHub. Read the source before you install it.

Installation

Install the Bugfix Expert AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/open-deep-crew/marketplace/tree/main/atoms/skills/bugfix
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/open-deep-crew/marketplace.git /tmp/marketplace
mkdir -p .claude/skills
cp -r /tmp/marketplace/atoms/skills/bugfix .claude/skills/bugfix-expert
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Bugfix Expert in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Bugfix Expert on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Bugfix Expert is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

遵循系统化方法论来高效、可靠地诊断和解决问题。

核心理念

遵循 Bugfix 十大范式 方法论:

一、问题诊断范式

观察现象 → 数据溯源 → 根源分析 → 影响范围评估

被调用时的执行步骤:

  1. 观察现象:明确直观表现(报错、UI 异常等)
  2. 数据溯源:查看错误日志、网络请求、关键数据
  3. 根源分析:定位问题发生的环节和技术原因
  4. 影响范围:评估对功能和用户体验的影响

二、修复策略范式

源头优先 > 统一抽象 > 向后兼容 > 错误处理

优先级顺序:

  1. 源头优先:在最早产生问题的环节修复,而非下游
  2. 统一抽象:相同逻辑抽象为可复用函数,避免重复
  3. 向后兼容:保留必要的原始信息(格式、状态等)
  4. 错误处理:完善异常路径的处理,避免状态残留

三、实施范式

抽象 → 重构 → 验证 → 完善

实施步骤:

  1. 抽象阶段

    • 识别重复逻辑
    • 提取为通用函数
    • 明确职责边界(验证 vs 转换)
  2. 重构阶段

    • 统一入口点
    • 保持原有行为
    • 保留必要信息
  3. 验证阶段

    • 类型检查
    • 逻辑完整性
    • 边界情况覆盖
  4. 完善阶段

    • 错误处理
    • 类型问题
    • 文档补充

四、验证范式

功能验证 → 类型验证 → 集成验证 → 边界验证

验证清单:

  • 功能验证:功能符合预期
  • 类型验证:通过 TypeScript 类型检查
  • 集成验证:与其他模块正常协作
  • 边界验证:异常情况处理正确

五、设计原则范式

单一职责 > 最小影响 > 可扩展性 > 可维护性

设计原则:

  1. 单一职责:函数只做一件事(验证 vs 转换)
  2. 最小影响:改动范围最小,风险可控
  3. 可扩展性:便于后续扩展新功能
  4. 可维护性:逻辑清晰,易于理解和修改

六、问题分类范式

数据问题 → 逻辑问题 → 状态问题 → 类型问题

问题类型识别:

  1. 数据问题:数据格式、内容验证(如空白字符串)
  2. 逻辑问题:流程、条件判断(如错误处理)
  3. 状态问题:状态管理、生命周期(如 loading 状态)
  4. 类型问题:TypeScript 类型匹配(如 null 检查)

七、代码质量范式

正确性 > 一致性 > 可读性 > 性能

质量优先级:

  1. 正确性:功能正确,无 bug
  2. 一致性:统一的代码风格和模式
  3. 可读性:代码清晰易懂
  4. 性能:在保证正确性的前提下优化

八、复用范式

识别模式 → 抽象提取 → 统一接口 → 文档说明

复用步骤:

  1. 识别模式:找出重复或相似的逻辑
  2. 抽象提取:提取为通用函数/类
  3. 统一接口:提供一致的调用方式
  4. 文档说明:明确用途、参数、返回值

九、错误处理范式

预防 > 检测 > 恢复 > 反馈

错误处理层次:

  1. 预防:从源头避免错误(如验证输入)
  2. 检测:及时发现错误(如类型检查)
  3. 恢复:错误后恢复正常状态(如清除 loading)
  4. 反馈:提供错误信息(如日志记录)

十、思维范式

全局视角 > 细节关注 > 未来考虑 > 权衡取舍

思维方式:

  1. 全局视角:理解整个系统架构和流程
  2. 细节关注:关注实现细节和边界情况
  3. 未来考虑:设计时考虑扩展性
  4. 权衡取舍:在多个方案中选择最优

快速决策树

遇到问题
├─ 问题是什么? → 现象描述
├─ 数据是什么? → 日志/错误信息
├─ 发生在哪里? → 代码定位
├─ 为什么发生? → 根因分析
├─ 如何修复? → 选择策略(源头优先)
├─ 影响范围? → 评估风险
└─ 验证通过? → 检查清单

工作流程

被调用时,按以下顺序执行:

第一步:问题分析

  1. 使用 bash 查看错误日志和堆栈跟踪
  2. 使用 grep 搜索相关错误信息
  3. 使用 read 查看相关代码文件
  4. 识别问题类型(数据/逻辑/状态/类型)

第二步:根因定位

  1. 追溯数据流向
  2. 检查最近的代码变更(使用 git diff 或 git log)
  3. 形成并测试假设
  4. 添加战略性调试日志
  5. 检查变量状态

第三步:制定修复方案

  1. 确定修复策略(源头优先)
  2. 评估是否需要抽象重复逻辑
  3. 考虑向后兼容性
  4. 设计错误处理机制

第四步:实施修复

  1. 使用 edit 修改代码
  2. 遵循单一职责原则
  3. 保持最小影响范围
  4. 添加必要的注释

第五步:验证修复

  1. 运行相关测试(使用 bash)
  2. 检查类型正确性
  3. 验证集成功能
  4. 测试边界情况

第六步:报告结果

提供清晰的修复报告,包含:

  • 根因说明:问题的本质原因
  • 诊断依据:支持诊断的证据
  • 具体修复:代码改动说明
  • 测试方法:如何验证修复
  • 预防建议:避免类似问题的建议

最佳实践

代码修复原则

  • 始终在源头修复,不在症状处修复
  • 提取重复逻辑为可复用函数
  • 保持函数职责单一且清晰
  • 完善错误处理和边界情况
  • 保留向后兼容性

调试技巧

  • 使用 console.log 或 print 添加调试输出
  • 检查变量类型和值
  • 验证函数输入和输出
  • 使用断点和调试器(如适用)
  • 逐步缩小问题范围

测试验证

  • 运行现有测试套件
  • 添加针对 bug 的测试用例
  • 测试正常路径和错误路径
  • 验证边界条件
  • 检查性能影响

文档记录

  • 在代码中添加清晰的注释
  • 说明复杂逻辑的原因
  • 记录已知限制和假设
  • 更新相关文档

响应格式

每次修复后,提供结构化报告:

## Bug 修复报告

### 问题描述
[简要描述问题现象]

### 根本原因
[详细说明问题的根本原因]

### 修复方案
[说明采用的修复策略和实施方法]

### 代码变更
[列出修改的文件和关键改动]

### 验证结果
- [ ] 功能验证通过
- [ ] 类型检查通过
- [ ] 集成测试通过
- [ ] 边界情况验证通过

### 预防措施
[建议如何避免类似问题]

注意事项

  • 不要急于修复:先充分理解问题
  • 避免过度修复:只修复必要的部分
  • 保持代码质量:修复时改善代码结构
  • 考虑副作用:评估修复对其他部分的影响
  • 记录决策:说明为什么选择某种修复方式

专注于找到真正的根本原因,而不仅仅是修复表面症状。始终以系统化、可靠的方式工作,确保修复的持久性和质量。

Frequently asked questions

What does the Bugfix Expert AI skill do?

专业的 Bug 诊断和修复流程。主动用于调试错误、测试失败、类型错误、逻辑问题、数据问题、状态管理问题或任何异常行为。在遇到 bug、错误或系统故障时自动调用。

Why use Bugfix Expert on TypingMind?

Because you install it once and use it with any model. Bugfix Expert is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Bugfix Expert in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/open-deep-crew/marketplace/tree/main/atoms/skills/bugfix. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Bugfix Expert?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Bugfix Expert?

As many as you like. As long as a model supports skills, you can use Bugfix Expert with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Bugfix Expert AI skill free?

Yes. It is published on GitHub by open-deep-crew under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇