error-handler-hunt
Identifies dangerous patterns like empty catch blocks to ensure solid error handling.
Install
mkdir -p .claude/skills/error-handler-hunt && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10500" && unzip -o skill.zip -d .claude/skills/error-handler-hunt && rm skill.zipInstalls to .claude/skills/error-handler-hunt
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
サイレント失敗を検出し、堅牢なエラーハンドリングを確保する。PRレビューでのエラーハンドリング検査時に使用。Key capabilities
- →Detect silent failures
- →Identify poor error handling
- →Report critical issues
- →Suggest remediation
How it works
Scans code for patterns like empty catch blocks or suppressed promises to identify potential silent failures.
Inputs & outputs
When to use error-handler-hunt
- →Review PR for error handling
- →Find hidden bugs
- →Refactor error catching logic
About this skill
Error Handler Hunt スキル
目的
サイレント失敗を検出し、堅牢なエラーハンドリングを確保する。
コア原則(譲歩不可)
- 沈黙する失敗は受け入れられない
- ユーザーは実行可能なフィードバックに値する
- フォールバックは明示的で正当化される必要がある
- キャッチブロックは特定的でなければならない
- Mock/Fake実装は本番コードに属さない
検査対象パターン
以下のコードパターンを重点的に検査:
- try-catch ブロック
- エラーコールバック・イベントハンドラー(
.catch(),onError) - 条件分岐によるエラー処理(
if (error),if (!result)) - フォールバックロジック(デフォルト値、代替処理)
- オプショナルチェーン・Null合体(
?.,??)
禁止パターン(必ず報告)
- 空の catch:
catch (e) {} - console.log のみ:
catch (e) { console.log(e); } - エラー握りつぶし:
catch (e) { return null; }
重大度レベル
| レベル | 説明 | 例 |
|---|---|---|
| CRITICAL | サイレント失敗、ブロード catch | 空のcatchブロック、catch(e) {} |
| HIGH | 不十分なエラーメッセージ | console.log("error") のみ |
| MEDIUM | コンテキスト不足 | エラーの原因が不明確 |
出力形式
結果は以下のMarkdown形式で出力してください。
# Error Handler Hunt Results
## CRITICAL Issues
- [ファイル名:行番号] 問題の説明
- コード: 問題のあるコード
- 問題: 何が問題か
- リスク: ユーザーへの影響
- 修正提案: 推奨される修正
## HIGH Issues
- [ファイル名:行番号] 問題の説明
- コード: ...
- 問題: ...
- 修正提案: ...
## Summary
- CRITICAL: X
- HIGH: X
- MEDIUM: X
注意事項
- 本番コードのエラーハンドリングのみを対象
- テストコードのモック/スタブは対象外
- フォールバックには正当な理由が必要
When not to use it
- →For test code
- →For non-production code
Limitations
- →Cannot detect all logic-based silent failures
- →Requires manual review of reported issues
How it compares
Provides a systematic audit of error handling rather than relying on manual code review.
Compared to similar skills
error-handler-hunt side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| error-handler-hunt (this skill) | 0 | 6mo | No flags | Intermediate |
| javascript-mastery | 7 | 6mo | No flags | Beginner |
| tech-debt-analyzer | 5 | 9mo | Review | Intermediate |
| error-handling | 2 | 2mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by feel-flow
View all by feel-flow →You might also like
javascript-mastery
davila7
Comprehensive JavaScript reference covering 33+ essential concepts every developer should know. From fundamentals like primitives and closures to advanced patterns like async/await and functional programming. Use when explaining JS concepts, debugging JavaScript issues, or teaching JavaScript fundamentals.
tech-debt-analyzer
ailabs-393
This skill should be used when analyzing technical debt in a codebase, documenting code quality issues, creating technical debt registers, or assessing code maintainability. Use this for identifying code smells, architectural issues, dependency problems, missing documentation, security vulnerabilities, and creating comprehensive technical debt documentation.
error-handling
EpicenterHQ
Error handling patterns using wellcrafted trySync and tryAsync. Use when writing error handling code, using try-catch blocks, or working with Result types and graceful error recovery.
codex-code-review
tyrchen
Perform comprehensive code reviews using OpenAI Codex CLI. This skill should be used when users request code reviews, want to analyze diffs/PRs, need security audits, performance analysis, or want automated code quality feedback. Supports reviewing staged changes, specific files, entire directories, or git diffs.
dead-code
parcadei
Find unused functions and dead code in the codebase
typescript-circular-dependency
blader
Detect and resolve TypeScript/JavaScript circular import dependencies. Use when: (1) "Cannot access 'X' before initialization" at runtime, (2) Import returns undefined unexpectedly, (3) "ReferenceError: Cannot access X before initialization", (4) Type errors that disappear when you change import order, (5) Jest/Vitest tests fail with undefined imports that work in browser.