ER

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.zip

Installs 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レビューでのエラーハンドリング検査時に使用。
54 charsno explicit “when” trigger
Intermediate

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

You give it
Source code
You get back
Error handling report

When to use error-handler-hunt

  • Review PR for error handling
  • Find hidden bugs
  • Refactor error catching logic

About this skill

Error Handler Hunt スキル

目的

サイレント失敗を検出し、堅牢なエラーハンドリングを確保する。

コア原則(譲歩不可)

  1. 沈黙する失敗は受け入れられない
  2. ユーザーは実行可能なフィードバックに値する
  3. フォールバックは明示的で正当化される必要がある
  4. キャッチブロックは特定的でなければならない
  5. Mock/Fake実装は本番コードに属さない

検査対象パターン

以下のコードパターンを重点的に検査:

  1. try-catch ブロック
  2. エラーコールバック・イベントハンドラー(.catch(), onError
  3. 条件分岐によるエラー処理(if (error), if (!result)
  4. フォールバックロジック(デフォルト値、代替処理)
  5. オプショナルチェーン・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.

SkillInstallsUpdatedSafetyDifficulty
error-handler-hunt (this skill)06moNo flagsIntermediate
javascript-mastery76moNo flagsBeginner
tech-debt-analyzer59moReviewIntermediate
error-handling22moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

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.

731

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.

522

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.

27

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.

16

dead-code

parcadei

Find unused functions and dead code in the codebase

16

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.

14

Search skills

Search the agent skills registry