error-handling-expert

Standardize error handling patterns for React, Next.js, and NestJS applications.

2|1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/genfeedai/genfeed.ai --skill error-handling-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-handling-expert
Source: https://github.com/genfeedai/genfeed.ai/tree/main/.agents/skills/error-handling-expert
Command: npx skills add https://github.com/genfeedai/genfeed.ai --skill error-handling-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Standardizes error handling across React, Next.js, and NestJS applications to reduce downtime and improve user experience.

Core Features & Use Cases

  • Global exception filters and error boundaries for frontend and backend
  • Structured error responses, validation pipelines, and centralized logging
  • Monitoring integration and robust recovery patterns (retry, circuit breaker, fallbacks)

Quick Start

Integrate the patterns into your project to implement consistent error handling across stacks.

Frequently Asked Questions about error-handling-expert

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

FAQPage Schema
How do I implement global error handling in NestJS and Next.js applications?

Implement global exception filters in NestJS and error boundaries in React to standardize error handling. This approach centralizes validation pipelines, structures error responses, and integrates monitoring to reduce downtime across frontend and backend workflows.

What is the best way to handle API validation errors in a NestJS REST service?

Use NestJS validation pipes combined with global exception filters to handle API validation errors. This standardizes structured error responses and integrates centralized logging for consistent backend error management across REST and GraphQL services.

How do retry patterns and circuit breakers work for recovering from backend failures?

Retry patterns and circuit breakers provide robust recovery strategies for backend failures. They automatically retry failed requests, open circuits to halt traffic during outages, and trigger fallback responses to maintain application stability and improve user experience.

Can I use the same error handling patterns for both GraphQL and REST APIs in NestJS?

Yes, you can apply the same error handling patterns to GraphQL and REST APIs in NestJS. Global exception filters and centralized logging templates standardize error responses and recovery strategies uniformly across both service types.

Why do I need structured logging when setting up exception filters?

Structured logging is needed alongside exception filters to capture detailed, consistent error context. It enables monitoring integration, tracks validation failures across services, and supports robust recovery analysis for both frontend and backend workflows.

Does this error handling approach work with React frontend applications or only backend services?

This approach works with both React frontend applications and backend services. It defines React error boundaries for frontend recovery alongside NestJS exception filters, covering validation handling and structured logging across the full stack.