error-handling-patterns

Generate error-handling patterns for Python, TypeScript, Rust, and Go projects.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/emilneuraz-ai/neuraz-web --skill error-handling-patterns-emilneuraz-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/emilneuraz-ai/neuraz-web/tree/main/.agents/skills/.agents/skills/error-handling-patterns
Command: npx skills add https://github.com/emilneuraz-ai/neuraz-web --skill error-handling-patterns-emilneuraz-ai

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, designing APIs, or improving application reliability.

Core Features & Use Cases

  • Language-specific patterns across Python, TypeScript/JavaScript, Rust, and Go.
  • Guidance on circuit breakers, retry strategies, error aggregation, graceful degradation.
  • Examples for common scenarios like validation, not found, and external service errors.

Quick Start

Describe your error scenario and I will generate robust error-handling code and guidance.

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 across different programming languages?

Error handling patterns must satisfy language-specific error models, mapping exceptions in Python and TypeScript to Result types in Rust and Go for robust propagation and recovery. The Skill provides tailored patterns for each language's native error model.

What's the best way to implement retry strategies and circuit breakers for external service calls?

Retry strategies and circuit breakers manage external service failures by applying rules for error propagation, structured error types, and graceful degradation. The Skill offers guidance on implementing these resilience patterns to prevent cascading failures.

How does the Result type pattern work for error propagation in Rust and Go?

The Result type pattern handles errors as explicit return values rather than control flow exceptions, enabling safe error propagation in Rust and Go. The Skill demonstrates how to implement structured error types and propagation rules for these languages.

Can I use these error handling patterns for API design and input validation?

Yes, these error handling patterns apply directly to API design and input validation, providing examples for common scenarios like validation errors and not found responses. They ensure structured error types and consistent logging across your application.

When should I use graceful degradation instead of failing fast during application errors?

Graceful degradation maintains partial application functionality during failures, while failing fast immediately aborts operations on critical errors. The Skill provides guidance on choosing between these approaches based on your specific error scenario and recovery requirements.