remorsesremorsesCommunityยท1 Agent Skills Included

errore

Type-safe Go-style error handling for TypeScript

Replaces thrown exceptions with typed error values returned as Error | T unions, so TypeScript narrows types automatically and unhandled errors fail compilation. Eliminates nested try-catch blocks, wrapper types, and silent failures with flat early-return control flow. Includes helpers for tagged errors, cause chains, exhaustive matching, and resource cleanup to keep codebases readable and debuggable.
npx skills add remorses/errore --all -g -y
Available:

Tells the agent how to type-check the project, fetch Effect documentation, and keep the SKILL.md context file short and example-focused when editing it.

All Skills in This Repository (1)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install errore?โ–ผ

Run `npx skills add remorses/errore --all -g -y` in your terminal to install the skill globally for your coding agent.

What problem does errore solve in TypeScript?โ–ผ

It replaces thrown exceptions with errors returned as values in an Error | T union, so TypeScript forces callers to handle every failure and unhandled errors fail compilation.

How is errore different from Result types or Effect?โ–ผ

It uses plain union types and instanceof checks instead of wrapper types or monads, so there is no unwrapping boilerplate and TypeScript narrows types automatically.

Does errore work with AI coding agents?โ–ผ

Yes. It ships a SKILL.md file that teaches agents the errors-as-values convention, and it works in Claude Code, Cursor, and other SKILL.md-compatible agents.

Do I need to change my whole codebase to use errore?โ–ผ

No. You convert exceptions to typed errors only at boundaries like fetch or JSON.parse using .catch() or errore.try, then use plain instanceof checks everywhere else.

Related Repositories in Software Engineering

View All in Software Engineeringโ†’