better-result
OfficialModernize error handling with Result types.
Software Engineering#typescript#refactoring#error handling#result type#better-result#railway oriented programming
Authorpi-ohm
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps developers migrate existing error handling patterns (like try/catch and Promise rejections) to a more robust and type-safe system using Result types, aligning with railway-oriented programming principles.
Core Features & Use Cases
- Migration Assistance: Guides the transformation of traditional error handling to Result-based patterns.
- Pattern Transformation Examples: Demonstrates converting try/catch to
Result.try, async/await toResult.tryPromise, and null checks to Result. - Use Case: Refactor a legacy Node.js service that uses extensive try/catch blocks to adopt a Result-based error handling strategy, improving code clarity and reducing runtime exceptions.
Quick Start
Use the better-result skill to migrate the provided try/catch block to use Result.try.
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 Download link: https://github.com/pi-ohm/pi-ohm/archive/main.zip#better-result 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.