·better-result-adopt
</>

better-result-adopt

将代码库从 try/catch 或基于 Promise 的错误处理迁移到更好的结果。在采用结果类型、将引发的异常转换为类型化错误或将现有错误处理重构为面向铁路的编程时使用。

112安装·0热度·@dmmulroy

安装

$npx skills add https://github.com/dmmulroy/better-result --skill better-result-adopt

如何安装 better-result-adopt

通过命令行快速安装 better-result-adopt AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/dmmulroy/better-result --skill better-result-adopt
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:dmmulroy/better-result。

SKILL.md

查看原文

Migrate existing error handling (try/catch, Promise rejections, thrown exceptions) to typed Result-based error handling with better-result.

Begin migration at I/O boundaries (API calls, DB queries, file ops) and work inward. Don't attempt full-codebase migration at once.

| Domain errors | NotFound, Validation | TaggedError + Result.err | | Infrastructure | Network, DB connection | Result.tryPromise + TaggedError | | Bugs/defects | null deref, type error | Let throw (becomes Panic if in Result callback) |

将代码库从 try/catch 或基于 Promise 的错误处理迁移到更好的结果。在采用结果类型、将引发的异常转换为类型化错误或将现有错误处理重构为面向铁路的编程时使用。 来源:dmmulroy/better-result。

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/dmmulroy/better-result --skill better-result-adopt
分类
</>开发工具
认证
收录时间
2026-02-27
更新时间
2026-03-10

Browse more skills from dmmulroy/better-result

快速解答

什么是 better-result-adopt?

将代码库从 try/catch 或基于 Promise 的错误处理迁移到更好的结果。在采用结果类型、将引发的异常转换为类型化错误或将现有错误处理重构为面向铁路的编程时使用。 来源:dmmulroy/better-result。

如何安装 better-result-adopt?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/dmmulroy/better-result --skill better-result-adopt 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/dmmulroy/better-result

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-27

相关 Skills

暂无