AgentSkillsCN

error-handling

错误处理约定(错误映射/展示、抛出与返回的选择、面向用户的输出)。在添加错误或更改失败行为时使用。

SKILL.md
--- frontmatter
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).