better-result-migrate-v2
CommunityMigrate v1 TaggedError to v2 factory-based API.
Authordmmulroy
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps teams migrate better-result TaggedError definitions from v1 (class-based) to v2 (factory-based) API, aligning legacy error handling with the modern API surface.
Core Features & Use Cases
- Migration of NotFoundError and other TaggedError classes: convert class definitions to TaggedError("Tag")<{ ... }>() pattern and adjust constructors.
- Update static helpers and imports: switch usage from TaggedError.* to the new API equivalents and update imports accordingly.
- Workflow guidance: provides a repeatable, safe workflow to analyze, transform, and apply changes across a codebase.
Quick Start
Run the migration on your TypeScript project to convert v1 TaggedError classes to v2 factory-based APIs and update static methods and imports as needed.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 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-migrate-v2 Download link: https://github.com/dmmulroy/better-result/archive/main.zip#better-result-migrate-v2 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.