← 返回
未分类

Bug 根因定位与修复助手

Diagnose software bugs with a root-cause-first workflow. Reproduce issues, narrow failure scope, identify root cause, propose minimal safe fixes, and generate verification steps. Use when users report errors, failing tests, regressions, crashes, or unexpected behavior.
Diagnose software bugs with a root-cause-first workflow. Reproduce issues, narrow failure scope, identify root cause, propose minimal safe fixes, and generate verification steps. Use when users report errors, failing tests, regressions, crashes, or unexpected behavior.
ztskills
未分类 community v1.0.0 1 版本 99082.6 Key: 无需
★ 0
Stars
📥 108
下载
💾 3
安装
1
版本
#latest

概述

Bug 根因定位与修复助手

Goal

用最短路径定位根因,给出最小可行修复,并保证可验证。

Use When

  • 报错日志、测试失败、线上回归、功能异常
  • “这个为什么坏了”“帮我修一下但别影响其它功能”

Required Inputs

  • 错误信息(栈追踪/报错文案)
  • 复现步骤(输入、环境、预期 vs 实际)
  • 相关代码路径(若有)
  • 约束(不能改接口/不能改数据库结构等)

If missing, ask at most 3 focused questions, then continue with best assumptions.

Workflow

  1. 复现与边界确认
    • 明确复现条件、影响范围、是否稳定复现
  2. 根因定位
    • 先排高概率:空值、类型、边界、状态同步、时序、配置
    • 给出“证据链”,不要只给猜测
  3. 修复方案
    • 优先最小改动,避免扩散
    • 明确为何不会引入回归
  4. 验证方案
    • 提供手动验证步骤
    • 补充最小必要测试用例
  5. 风险说明
    • 列出残余风险和观察点

Output Contract

  1. 问题复述(1-2句)
  2. 根因(带证据)
  3. 修复改动点(文件/逻辑)
  4. 验证清单(手测 + 自动化)
  5. 风险与回滚建议(如需要)

Style Rules

  • 先结论后过程
  • 不输出大而空的“可能原因清单”
  • 每条建议都要可执行

Guardrails

  • 不做破坏性建议(如盲目删除核心逻辑)
  • 不建议跳过测试或忽略错误
  • 如证据不足,明确假设并标注待确认项

版本历史

共 1 个版本

  • v1.0.0 Initial release 当前
    2026-04-17 16:24 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

API 集成开发助手

user_ffcaaae9
Build robust API integrations end-to-end, including request/response schema handling, auth strategy, retries, timeout, i
★ 0 📥 114

通用编辑器效率套件

user_ffcaaae9
Unified editor-agnostic productivity suite for mainstream code editors. Use when users want practical workflows to impro
★ 0 📥 89

短视频脚本与矩阵内容工厂

user_ffcaaae9
End-to-end short-video growth suite for Chinese creator and business scenarios. Generates topic strategy, shot-by-shot s
★ 1 📥 372