원클릭으로
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.