Claude-skill-registry Error Handling Auditor

Find and fix unsafe error handling in Leavn - try! force unwraps, empty catch blocks, silent try? failures

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/error-handling-auditor" ~/.claude/skills/majiayu000-claude-skill-registry-error-handling-auditor && rm -rf "$T"
manifest: skills/data/error-handling-auditor/SKILL.md
source content

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:

// 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