Detects unused exports, imports, and functions — confirms each removal with user
A Claude Code skill that finds code defined but never used, reports findings with location, and always confirms before removing — apparent dead code may be dynamically referenced or exported for external use.
git clone https://github.com/torifo/skills-dead-code /tmp/skills-dead-code
cp -r /tmp/skills-dead-code/dead-code ~/.claude/skills/Use for periodic codebase hygiene, before major refactors, or to reduce bundle size.
What it detects:
- Unused exports
- Unused imports
- Unreachable functions and variables
- Dead branches
What it does NOT do:
- Delete anything without confirmation
- Remove code that might be dynamically referenced
未使用のエクスポート・インポート・関数を検出し削除前に確認する
Claude Code のスキル。定義されているが使われていないコードを見つけ、場所とともに報告します。削除前に必ず確認を取ります。
git clone https://github.com/torifo/skills-dead-code /tmp/skills-dead-code
cp -r /tmp/skills-dead-code/dead-code ~/.claude/skills/定期的なコードベースの整理、大規模リファクタリング前、バンドルサイズ削減時に使います。
検出対象:
- 未使用のエクスポート
- 未使用のインポート
- 到達不能な関数と変数
- デッドブランチ
しないこと:
- 確認なしに何も削除しない
- 動的に参照される可能性があるコードは削除しない