بنقرة واحدة
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.