dzming/claude-code-config/error-handling
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
错误处理 SOP:7步闭环(诊断→定位→调研→方案→修复→验证→沉淀)。 触发词:报错, 错误处理, debug, 排查
Install
npx vskill@latest install dzming/claude-code-config/error-handlingSKILL.md
错误处理 SOP
7 步闭环
- 诊断:从最后一行往上读,翻译成人话
- 定位:代码逻辑错?环境配置错?数据问题?
- 调研:GitHub Issues → Stack Overflow → 官方文档(严禁凭感觉瞎改)
- 方案:改哪里?怎么改?影响什么?先
git commit备份 - 修复:一次只改一处,改完立测,最多3次
- 验证:原操作不报错 + 相关功能正常 + 全套测试通过
- 沉淀:记录到 claude-progress.txt
常见报错速查
| 报错 | 人话 | 解决 | |
|---|---|---|---|
| Cannot read property of undefined | 空杯子里找水喝 | obj?.prop 或 if (obj) | |
| Module not found | 食材没买 | npm install | |
| EADDRINUSE: port in use | 门牌号被占了 | lsof -i :端口 杀进程 | |
| CORS policy blocked | 安全门禁拦截 | 后端配 CORS 或用代理 | |
| 401 Unauthorized | 没带身份证 | 检查 Token 是否过期/正确 | |
| 404 Not Found | 地址写错了 | 检查 URL 路径 | |
| 500 Internal Server Error | 后厨着火了 | 看服务器日志 | |
| SyntaxError | 写了错别字 | 检查括号/引号/逗号 | |
| TypeError | 类型不对(用筷子喝汤) | 检查数据类型 | |
| ReferenceError: X is not defined | 用了不存在的东西 | 检查变量定义/拼写 | |
| npm ERR! peer dependency | 食材版本冲突 | --legacy-peer-deps 或升级 | |
| ENOENT: no such file | 找不到文件 | 检查路径 | |
| Timeout exceeded | 等太久了 | 检查网络/增加超时 | |
| Out of memory | 东西太多装不下 | 减少数据量/优化内存 |
调研记录格式
修复前备份
沉淀格式
红线
- 没看懂报错就开始改代码
- 一次改好几个地方
- 改完不测试就说"修好了"
- 同一错误反复尝试超过3次(应换思路或求助)
- 把报错堆栈直接甩给老板
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/error-handling/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dzming/claude-code-config/error-handling)