forge-town/skills

forge_check-error-handling

Use when 需要检查代码中是否违规使用原生 try-catch,确保项目使用 neverthrow 进行函数式错误处理;扫描并报告所有原生异常处理代码。触发词:检查错误处理、neverthrow检查、错误处理规范检查、Result类型检查。

Installation

$ npx skills add forge-town/skills --skill forge_check-error-handling

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from forge-town/skills · top by installs.

npx skills add forge-town/skills

Browse all from forge-town/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 7
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 918 B
  • docs SUMMARY.md 309 B

History

  1. First recorded snapshot · 1 installs

SKILL.md

Check Error Handling 代码审查指南

使用说明

  1. 阅读 forgeerror-handling-best-practice 的 [规范说明](../forgeerror-handling-best-practice/SKILL.md)
  2. 扫描代码中所有原生 try-catch 结构(包装函数内部除外)
  3. 标记违规使用,要求改为 Result<T, E>ResultAsync<T, E>
  4. 参考 [最佳实践示例](references/best-practice-examples/GoodExample.tsx) 了解 neverthrow 正确用法

核心原则: 禁止使用原生 try-catch,必须使用 neverthrow 的 Result 类型进行显式错误传递