error-handling

Define typed error hierarchies and retry logic for TypeScript, Python, and Go.

Updated Jul 4, 2026
One-click install
npx skills add https://github.com/Long-NguyenHai/warehouse-ai --skill error-handling-long-nguyenhai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling
Source: https://github.com/Long-NguyenHai/warehouse-ai/tree/main/.agents/skills/error-handling
Command: npx skills add https://github.com/Long-NguyenHai/warehouse-ai --skill error-handling-long-nguyenhai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides comprehensive patterns for robust error handling in TypeScript, Python, and Go, covering typed errors, error boundaries, retries, circuit breakers, and user-facing error messages.

Core Features & Use Cases

  • Error Types and Hierarchy: Define error types and exception hierarchies for better code maintainability.
  • Error Boundaries: Implement error boundaries in React applications to handle and log errors without crashing the app.
  • Retry Logic: Add retry logic and circuit breakers for unreliable external dependencies.
  • User-Facing Messages: Generate friendly error messages for end-users while logging full context server-side.

Quick Start

Use the error-handling skill to add a custom error boundary to your React application.

Frequently Asked Questions about error-handling

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

FAQPage Schema
How do I implement error boundaries in a React application?

Error boundaries in React applications wrap components to catch and log JavaScript errors without crashing the app. The error-handling skill provides patterns to implement these boundaries, preventing unhandled exceptions from breaking the user interface.

What is the best way to add retry logic and circuit breakers for external dependencies?

Retry logic and circuit breakers manage unreliable external dependencies by automatically retrying failed requests and halting traffic during outages. The skill provides robust patterns to implement these mechanisms in TypeScript, Python, and Go applications.

How do I define typed errors and exception hierarchies in Python and Go?

Typed errors and exception hierarchies in Python and Go categorize distinct failure states to improve code maintainability. The skill provides patterns to define custom error types, allowing precise error handling and structured logging across your application.

Does this error handling skill support TypeScript and Go workflows?

The error handling skill explicitly supports TypeScript, Python, and Go workflows. It targets software engineering error management by providing language-specific patterns for error types, retries, and user-facing messages across these three environments.

How do I generate user-facing error messages while logging full server-side context?

User-facing error messages should display friendly summaries while logging full technical context server-side. The skill provides patterns to separate end-user notifications from detailed internal logging, ensuring security and debugging efficiency.