Find and fix unsafe error handling in Leavn - try! force unwraps, empty catch blocks, silent try? failures
Scanned 2/12/2026
Install via CLI
openskills install willsigmon/sigstack---
name: Error Handling Auditor
description: Find and fix unsafe error handling in Leavn - try! force unwraps, empty catch blocks, silent try? failures
allowed-tools: Read, Edit, Grep
---
# Error Handling Auditor
Fix unsafe error handling:
1. **Find try! force unwraps**: Replace with do-catch + fallback
2. **Find empty catch {}**: Add `AppLog.error("Context: \(error)")`
3. **Find silent try?**: Add logging for important failures
Patterns:
```swift
// Fix try!
do {
result = try riskyOperation()
} catch {
AppLog.error("Operation failed: \(error)")
result = fallbackValue
}
// Fix empty catch
} catch {
AppLog.error("Failed to save: \(error)", category: .persistence)
}
```
Use when: Crash risks, silent failures, debugging issues, error handling audit
No comments yet. Be the first to comment!
Interact with the Paperclip control plane API to manage tasks, coordinate with other agents, and follow company governance. Use when you need to check assignments, update task status, delegate work, post comments, set up or manage routines (recurring scheduled tasks), or call any Paperclip API endpoint. Do NOT use for the actual domain work itself (writing code, research, etc.) — only for Paperclip coordination.