error-handling-patterns

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

4|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/allthingslinux/portal --skill error-handling-patterns-allthingslinux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/allthingslinux/portal/tree/main/.cursor/skills/error-handling-patterns
Command: npx skills add https://github.com/allthingslinux/portal --skill error-handling-patterns-allthingslinux

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides structured error-handling patterns across languages to help engineers build resilient software, reduce debugging time, and improve reliability.

Core Features & Use Cases

  • Unified patterns for exceptions, result types, retries, circuit breakers, and graceful degradation across Python, TypeScript, Rust, and Go.
  • Guided implementations for common scenarios like API errors, validation failures, and external service outages.
  • References & checklists to accelerate adoption and ensure best practices in real projects.

Quick Start

Apply an error-handling strategy to a new module by selecting appropriate approaches (exceptions vs results), add retry logic, and implement a safe fallback for transient failures.

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 a circuit breaker and retry logic for an external API in a distributed system?

To implement a circuit breaker and retry logic for an external API, you apply structured error-handling patterns that safely catch transient failures and execute fallback responses. This Skill provides guided implementations and checklists for adding this resilience to distributed systems.

What is the best way to handle exceptions vs result types across Python, TypeScript, Rust, and Go?

The best way to handle exceptions vs result types across Python, TypeScript, Rust, and Go is to apply unified, language-specific error-handling patterns. This Skill offers structured approaches for choosing and implementing the correct strategy for your module.

How do I add graceful degradation to prevent cascading failures during a service outage?

To add graceful degradation during a service outage, you implement safe fallback logic for transient failures. This Skill provides structured patterns and practical examples to guide the implementation of reliable fallbacks in your software.

Does this approach support handling validation failures and API errors in Python and Go?

Yes, this approach supports handling validation failures and API errors in Python, TypeScript, Rust, and Go. The Skill provides guided implementations and references specifically designed for these common error scenarios across supported languages.

When should I use exception handling instead of result types for building reliable software?

You should choose between exception handling and result types based on your module's specific needs for building reliable software. This Skill helps you select appropriate approaches by providing structured patterns and accompanying checklists to guide your implementation.