Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
shipshitdev avatar

Error Handling Expert

  • 128 installs
  • 31 repo stars
  • Updated August 2, 2026
  • shipshitdev/library

Design structured error types, HTTP status mapping, retries, logging context, and user-safe failure messages for services and CLIs.

About

Guides implementation of production-grade error handling for APIs, SaaS backends, and CLIs: typed failures, correct status mapping, retries, structured logging, and safe user messaging so outages are debuggable and predictable.

  • Typed error taxonomy and wrappers
  • HTTP status and client error mapping
  • Retry, timeout, and idempotency guidance
  • Structured logs with correlation context
  • User-safe versus operator-rich messages

Error Handling Expert by the numbers

  • 128 all-time installs (skills.sh)
  • +1 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #2,758 of 4,347 Backend & APIs skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/shipshitdev/library --skill error-handling-expert

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs128
repo stars31
Last updatedAugust 2, 2026
Repositoryshipshitdev/library

What it does

Design structured error types, HTTP status mapping, retries, logging context, and user-safe failure messages for services and CLIs.

Files

SKILL.mdMarkdownGitHub ↗

Error Handling Expert Skill

Expert in error handling patterns, exception management, error responses, logging, and error recovery strategies for React, Next.js, and NestJS applications.

When to Use

  • Implementing error handling
  • Creating exception filters
  • Designing error responses
  • Setting up error logging
  • Implementing error recovery
  • Handling async errors
  • Creating error boundaries
  • Implementing retry logic

Project Context Discovery

Before providing guidance:

1. Check .agents/memory/ for project architecture and error patterns 2. Review existing exception filters 3. Check for error monitoring (Sentry, Rollbar) 4. Review logging libraries (Winston, Pino)

Core Principles

Error Types

Application Errors: 400, 401, 403, 404, 409, 422 System Errors: 500, 502, 503, 504

Error Response Format

{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Validation failed",
    "details": [...],
    "timestamp": "2025-01-01T00:00:00Z",
    "path": "/api/users",
    "requestId": "req-123456"
  }
}

Quick Patterns

NestJS Exception Filter

@Catch()
export class AllExceptionsFilter implements ExceptionFilter {
  catch(exception: unknown, host: ArgumentsHost) {
    // Log, format, respond
  }
}

React Error Boundary

class ErrorBoundary extends React.Component {
  componentDidCatch(error, errorInfo) {
    // Log to monitoring
  }
}

Retry with Backoff

async function retryWithBackoff<T>(fn, maxRetries = 3): Promise<T>

Best Practices

  • User-friendly messages, no sensitive info
  • Log all errors with context
  • Integrate error monitoring (Sentry)
  • Implement retry logic and circuit breakers
  • Provide fallback values
  • Test error cases

Recovery Strategies

1. Retry Logic - Exponential backoff 2. Circuit Breaker - Prevent cascade failures 3. Fallback Values - Graceful degradation

---

For complete exception filter implementations, custom exceptions, validation pipe setup, error boundaries, circuit breaker pattern, logging integration, and database/API error patterns, see: references/full-guide.md

Related skills

Backend & APIsbackendtesting

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.