better-result-adopt

Apply better-result patterns only at explicitly requested TypeScript/JavaScript code boundaries.

6|1|Updated Jun 1, 2025
One-click install
npx skills add https://github.com/rezics/rezics --skill better-result-adopt-rezics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: better-result-adopt
Source: https://github.com/rezics/rezics/tree/main/.agents/skills/better-result/adopt
Command: npx skills add https://github.com/rezics/rezics --skill better-result-adopt-rezics

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Adopt better-result only for explicit opt-in work. In this repository, do not propose or introduce the library unless the user asks for it or the target code already uses it.

Core Features & Use Cases

  • Limit scope by applying better-result only to the requested module or boundary.
  • Start at I/O boundaries and preserve the surrounding architecture when refactoring.
  • Use TaggedError patterns and Result-based transformations only when explicitly requested, to maintain consistency with the codebase.

Quick Start

Limit changes to the requested module and apply better-result strictly at explicit boundaries.

Frequently Asked Questions about better-result-adopt

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I adopt the Result pattern for TypeScript error handling without refactoring my entire codebase?

To adopt the Result pattern safely, limit changes to explicitly requested modules and apply transformations strictly at I/O boundaries. This approach preserves your surrounding architecture while introducing TaggedError models only where desired.

What is the best way to introduce TaggedError models at TypeScript I/O boundaries?

The best way to introduce TaggedError models is to start at I/O boundaries within a specifically requested module. Apply Result-based transformations only at these explicit edges to maintain consistency with the existing codebase architecture.

Can I apply Result-based transformations to a specific module without affecting surrounding code?

Yes, you can apply Result-based transformations to an isolated module without affecting surrounding code. Scope is limited strictly to the requested boundaries, preventing unintended cross-project refactors and preserving the existing architecture.

When should I not use the Result pattern for TypeScript error handling?

You should not use the Result pattern unless you explicitly request it or the target code already uses it. Introducing these models unrequested can cause unintended cross-project refactors and disrupt existing error-handling consistency.

Does using TaggedError patterns require modifying existing TypeScript architecture?

Using TaggedError patterns does not require modifying existing TypeScript architecture. Refactoring strictly preserves the surrounding architecture by applying Result utilities only at the explicit edges of the requested scope.

Why limit better-result adoption to explicit opt-in requests?

Limiting better-result adoption to explicit opt-in requests prevents unintended cross-project refactors. It ensures TaggedError models and Result utilities are introduced only at the edges of the requested scope, maintaining codebase consistency.