error-handling-patterns

Standardize exceptions, Result types, retries, and circuit-breaker patterns across Python, TypeScript, Rust, and Go.

6|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/ChrstprJohn/SamsonDentalCenter --skill error-handling-patterns-chrstprjohn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/ChrstprJohn/SamsonDentalCenter/tree/main/.agent/skills/error-handling-patterns
Command: npx skills add https://github.com/ChrstprJohn/SamsonDentalCenter --skill error-handling-patterns-chrstprjohn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, debugging production issues, or designing fault-tolerant APIs and services.

Core Features & Use Cases

  • Standardize exceptions, Result types, and error propagation across Python, TypeScript, Rust, and Go.
  • Provide guidance on retries, circuit breakers, and graceful degradation for resilient systems.
  • Use Case: Apply consistent error patterns to APIs, distributed services, and asynchronous workflows to improve reliability and debugging experiences.

Quick Start

Implement a robust error-handling strategy for a feature using a simple example in your language of choice.

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 consistent error handling across Python, TypeScript, Rust, and Go?

Implement resilient distributed systems using retry mechanisms and circuit breaker patterns to prevent cascading failures. These patterns provide graceful degradation, automatically managing timeouts and repeated requests to maintain service availability during partial outages.

What is the best way to design fault-tolerant APIs with graceful degradation?

Design fault-tolerant APIs by standardizing error handling strategies, utilizing consistent exceptions, and implementing graceful degradation. This approach ensures your services fail predictably, improving overall reliability and making production debugging significantly easier.

Can I use Result types for error propagation instead of exceptions in my services?

Yes, you can use Result types for error propagation, particularly in languages like Rust and Go. Standardizing on Result types provides explicit error handling, forcing callers to acknowledge failures, which reduces unhandled exceptions and improves system resilience.

When do I need circuit breaker patterns for asynchronous workflows?

Apply circuit breaker patterns to asynchronous workflows and distributed systems when external dependencies may fail. Circuit breakers stop cascading failures by blocking requests to unavailable services, enabling graceful degradation and maintaining system stability.