dmmulroy/better-result

Lightweight Result type for TypeScript with generator-based composition.

About the project

better-result is a TypeScript library that represents either a successful value or an expected failure as a typed Result, allowing multi-step workflows to stop when an operation fails. TypeScript developers use it to make recoverable errors explicit while keeping unexpected exceptions as thrown defects. The catalogue skills and instruction support working with the library.

This repository also configures its own agents. See what better-result tells them →

2.0kStars on the repository
4Mods indexed here, across every type
1mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

adopt-better-result

01

dmmulroy/better-result

Skill Claude CodeCodex

Adopt better-result in an existing TypeScript codebase. Use for a repository-wide error-handling audit and proposal, or for implementing a named vertical slice with TaggedError and Result.

not rated 2.0k +1 1mo ago A Socket: passSnyk: passSkillSpector: pass 43 tokens original MIT

dmmulroy/better-result

Skill Claude CodeCodex

Migrate a TypeScript codebase from better-result 2.x to 3.0. Use when upgrading better-result across the TaggedError syntax, removed Result serialization helpers, recovery inference, matching, or retry APIs.

not rated 2.0k +1 1mo ago A SkillSpector: pass 52 tokens original MIT