ワンクリックで
dead-code
Finds unused functions, variables, exports, and dependencies across the codebase
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Finds unused functions, variables, exports, and dependencies across the codebase
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Analyzes the current session's token usage, pinpoints where tokens were wasted, and produces concrete optimization actions
Generates API documentation from route definitions (Express, Fastify, Hono, etc.)
Adds caching to expensive operations - Redis, in-memory, HTTP cache headers
Staged değişiklikleri analiz edip Conventional Commits formatında commit mesajı oluşturur
Reports cyclomatic complexity hotspots and refactoring suggestions
Hata mesajı veya stack trace alır, kök nedeni bulur ve düzeltir
| name | dead-code |
| description | Finds unused functions, variables, exports, and dependencies across the codebase |
| user-invocable | true |
| allowed-tools | Bash Grep Glob Read |
| effort | medium |
npx ts-prune 2>/dev/null || npx unimported 2>/dev/null || echo "Running manual search"
# Exported but never imported
grep -r "^export " src/ --include="*.ts" -l | head -20
# Functions defined but never called
grep -r "^function \|^const .* = (" src/ --include="*.ts" | head -30
For each candidate, verify by searching for all usages across the codebase.
Report categories:
For safe-to-delete items: ask confirmation, then remove.
Never delete code you're not certain about - mark uncertain items with // TODO: verify unused.