python-error-handling

Installation
Summary

Structured input validation, exception design, and graceful failure handling for Python applications.

  • Covers fail-fast validation patterns, meaningful exception hierarchies, and partial failure handling for batch operations
  • Includes Pydantic integration for complex input validation with automatic error messages and custom exception types with context
  • Demonstrates exception chaining to preserve debug trails, batch processing with per-item error tracking, and progress reporting for long operations
  • Provides guidance on mapping failures to standard Python exceptions and converting external data to domain types at system boundaries
SKILL.md

Python Error Handling

Build robust Python applications with proper input validation, meaningful exceptions, and graceful failure handling. Good error handling makes debugging easier and systems more reliable.

When to Use This Skill

  • Validating user input and API parameters
  • Designing exception hierarchies for applications
  • Handling partial failures in batch operations
  • Converting external data to domain types
  • Building user-friendly error messages
  • Implementing fail-fast validation patterns

Core Concepts

1. Fail Fast

Validate inputs early, before expensive operations. Report all validation errors at once when possible.

Related skills

More from wshobson/agents

Installs
6.9K
Repository
wshobson/agents
GitHub Stars
35.3K
First Seen
Jan 30, 2026