error-handling

Classify errors and apply retry and degradation strategies across services.

Updated Dec 29, 2025
One-click install
npx skills add https://github.com/dseirz-rgb/worker --skill error-handling-dseirz-rgb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling
Source: https://github.com/dseirz-rgb/worker/tree/main/.kiro/skills/error-handling
Command: npx skills add https://github.com/dseirz-rgb/worker --skill error-handling-dseirz-rgb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Error handling is essential to build reliable software. This skill provides a systematic workflow for handling errors, classifying them, applying retries, and designing graceful degradation to keep apps usable when failures occur.

Core Features & Use Cases

  • Structured error taxonomy: A clear classification to route errors to appropriate handling paths (network errors, authentication, validation, rate limits, server errors).
  • Retry & backoff templates: Ready-to-use retry strategies with exponential backoff and configurable fallbacks.
  • Graceful degradation strategies: Techniques to maintain core functionality when some subsystems fail.
  • Templates & guidelines: Practical examples for API clients, workers, and user-facing messages.

Quick Start

To start, describe an error scenario and apply a standardized handling flow using the included templates and guidelines.

Frequently Asked Questions about error-handling

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement structured error handling for APIs and background jobs?

Structured error handling for APIs and background jobs is implemented by classifying errors into a taxonomy and routing them to appropriate paths. This applies standardized retry strategies and graceful degradation templates to maintain core functionality during failures.

What is graceful degradation and when do I need it for fault tolerance?

Graceful degradation is a fault tolerance technique that maintains core application functionality when subsystems fail. You need it to keep apps usable during network errors, rate limits, or server errors by applying fallback strategies instead of crashing.

How do I set up retry strategies with exponential backoff?

Retry strategies with exponential backoff are set up using ready-to-use templates that configure fallbacks for transient failures. You apply these retry patterns to API clients and workers to automatically reattempt operations after network errors or rate limits.

Can I use these error handling templates with any tech stack?

Yes, you can use these error handling templates with any tech stack because they provide adaptable examples and guidelines rather than framework-specific code. They apply to API clients, background workers, and UI interactions across different platforms.

What's the best way to classify network errors, validation errors, and rate limits?

The best way to classify network errors, validation errors, and rate limits is using a structured error taxonomy. This routes each error type to appropriate handling paths, allowing distinct retry, fallback, or user-facing message responses based on classification.

Why do I need a standardized error handling workflow instead of ad-hoc try-catch blocks?

A standardized error handling workflow is needed because ad-hoc try-catch blocks lack systematic classification and retry strategies. The workflow codifies structured taxonomy, exponential backoff, and graceful degradation to build reliable software that handles failures predictably.