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-handling

SKILL.md

错误处理 SOP

7 步闭环

  1. 诊断:从最后一行往上读,翻译成人话
  2. 定位:代码逻辑错?环境配置错?数据问题?
  3. 调研:GitHub Issues → Stack Overflow → 官方文档(严禁凭感觉瞎改)
  4. 方案:改哪里?怎么改?影响什么?先 git commit 备份
  5. 修复:一次只改一处,改完立测,最多3次
  6. 验证:原操作不报错 + 相关功能正常 + 全套测试通过
  7. 沉淀:记录到 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东西太多装不下减少数据量/优化内存

调研记录格式

搜索关键词:[你搜的内容]
参考链接:[找到的链接]
解决思路:[总结方法]

修复前备份

bash
git add . && git commit -m "chore: 修复前备份"

沉淀格式

markdown
> **遇到的坑**:
> **[报错名称]**
> - 现象:[描述]
> - 原因:[根因]
> - 解决:[方案]
> - 教训:[经验]

红线

  • 没看懂报错就开始改代码
  • 一次改好几个地方
  • 改完不测试就说"修好了"
  • 同一错误反复尝试超过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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dzming/claude-code-config/error-handling/badge)](https://verified-skill.com/skills/dzming/claude-code-config/error-handling)

Something wrong with this skill or its page? Tell us.