error-handling-patterns

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

3|1|Updated Nov 5, 2025
One-click install
npx skills add https://github.com/carlopezzuto/agents --skill error-handling-patterns-carlopezzuto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/carlopezzuto/agents/tree/main/.claude/skills/error-handling-patterns
Command: npx skills add https://github.com/carlopezzuto/agents --skill error-handling-patterns-carlopezzuto

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Build robust error handling across languages to reduce failures and improve debugging experiences.

Core Features & Use Cases

  • Cross-language error-handling patterns including exceptions, Result types, error propagation, and graceful degradation.
  • Practical examples in Python, TypeScript/JavaScript, Rust, and Go demonstrating circuit breakers, retries, error aggregation, and typed errors.
  • Use cases include API design, input validation, debugging production issues, and building fault-tolerant systems with clear error messages.

Quick Start

Review the Python and TypeScript examples to apply a robust error-handling pattern in your feature.

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 implement cross-language error handling patterns?

Cross-language error handling is best implemented using standardized patterns like typed errors, Result types, and structured exceptions. This Skill provides reusable templates and guidelines to enforce consistent error hierarchies and preserve context across Python, TypeScript, Rust, and Go.

How do I build fault-tolerant systems with circuit breakers and retries?

Building fault-tolerant systems with circuit breakers and retries requires structured error propagation and graceful degradation. This Skill offers practical examples in Python and TypeScript to implement these resilience patterns, ensuring safe handling and reducing system failures.

Does this Skill support Result types and typed errors in Rust and Go?

Yes, this Skill supports Result types and typed errors in Rust and Go. It provides cross-language patterns for error propagation and typed error handling, ensuring structured error hierarchies and meaningful messages for robust software engineering tasks.

How do I preserve context and metadata when handling exceptions in Python?

To preserve context when handling exceptions in Python, apply structured error-handling patterns that attach metadata and timestamps. This Skill provides guidelines and reusable templates to enforce error hierarchies, improving debuggability for production issues and API design.

When should I use typed errors instead of standard exceptions for API design?

Typed errors should be used instead of standard exceptions for API design when you need strict error hierarchies and safe handling. This Skill promotes typed errors and Result types to provide meaningful messages, preserve context, and standardize input validation across languages.

What are the limitations of using standard exceptions for error aggregation?

Standard exceptions often lack structured context for effective error aggregation. This Skill addresses these limitations by promoting typed errors, Result types, and reusable templates to enforce structured hierarchies, ensuring clear messages and metadata preservation across Python and TypeScript.