Output SDK Error Handling
Optimizes Output SDK workflows by eliminating try-catch anti-patterns to restore native retry logic and proper error propagation.
This skill helps developers maintain robust AI workflows using the Output SDK by identifying and fixing incorrect error handling patterns. It specifically targets the common mistake of wrapping step calls in try-catch blocks, which inadvertently disables the SDK's built-in retry mechanisms and leads to silent failures or unexpected behavior. By ensuring errors propagate naturally, this skill restores proper observability, enables configured retry policies to function as intended, and ensures that FatalError is used strictly for non-recoverable failures.
Key Features
01Provides implementation patterns for valid fallback and aggregate logic
02Restores native Output SDK retry functionality
03Detects incorrect wrapping of retryable errors with FatalError
04Includes automated search commands for auditing workflow codebases
05Identifies swallowed errors in workflow step calls
06419 GitHub stars
Use Cases
01Fixing workflows where automated retries are not triggering despite proper configuration
02Refactoring legacy workflow code to adhere to Output SDK best practices
03Debugging silent failures where error context is lost in generic catch blocks