error-handling
Implements error handling patterns, structured logging, retry strategies, circuit breakers, and graceful degradation. Use when designing error handling, setting up logging, implementing retries, adding error tracking, or when asked about error boundaries, log aggregation, alerting, or resilience patterns.
npx skills add CloudAI-X/claude-workflow-v2 --skill error-handling --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Error Handling & Observability ### When to Load - **Trigger**: Try/catch patterns, retry logic, error responses, circuit breakers, structured logging - **Skip**: No error handling or observability involved in the current task ## Error Handling Workflow Copy this checklist and track progress: ``` Error Handling Progress: - [ ] Step 1: Define error taxonomy (categories and severity) - [ ] Step 2: Implement error handling by layer - [ ] Step 3: Set up structured logging - [ ] Step 4: Add retry and circuit breaker patterns - [ ] Step 5: Configure error tracking service - [ ] Step 6: Define user-facing error messages - [ ] Step 7: Validate against anti-patterns checklist ``` ## Error Handling Patterns by Language ### JavaScript / TypeScript ```typescript // Custom error hierarchy class AppError extends Error { constructor( message: string, public statusCode: number = 500, public code: string = "INTERNAL_ERROR", public isOperational: boolean = true, ) { super(message); this.name = this.constructor.name; } } class NotFoundError extends AppError { constructor(resource: string, id: string) { super(`${resource} with id ${id} not found`, 404, "NOT_FOUND"); } } class ValidationError extends
- When to Load
- Error Handling Workflow
- Error Handling Patterns by Language
- JavaScript / TypeScript
- Express Global Error Handler
- Python
- Go
- Structured Logging
- JSON Log Format
- Correlation IDs
- Log Levels Guide
- Error Boundaries and Graceful Degradation
- React Error Boundary
- Service Degradation
What does the error-handling skill do?
Implements error handling patterns, structured logging, retry strategies, circuit breakers, and graceful degradation. Use when designing error handling, setting up logging, implementing retries, adding error tracking, or when asked about error boundaries, log aggregation, alerting, or resilience patterns.
How do I install it?
Run `npx skills add CloudAI-X/claude-workflow-v2 --skill error-handling --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From CloudAI-X/claude-workflow-v2, a repository with 1,397 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
