This helps you introduce better-result into an existing TypeScript codebase without rewriting everything at once. It walks through replacing try/catch blocks, null sentinels, and thrown domain exceptions with typed Result workflows. The migration strategy is practical: start at I/O boundaries like HTTP clients and database calls, define your TaggedError types first, then refactor callers to propagate Result values using andThen or Result.gen. The transformation examples are concrete and cover the most common patterns you'll encounter. It's opinionated about not over-wrapping everything and keeping defects as throws instead of forcing them into Results. If you're tired of losing error context in catch blocks or passing around nulls to signal failure, this gives you a clear incremental path forward.
npx -y skills add dmmulroy/better-result --skill better-result-adopt --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.
juliusbrussee/caveman
mattpocock/skills
shadcn/improve
obra/superpowers
forrestchang/andrej-karpathy-skills
vercel-labs/skills