Global Error Handling

Implements consistent error handling with standardized messages and HTTP status codes for API endpoints.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/alenon/portfolios --skill global-error-handling-alenon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Global Error Handling
Source: https://github.com/alenon/portfolios/tree/main/.claude/skills/global-error-handling
Command: npx skills add https://github.com/alenon/portfolios --skill global-error-handling-alenon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill establishes a unified approach to error handling across your entire application, improving reliability, debugging, and user experience. It ensures that errors are caught, logged, and presented consistently, reducing system crashes and simplifying troubleshooting.

Core Features & Use Cases

  • Standardized Error Responses: Guides AI to return consistent error messages and HTTP status codes for API endpoints.
  • Graceful Degradation: Ensures the application handles unexpected issues without crashing, maintaining a stable user experience.
  • Use Case: When developing a new API endpoint, this skill ensures that all potential failure points (e.g., database errors, invalid input) are handled gracefully, returning clear, actionable error messages to the client.

Quick Start

Use the Global Error Handling skill to implement proper error handling for the CreatePortfolio function in internal/services/portfolio.go, ensuring consistent logging and API responses.