error-handling-architect
SkillDev toolsDesigns structured error hierarchies, domain error mapping, and resilient fallback/retry mechanisms across applications.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the error-handling-architect skill
What this skill tells your AI
The instructions your AI receives, as published by codebygarv/ai-skills in skills/development/error-handling-architect/SKILL.md and read by ahel’s review.
Purpose
Standardize application error handling into a coherent architecture: custom error hierarchies, typed domain errors, HTTP/RPC status mappings, sanitized client responses, and structured observability logs.
When to Use
- When error handling is fragmented with ad-hoc
try/catchblocks, string checks, or unhandled promise rejections. - Designing error responses for public REST/gRPC APIs.
- Setting up retry policies, circuit breakers, and graceful fallback behaviors.
What to Analyze
- Error Hierarchy: Base domain error, validation errors, not found errors, authorization errors, external service errors.
- Transport Mapping: Clean translation from internal domain error classes to HTTP status codes / RFC 7807 Problem Details.
- Data Sanitization: Stripping database credentials, stack traces, and internal URLs from client-facing responses.
- Telemetry & Log Context: Including correlation IDs, user IDs, and cause chains (
error.cause) in server logs. - Resilience Strategy: Idempotent retries with exponential backoff and jitter vs instant failure.
Output Format
- Error Class Hierarchy: TypeScript / language-specific error class definitions.
- Global Error Middleware: Centralized error interceptor / filter implementation.
- RFC 7807 Response Schema: Standard JSON structure returned to API consumers.
- Handling Matrix: Table mapping each Domain Error to HTTP Status, Log Level, and Retry Policy.
Avoid
- Catching errors and silently swallowing them (
catch (e) {}). - Leaking raw SQL error strings or file paths to API clients.
Signals
- GitHub stars
- 25
- Forks
- 1
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
error-handling-architect- Source
- github.com/codebygarv/ai-skills