error-handling

Installation
SKILL.md

Error Handling Patterns & Best Practices

Comprehensive error handling strategies across languages and frameworks for building resilient, fault-tolerant software systems.

Error Handling Philosophy

Fail Fast

Detect problems as early as possible and report them immediately. Do not let invalid state propagate through the system.

  • Validate inputs at system boundaries
  • Use assertions for invariants during development
  • Throw on impossible states rather than returning defaults
  • Prefer compile-time checks over runtime checks

Fail Gracefully

When failure is unavoidable, degrade functionality rather than crashing the entire system.

  • Provide fallback values or cached responses
  • Shed load intelligently under pressure
Related skills

More from 1mangesh1/dev-skills-collection

Installs
1
GitHub Stars
3
First Seen
Apr 14, 2026