error-handling
错误处理约定(错误映射/呈现、抛出与返回的选择、面向用户的输出)。在添加错误或更改失败行为时使用。
📖 中文导读:错误处理约定(错误映射/呈现、抛出与返回的选择、面向用户的输出)。在添加错误或更改失败行为时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: error-handling description: Error-handling conventions (error mapping/presentation, what to throw vs return, user-facing output). Use when adding errors or changing failure behavior.
Error Handling
When to use
Use this when the task mentions:
- error mapping, user-facing messages, exit codes
- “how should this failure be surfaced”
- standardizing error shapes across packages
Canonical repo doc
Read your repo’s error-handling conventions doc (commonly docs/error-handling.md).