Use Context Reviewer Silence

サイレント失敗の検出。セキュリティ (use-context-reviewer-security)、可読性 (use-context-reviewer-readability) には使わない。

thkt Updated

File contents

use-context-reviewer-silence

検出

ID パターン 修正
SF1 catch (e) {} catch (e) { logger.error(e); throw }
SF1 catch (e) { console.log(e) } ユーザーへのフィードバック + コンテキスト ログ
SF2 .then(fn).catch() なし .catch() 追加または try/catch を使う
SF2 async () => { await fn() } try/catch でラップしエラーを扱う
SF3 エラー UI 状態なし error boundary、フィードバック コンポーネント追加
SF4 value ?? defaultValue のサイレント フォールバック使用時にログ
SF4 data?.nested?.value 想定外の null をチェックして報告
SF5 catch { return defaultValue } デフォルトを返す前に根本原因をログ
SF5 config.x || fallback 設定をバリデーション、欠落キーは warn

参照ファイル

検出パターンの詳細は ${CLAUDE_SKILL_DIR}/references/detection-patterns.md。

thkt/claude-config/tree/main/.ja/skills/use-context-reviewer-silence commit 18d6be61df

Frequently asked questions

npx skillmds@latest add thkt/use-context-reviewer-silence-2