超能力调试

人工智能 社区

技能解读

当前原文的自动摘译,尚未人工审校。

何时使用该技能

运行时错误、片状测试、错误输出“它曾经有效”回归性能或超时问题(初始分类)

调试工作流程(不要跳过步骤)

重现捕获准确的错误、输入、环境、命令。最小化 减少到最小的重现(一个文件,一个函数,最小的数据集)。假设 (2–5)

报告格式

症状 重现步骤 根本原因 修复 回归保护

流狐档案 运行与权限由流狐静态检查推断,不代表作者声明或实际测试结果。
领域
人工智能
作者声明的智能体
未找到明确声明;不据此推断已兼容或已测试
静态检查
88 / 100 · 启发式扫描,不代表运行安全
运行环境证据
未执行;当前没有隔离运行测试证据
作者 / 版本 / 许可证
@anthonylee991 · 未声明许可证
上下文用量评级
低消耗
接入复杂程度
即装即用
是否需要外部接口密钥
不需要
兼容的系统
未声明(默认跨平台)
运行环境要求
未检出明确要求
检测到的文件与系统行为
  • 只读
网络行为
仅限本地
安装命令数
无(仅作为资料)

需要注意: 未声明工具权限范围;实际权限由运行环境决定。

作者说明文件(原文) SKILL.md

# Debug Skill

## When to use this skill
- runtime errors, flaky tests, wrong outputs
- “it used to work” regressions
- performance or timeout problems (initial triage)

## Debug workflow (do not skip steps)
1. **Reproduce**
   - Capture exact error, inputs, environment, command.
2. **Minimize**
   - Reduce to smallest repro (one file, one function, smallest dataset).
3. **Hypotheses (2–5)**
   - Rank by likelihood.
4. **Instrument**
   - Add temporary logging/assertions or use existing diagnostics.
5. **Fix**
   - Smallest change that removes root cause.
6. **Prevent**
   - Add regression test or permanent guard/validation.
7. **Verify**
   - Run the failing case + relevant suites.

## Reporting format
- Symptom
- Repro steps
- Root cause
- Fix
- Regression protection
- Verification

讨论

基于 GitHub Discussions。登录 GitHub 即可参与讨论、点赞、订阅更新。