error-handling-patterns

Design cross-language error-handling strategies with exceptions, Result types, and retries.

Updated Oct 22, 2025
One-click install
npx skills add https://github.com/lemu/sea-prototype-template --skill error-handling-patterns-lemu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/lemu/sea-prototype-template/tree/main/.agents/skills/error-handling-patterns
Command: npx skills add https://github.com/lemu/sea-prototype-template --skill error-handling-patterns-lemu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This skill helps teams design and implement consistent, robust error-handling strategies across languages, reducing debugging time and improving reliability.

Core Features & Use Cases

  • Cross-language error hierarchies and centralized handling.
  • Retry, circuit-breaker, and graceful degradation patterns.
  • Context-rich errors, meaningful messages, and guidance for logging and observability.
  • Use cases include API design, data processing pipelines, and user-facing features requiring robust failure handling.

Quick Start

Describe a plan to implement a uniform error-handling strategy for a new feature, covering exception vs result-type choices, retry policies, and clear error messaging.

Frequently Asked Questions about error-handling-patterns

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

FAQPage Schema
What is the best way to design error-handling strategies for concurrent workloads?

To implement robust error-handling for API design, choose between exceptions and Result types, establish retry policies, and define clear error hierarchies. This approach ensures failures are categorized and recovered without user disruption.

How do I choose between exceptions and Result types for multi-language error handling?

Choosing between exceptions and Result types for multi-language error handling depends on your language paradigms. This skill helps design cross-language error hierarchies, conforming to actionable patterns and meaningful messaging for both strategies.

When should I apply circuit-breaker patterns in background data processing pipelines?

Apply circuit-breaker patterns in background data processing pipelines when failures must be isolated to prevent cascading system crashes. This strategy enables graceful degradation, allowing workloads to fail safely without disrupting user-facing operations.

How do I add context-rich error messages and logging for debugging API failures?

To add context-rich errors and logging for API failures, implement actionable error hierarchies with meaningful messaging. This skill provides best practices for tracing and safe failure modes to improve debugging and system reliability.

Does this error-handling approach work for both API design and user-facing features?

Yes, this error-handling approach works for both API design and user-facing features. It supports centralized handling and graceful degradation, ensuring failures across concurrent workloads are detected and recovered without user disruption.