error-handling

Design and validate error handling with Either/Result patterns across multiple languages.

81|3|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/j5ik2o/okite-ai --skill error-handling-j5ik2o
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling
Source: https://github.com/j5ik2o/okite-ai/tree/main/.agent/skills/error-handling
Command: npx skills add https://github.com/j5ik2o/okite-ai --skill error-handling-j5ik2o

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill guides the design and validation of robust error handling by promoting recoverable errors, consistent use of Either/Result patterns, and clear classification of domain versus system errors to improve code reliability.

Core Features & Use Cases

  • Guides when to apply recoverable error patterns and how to model errors with Either/Result types across languages (Go, Rust, Scala, Java, TypeScript, JavaScript, Python).
  • Provides a decision framework for categorizing errors into domain or system categories during reviews, implementations, and refactors.
  • Supports cross-language best practices, code reviews, and implementation guidance for reliable error handling.

Quick Start

Provide a concrete plan to implement recoverable error handling across a codebase using Either/Result patterns.

Frequently Asked Questions about error-handling

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

FAQPage Schema
What is the best way to handle recoverable errors using the Either or Result pattern?

The best way to handle recoverable errors is by applying the Either or Result pattern to explicitly model domain versus system errors, promoting safe failure handling and consistent error typing across all application layers.

How do I classify domain versus system errors during a code review?

To classify domain versus system errors during a code review, use a decision framework that categorizes errors based on recoverability, ensuring consistent error typing and explicit recovery paths across the application architecture.

Can I use the Result pattern for error handling across different programming languages like Go, Rust, and TypeScript?

Yes, you can use the Result pattern across languages like Go, Rust, Scala, Java, TypeScript, JavaScript, and Python, applying cross-language best practices to ensure consistent error typing and safe failure handling.

How do I refactor existing code to implement explicit error handling?

To refactor existing code for explicit error handling, replace broad exception throwing with recoverable error patterns using Either or Result types, clearly classifying domain and system errors to improve code reliability.

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

You should avoid using the Either or Result pattern for unrecoverable system failures where immediate termination is required, as this pattern is specifically designed to promote recoverable errors and explicit domain error classification.