error-handling-patterns

Design error handling strategies with retry patterns and Result types.

181|30|Updated Nov 16, 2025
One-click install
npx skills add https://github.com/curiositech/some_claude_skills --skill error-handling-patterns-curiositech
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/curiositech/some_claude_skills/tree/main/.claude/skills/error-handling-patterns
Command: npx skills add https://github.com/curiositech/some_claude_skills --skill error-handling-patterns-curiositech

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you design and implement robust error handling strategies for your applications, ensuring that errors are managed gracefully, recoverably, and debuggably.

Core Features & Use Cases

  • Error Classification: Differentiate between transient and permanent, user-actionable and system-actionable errors.
  • Retry Logic: Implement exponential backoff, jitter, and circuit breakers for transient errors.
  • Error Hierarchies: Design typed exception hierarchies in TypeScript and Python.
  • Result Type Pattern: Use Result/Either types for expected error outcomes.
  • Use Case: When designing a new microservice, use this Skill to decide whether to use exceptions or Result types for inter-service communication, and to implement a resilient retry mechanism for downstream dependencies.

Quick Start

Use the error-handling-patterns skill to design a typed exception hierarchy for a Python API.

Frequently Asked Questions about error-handling-patterns

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

FAQPage Schema
How do I implement retry logic with exponential backoff and circuit breakers for transient errors?

Retry logic for transient errors uses exponential backoff with jitter and circuit breakers to prevent cascading failures. This Skill designs resilient retry mechanisms that automatically halt downstream calls when dependency thresholds are exceeded.

When should I use Result types instead of exceptions for error handling in TypeScript?

Result types handle expected error outcomes explicitly without control flow interruption, while exceptions suit unexpected failures. This Skill designs strategies to choose between them for explicit, recoverable error management in TypeScript applications.

How do I design a typed exception hierarchy for a Python API?

Typed exception hierarchies in Python differentiate between transient, permanent, user-actionable, and system-actionable errors. This Skill designs structured classification systems to ensure errors are recoverable and debuggable across your API.

Can I implement graceful degradation in React error boundaries using structured error handling?

Graceful degradation in React error boundaries requires structured error classification to determine recoverable UI states. This Skill designs error handling strategies that integrate structured logging to make boundary failures debuggable.

What is the best way to manage inter-service communication errors in microservices?

Inter-service error management combines typed exception hierarchies with circuit breakers and retry patterns for downstream dependencies. This Skill designs comprehensive strategies to ensure microservice communication is explicit and resilient.