Skip to content

torifo/skills-dead-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

English | 日本語


English

skills-dead-code

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.

Install

git clone https://github.com/torifo/skills-dead-code /tmp/skills-dead-code
cp -r /tmp/skills-dead-code/dead-code ~/.claude/skills/

Usage

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

日本語

skills-dead-code

未使用のエクスポート・インポート・関数を検出し削除前に確認する

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/

使い方

定期的なコードベースの整理、大規模リファクタリング前、バンドルサイズ削減時に使います。

検出対象:

  • 未使用のエクスポート
  • 未使用のインポート
  • 到達不能な関数と変数
  • デッドブランチ

しないこと:

  • 確認なしに何も削除しない
  • 動的に参照される可能性があるコードは削除しない

About

Claude Code skill: detects unused exports, imports, and functions — confirms each removal / 未使用のエクスポート・インポート・関数を検出し削除前に確認する

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors