error-handling-patterns

Installation
Summary

Comprehensive error handling patterns across Python, TypeScript, Rust, and Go with language-specific implementations.

  • Covers error philosophies (exceptions vs Result types), error categories (recoverable vs unrecoverable), and language-specific patterns including custom exception hierarchies, Result types, and async error handling
  • Includes three universal patterns: circuit breaker for preventing cascading failures, error aggregation for collecting multiple errors, and graceful degradation with fallback functions
  • Provides best practices for fail-fast validation, meaningful error messages, resource cleanup, and type-safe error handling with concrete code examples
  • Highlights common pitfalls like overly broad exception catching, empty catch blocks, poor error messages, and unhandled async errors
SKILL.md

Error Handling Patterns

Build resilient applications with robust error handling strategies that gracefully handle failures and provide excellent debugging experiences.

When to Use This Skill

  • Implementing error handling in new features
  • Designing error-resilient APIs
  • Debugging production issues
  • Improving application reliability
  • Creating better error messages for users and developers
  • Implementing retry and circuit breaker patterns
  • Handling async/concurrent errors
  • Building fault-tolerant distributed systems

Core Concepts

1. Error Handling Philosophies

Related skills

More from wshobson/agents

Installs
12.5K
Repository
wshobson/agents
GitHub Stars
35.3K
First Seen
Jan 20, 2026