error-handling-patterns

Implement structured error handling patterns for TypeScript applications.

10|3|Updated Jan 2, 2026
One-click install
npx skills add https://github.com/autohandai/community-skills --skill error-handling-patterns-autohandai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-patterns
Source: https://github.com/autohandai/community-skills/tree/main/error-handling-patterns
Command: npx skills add https://github.com/autohandai/community-skills --skill error-handling-patterns-autohandai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It provides structured error handling approaches for TypeScript applications, including custom error classes, a Result type, React error boundaries, retry strategies, validation, and centralized logging.

Core Features & Use Cases

  • Custom Error Classes: AppError, ValidationError, NotFoundError, UnauthorizedError, ForbiddenError.
  • Result Type Pattern: Cleanly represent success/failure outcomes.
  • Error Boundaries (React) and Async Error Handling
  • Retry & Validation patterns
  • Logging Errors and Best Practices

Quick Start

Create typed error classes and wrappers, then propagate errors through API routes with consistent responses.