error-handling-patterns

Standardize error handling patterns across Python, TypeScript, Rust, and Go services.

3|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/ahiendz/DuAnCuoiKhoa --skill error-handling-patterns-ahiendz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/ahiendz/DuAnCuoiKhoa/tree/main/.agents/skills/error-handling-patterns
Command: npx skills add https://github.com/ahiendz/DuAnCuoiKhoa --skill error-handling-patterns-ahiendz

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Error handling patterns unify and streamline how failures are represented, propagated, and recovered across codebases to reduce debugging time and outages.

Core Features & Use Cases

  • Language-specific patterns (Python, TypeScript, Rust, Go) for exceptions, result types, and custom error hierarchies.
  • Core techniques including retries with backoff, circuit breakers, graceful degradation, error aggregation, and meaningful messaging.
  • Use Case: Design robust APIs, implement consistent error contracts, and improve fault tolerance in distributed systems.

Quick Start

Apply the error-handling-patterns framework to refactor a service to use explicit error types, retries with backoff, and a circuit breaker.

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 error handling patterns for distributed systems?

Circuit breakers prevent cascading failures in distributed systems by tripping when error thresholds exceed limits, blocking requests temporarily, and allowing graceful degradation instead of exhausting resources.

What's the best way to standardize exceptions vs result types across Python, TypeScript, Rust, and Go?

Standardizing exceptions vs result types involves applying language-specific patterns: custom error hierarchies for Python and TypeScript, and explicit result types for Rust and Go, ensuring consistent error contracts.

How does a circuit breaker work for fault tolerance in microservices?

Circuit breakers prevent cascading failures in distributed systems by tripping when error thresholds exceed limits, blocking requests temporarily, and allowing graceful degradation instead of exhausting resources.

When do I need error aggregation and retry with backoff in my APIs?

You need error aggregation and retry with backoff in API design when handling transient network failures, combining multiple validation errors into meaningful messaging, and coordinating distributed system recovery.

Can I use this error-handling-patterns framework to refactor an existing service?

You can refactor an existing service by applying the framework to introduce explicit error types, implement retries with backoff, and integrate a circuit breaker for stronger fault tolerance and debuggability.