dmmulroydmmulroyCommunityยท5 Agent Skills Included

better-result

Type-safe error handling for TypeScript with Result types

Replaces thrown exceptions and silent failures with explicit, type-checked Result values in TypeScript codebases. Guides AI agents through auditing existing error handling, adopting tagged errors, and migrating from version 2 to 3. Eliminates hidden runtime crashes by forcing every failure path to be handled at compile time.
npx skills add dmmulroy/better-result --all -g -y
Available:

Gives the AI agent a map of the codebase, coding conventions, and test commands so it can safely modify the Result type library and its skills.

All Skills in This Repository (5)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install better-result?โ–ผ

Run `npx skills add dmmulroy/better-result --all -g -y` in your terminal to install all skills in this suite globally.

What problem does better-result solve?โ–ผ

It makes failures explicit in TypeScript by returning typed Ok or Err values instead of throwing exceptions, so the compiler forces you to handle every error case.

How do I migrate from better-result 2.x to 3.0?โ–ผ

The migrate-better-result-3 skill inventories your code, runs an automated codemod for the new TaggedError syntax, and walks you through replacing removed serialization helpers with codecs.

Can an AI agent adopt better-result in my existing codebase?โ–ผ

Yes. The adopt-better-result skill audits your repository's error handling, proposes a migration plan, and implements it one vertical slice at a time with your approval.

Does better-result work with async code?โ–ผ

Yes. It supports async generator composition with Result.await, promise chaining combinators, and built-in retry logic for asynchronous operations.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’