调试与错误恢复
原名:debugging-and-error-recovery
用可重复的排查步骤定位根因,并验证修复是否真正生效。
中文 Skills 技能说明
当程序报错、构建失败或行为与预期不一致时使用。流程强调复现、收集证据、缩小范围、修复与回归验证,不会用猜测代替诊断。
上游能力依据
上游原始适用说明:Guides systematic root-cause debugging. Use when tests fail, builds break, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need a systematic approach to finding and fixing the root cause rather than guessing.
上游 SKILL.md 主要章节(保留原文标题):
- Overview
- When to Use
- The Stop-the-Line Rule
- The Triage Checklist
- Step 1: Reproduce
- Step 2: Localize
- Step 3: Reduce
- Step 4: Fix the Root Cause
- Step 5: Guard Against Recurrence
- Step 6: Verify End-to-End
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- Addy Osmani
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/addyosmani/agent-skills/tree/f49337711b7a932b4b338c1d4ad73384df8fd87d/skills/debugging-and-error-recovery
适用范围
平台:linux、macos、windows;标签:Debugging、Errors、Recovery
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。