Registry / cashew-labs

cashew-labs/libretto/errore

errore is Go-style error handling for TypeScript: return errors instead of throwing them. Instead of Go's two-value tuple (val, err), functions return a single Error | T union. Instead of checking err != nil, you check instanceof Error. TypeScript narrows the type automatically — forget to check and your code won't compile. No wrapper types, no Result monads, just unions and instanceof. The errore npm package provides helper utilities (createTaggedError, tryAsync, matchError, findCause, partitio

Agent skill · version 0.6.45 · from cashew-labs/libretto

Install

npx yarkr-cli add skill:cashew-labs/libretto/errore

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:cashew-labs/libretto/errore
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:cashew-labs/libretto/errore

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add skill:cashew-labs/libretto/errore

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.