better-result
Type-safe error handling for TypeScript with Result types
All Skills in This Repository (5)
Pure Emerald Level Indicatorsbetter-result-adopt
Migrate TypeScript error handling from try/catch to better-result Result patterns.
better-result-migrate-v2
Convert better-result TaggedError classes from v1 class-based to v2 factory-based API.
audit-better-result-dependents
Audits better-result API changes against Prisma and Better T Stack npm dependents for breakage.
adopt-better-result
Migrate TypeScript codebases to better-result error handling through audits and vertical slices.
migrate-better-result-3
Migrates TypeScript codebases from better-result 2.x to 3.0 using codemods and API references.
Frequently Asked Questions
FAQPage SchemaHow to install better-result?โผ
Run `npx skills add dmmulroy/better-result --all -g -y` in your terminal to install all skills in this suite globally.
What problem does better-result solve?โผ
It makes failures explicit in TypeScript by returning typed Ok or Err values instead of throwing exceptions, so the compiler forces you to handle every error case.
How do I migrate from better-result 2.x to 3.0?โผ
The migrate-better-result-3 skill inventories your code, runs an automated codemod for the new TaggedError syntax, and walks you through replacing removed serialization helpers with codecs.
Can an AI agent adopt better-result in my existing codebase?โผ
Yes. The adopt-better-result skill audits your repository's error handling, proposes a migration plan, and implements it one vertical slice at a time with your approval.
Does better-result work with async code?โผ
Yes. It supports async generator composition with Result.await, promise chaining combinators, and built-in retry logic for asynchronous operations.
Related Repositories in Software Engineering
View All in Software Engineeringโopenclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core