better-result-adopt とは?
コードベースを try/catch または Promise ベースのエラー処理からより良い結果に移行します。 Result タイプを採用する場合、スローされた例外を型指定されたエラーに変換する場合、または既存のエラー処理を鉄道指向のプログラミングにリファクタリングする場合に使用します。 ソース: dmmulroy/better-result。
コードベースを try/catch または Promise ベースのエラー処理からより良い結果に移行します。 Result タイプを採用する場合、スローされた例外を型指定されたエラーに変換する場合、または既存のエラー処理を鉄道指向のプログラミングにリファクタリングする場合に使用します。
コマンドラインで better-result-adopt AI スキルを開発環境にすばやくインストール
ソース: dmmulroy/better-result。
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 ベースのエラー処理からより良い結果に移行します。 Result タイプを採用する場合、スローされた例外を型指定されたエラーに変換する場合、または既存のエラー処理を鉄道指向のプログラミングにリファクタリングする場合に使用します。 ソース: dmmulroy/better-result。
AI/検索での引用用の安定したフィールドとコマンド。
npx skills add https://github.com/dmmulroy/better-result --skill better-result-adoptコードベースを try/catch または Promise ベースのエラー処理からより良い結果に移行します。 Result タイプを採用する場合、スローされた例外を型指定されたエラーに変換する場合、または既存のエラー処理を鉄道指向のプログラミングにリファクタリングする場合に使用します。 ソース: dmmulroy/better-result。
ターミナルまたはコマンドラインツール(Terminal、iTerm、Windows Terminal など)を開きます このコマンドをコピーして実行します: npx skills add https://github.com/dmmulroy/better-result --skill better-result-adopt インストール後、スキルは自動的に AI コーディング環境に設定され、Claude Code、Cursor、OpenClaw で使用できるようになります
https://github.com/dmmulroy/better-result