itsual/agent-skills-collection/error-handling-strategy

Claude Code and agent skill by itsual/agent-skills-collection

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Design consistent, informative, and safe error handling across the stack. Use when defining how failures are detected, reported, logged, and surfaced to users or callers.

Install

npx vskill@latest install itsual/agent-skills-collection/error-handling-strategy

SKILL.md

The same SKILL.md was published earlier as itsual/agent-skills-collection/error-handling-strategy.

Error Handling Strategy

Overview

Good error handling improves debuggability, user experience, and system resilience. Inconsistent or leaky error handling is a common source of production pain.

When to Use

  • Designing new services or APIs
  • Reviewing existing error paths
  • Standardizing error codes, messages, or exception hierarchies
  • Improving observability of failures

Core Principles

  • Fail fast for programmer errors; handle expected failures gracefully
  • Preserve context (correlation IDs, causes) without leaking sensitive data
  • Make errors actionable for both operators and (when appropriate) end users
  • Prefer explicit error types/codes over generic catch-alls
  • Log at the right level with enough context to diagnose

Recommended Practices

  • Distinguish between domain/business errors and technical/infrastructure errors
  • Use structured error responses for APIs
  • Avoid exposing internal stack traces or secrets to clients
  • Ensure transient errors are retried appropriately (see resilience patterns)
  • Centralize mapping of internal errors to external representations where helpful

Verification

  • Common failure modes have clear, consistent handling
  • Logs and metrics make it possible to diagnose production errors
  • User-facing messages are helpful without being dangerous

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
6
Repository forks
1
7-day trend score
15

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/itsual/agent-skills-collection/error-handling-strategy/badge)](https://verified-skill.com/skills/itsual/agent-skills-collection/error-handling-strategy)

Something wrong with this skill or its page? Tell us.