Toolverse
All skills

python-error-handling

by wshobson

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
wshobson
Category
UX / Design
Views
5

About this skill

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

How to use

  1. Zainstaluj umiejętność w swoim projekcie agenta, dodając ją do konfiguracji skills lub importując z repozytorium wshobson/agents. 2. Przeczytaj sekcję "When to Use This Skill" aby zidentyfikować, gdzie w Twoim kodzie powinna być zastosowana — najczęściej na granicach API, przy walidacji parametrów użytkownika lub w logice przetwarzania danych. 3. Zastosuj wzorzec "Fail Fast": umieść walidację wszystkich wejść na początku funkcji, zanim wykonasz kosztowne operacje, i raportuj wszystkie błędy walidacji jednocześnie. 4. Dla każdego punktu walidacji użyj odpowiedniego typu wyjątku (np. ValueError dla błędnych wartości) z jasnym komunikatem wyjaśniającym co się nie powiodło, dlaczego i jak to naprawić. 5. W operacjach zbiorczych (batch processing) śledź sukcesy i porażki osobno zamiast przerywać całą operację przy pierwszym błędzie — to jest wzorzec "Partial Failures". 6. Łańcuchuj wyjątki aby zachować pełny ślad błędu dla debugowania, używając klauzuli "from" w Pythonie — dzięki temu łatwiej będzie znaleźć pierwotną przyczynę problemu.

Related skills

godot-gdscript-patterns

by sickn33

Master Godot 4 GDScript patterns including signals, scenes, state machines, and optimization. Use when building Godot games, implementing game systems, or learning GDScript best practices.

UX / Design
27105

scroll-experience

by davila7

Expert in building immersive scroll-driven experiences - parallax storytelling, scroll animations, interactive narratives, and cinematic web experiences. Like NY Times interactives, Apple product pages, and award-winning web experiences. Makes websites feel like experiences, not

UX / Design
75117

error-handling-patterns

by wshobson

Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.

UX / Design
22145

mcp-builder

by anthropics

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

UX / Design
91171

competitive-landscape

by wshobson

This skill should be used when the user asks to \

UX / Design
1457

ffmpeg-cli

by openclaw

Comprehensive video/audio processing with FFmpeg. Use for: (1) Video transcoding and format conversion, (2) Cutting and merging clips, (3) Audio extraction and manipulation, (4) Thumbnail and GIF generation, (5) Resolution scaling and quality adjustment, (6) Adding subtitles or

UX / Design
4298