better-result-adopt
CommunityAdopt typed error handling with better-result.
Software Engineering#typescript#migration#error-handling#tagged-error#result#better-result#railway-oriented
AuthorAmanVarshney01
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Migrate existing error handling from try/catch blocks, promise rejections, or thrown errors to typed Result-based error handling using better-result.
Core Features & Use Cases
- Guided migration against a real-world codebase, starting at I/O boundaries and progressively converting to Result-based error handling.
- Define domain and infrastructure errors using TaggedError, wrap boundaries with Result.try/tryPromise, and update function signatures accordingly.
- Refactor callers to propagate Result types and handle errors with typed patterns, improving maintainability and reliability.
Quick Start
Begin by locating I/O boundaries in your codebase and incrementally replace thrown or rejected errors with TaggedError types and Result.try/tryPromise usage.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: better-result-adopt Download link: https://github.com/AmanVarshney01/create-better-t-stack/archive/main.zip#better-result-adopt Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.