一键导入
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.