Skip to content
cccskills
FreePublished on GitHub

error-handler-hunt

サイレント失敗を検出し、堅牢なエラーハンドリングを確保する。PRレビューでのエラーハンドリング検査時に使用。

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

注意事項

  • 本番コードのエラーハンドリングのみを対象
  • テストコードのモック/スタブは対象外
  • フォールバックには正当な理由が必要

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

プロジェクトガイドラインへの準拠をチェックし、バグ、スタイル違反、コード品質問題を検出する。PRレビュー時に使用。

The English summary is being prepared. Showing the original description.

feel-flow/ai-spec-driven-development7Updated Oct 18, 2026

Enforces project coding standards during code review: naming conventions (PascalCase for classes, camelCase for methods/variables, UPPER_SNAKE_CASE for constants, kebab-case for files), standard file structure, anti-magic-number policy, file size limits (500/800 lines), security patterns, and design patterns. Use when reviewing code, writing new code, or checking adherence to project conventions.

The English summary is being prepared. Showing the original description.

feel-flow/ai-spec-driven-development7Updated Oct 18, 2026

機能を保持したまま不要な複雑性を排除し、コードの簡潔性と可読性を向上させる。30行超の関数や3段以上のネスト検出時に使用。

The English summary is being prepared. Showing the original description.

feel-flow/ai-spec-driven-development7Updated Oct 18, 2026

コードコメントの正確性、完全性、長期的な保守性を分析する。JSDoc、コメント、README等のドキュメントが変更された場合に使用。

The English summary is being prepared. Showing the original description.

feel-flow/ai-spec-driven-development7Updated Oct 18, 2026

Enforces error handling standards: silent error prohibition, custom error class hierarchy (AppError base with category never-fallback / transient / permanent, cause preservation, ValidationError / UnauthorizedError / UpstreamError etc. — canonical definitions in ERRORS.md), external-boundary normalization (normalizeExternalError), Result pattern (Result.ok/Result.fail), proper try-catch with error type checking, structured error logging with a single Logger contract, fallback prohibition categories (isNeverFallback), and HTTP status code mapping. Use when implementing error handling, reviewing catch blocks, or designing error responses.

The English summary is being prepared. Showing the original description.

feel-flow/ai-spec-driven-development7Updated Oct 18, 2026

Creates and reviews agent skills safely by enforcing deletion-prevention harness rules: no fixed absolute temp paths, no cwd-dependent cleanup, no wildcard deletes, no workspace-external file operations, no silent cleanup failures, and mandatory temp-root validation before any destructive command. Use when creating a new skill, updating an existing SKILL.md, or reviewing prompts/runbooks that include temp files, extraction, cleanup, PowerShell, bash, rm, del, Remove-Item, or archive expansion.

The English summary is being prepared. Showing the original description.

feel-flow/ai-spec-driven-development7Updated Oct 18, 2026

See all skills by feel-flow

Report a problem with this skill