better-result-adopt
CommunityMigrate code to typed Result-based errors.
Software Engineering#TypeScript#error-handling#code-migration#railway-programming#better-result#typed-errors#tagged-errors
Authorcometkim
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Migrate legacy error handling to typed Result-based errors.
Core Features & Use Cases
- Migration strategy for railway-oriented programming
- Define and use TaggedError classes to model domain errors
- Wrap I/O boundaries with Result.try/tryPromise and convert error checks
Quick Start
Start by identifying I/O boundaries in your codebase and marking domain errors with TaggedError classes. Replace try/catch and Promise rejections with Result.try/tryPromise and wrap boundary calls. Update call sites to propagate Result values and use pattern matching to handle success and error cases.
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/cometkim/dotunnel/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 471,000+ vetted skills library on demand.