AGENT SKILL

review-error-handling

Review error handling consistency and debuggability

License 许可
MIT
所属仓库
yida29/archrip
最近更新
2026-11-12
Stars
★ 1
Forks
0

01 前言 Front Matter

name
review-error-handling
description
Review error handling consistency and debuggability
argument-hint
[scope: git diff | path | PR | notes]
user-invocable
true

02 资源文件 2

03 SKILL.md 正文

Error handling review — consistency, propagation, debuggability

Review the target codebase for error-handling quality: how errors are created, wrapped, displayed, and surfaced.

What to look for

  • Inconsistent patterns: process.exit, throw, return error, swallowed exceptions
  • External command execution failures lacking stdout/stderr context
  • Errors without next-step guidance (what user should do)
  • Catch-all handlers that hide non-user-interrupt failures
  • UI/API boundaries where an error loses its root cause

Output format

  1. Findings (priority order)
    • Evidence: file paths + patterns used
    • User impact (hard to debug / wrong exit code / silent failure)
  2. Recommended conventions
    • Where to terminate (only at entrypoints)
    • Error shape (message + cause + hints)
  3. Smallest change set to align behavior

$ARGUMENTS

04 同仓库更多 Skills