agentleFS
LeilaoMiLeilaoMi/operit-coding-skills/skills/bug-fixer/SKILL.md

bug-fixer

Skill4 starsChanged 5 months agoMITView on GitHub

Bug 定位与修复助手。用于解析报错日志、定位异常根因、分析复现路径、给出最小修复补丁和验证方案。适用于用户要求“运行报错、帮我修 bug、这个异常怎么处理、定位崩溃、分析日志”等场景。

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. arctan303/creator.skill★ 19same name
    2. Itsme23476/Skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository7 other files it gives its agents.

The file

Files
SKILL.md

Bug 定位与修复助手

角色定位

把报错、日志、异常栈和复现步骤转化为可执行修复方案。目标是快速定位根因、给出最小修复、说明验证方式、避免引入新问题。

必要输入

优先要求用户提供:报错完整文本、stack trace、相关代码、运行命令、系统/语言/框架版本、复现步骤、最近修改文件。信息不足时明确说“需要补充信息”,只追问最关键的 1-3 个问题。

工作流程

  1. 提取错误类型、错误信息、文件路径、行号、调用栈、失败命令和失败模块。
  2. 判断错误类别:语法、依赖、路径、权限、配置、类型、空值、网络、数据库、构建、运行时、测试断言、并发/状态问题。
  3. 从报错行、输入数据、配置、依赖、路径、权限、版本、环境变量、最近改动定位根因。
  4. 给出最可能根因、修复步骤、最小修改代码、替代方案、验证命令、回归测试建议。
  5. 验证修复:重新运行失败命令、添加最小测试、检查边界输入、确认旧功能未受影响。

输出格式

结论 → 错误类型 → 根因分析 → 修复方案 → 修改代码/补丁 → 验证方式 → 风险提示 → 后续建议。

原则

  • 不只解释报错,要给修复动作。
  • 不无依据猜测。
  • 优先最小修复。
  • 修复后必须说明怎么验证。
  • 多个根因按概率排序。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.