/everything-claude-code:refactor-cleanfrom everything-claude-code
Safely identifies and removes dead code with test verification at each step. Supports TypeScript, Python, Go, Rust, and more via project-specific analysis tools.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /everything-claude-code:refactor-clean still runs it.
Safely identify and remove dead code with test verification at every step.
Run analysis tools based on project type:
| Tool | What It Finds | Command |
|---|---|---|
| knip | Unused exports, files, dependencies | npx knip |
| depcheck | Unused npm dependencies | npx depcheck |
| ts-prune | Unused TypeScript exports | npx ts-prune |
| vulture | Unused Python code | vulture src/ |
| deadcode | Unused Go code | deadcode ./... |
| cargo-udeps | Unused Rust dependencies | cargo +nightly udeps |
If no tool is available, use Grep to find exports with zero imports:
# Find exports, then check if they're imported anywhere
Sort findings into safety tiers:
| Tier | Examples | Action |
|---|---|---|
| SAFE | Unused utilities, test helpers, internal functions | Delete with confidence |
| CAUTION | Components, API routes, middleware | Verify no dynamic imports or external consumers |
| DANGER | Config files, entry points, type definitions | Investigate before touching |
For each SAFE item:
git checkout -- <file> and skip this itemBefore deleting CAUTION items:
import(), require(), __import__After removing dead code, look for:
Report results:
Dead Code Cleanup
──────────────────────────────
Deleted: 12 unused functions
3 unused files
5 unused dependencies
Skipped: 2 items (tests failed)
Saved: ~450 lines removed
──────────────────────────────
All tests passing ✅
What the command file sets; muted values are Claude Code's defaults
TypeScript, Python, Go, Rust
dead-code, code-cleanup, refactoring, test-verification, safe-deletion
7-day visitors to each command page
npx claudepluginhub tpavanipradeep/everything-claude-code --plugin everything-claude-code57 commands in this plugin
/asideAside CommandAnswer a quick side question without interrupting or losing context from the current task. Resume work automatically after answering./build-fixBuild and FixIncrementally fix build and type errors with minimal, safe changes./checkpointCheckpoint CommandCreate or verify a checkpoint in your workflow.24 plugins ship this exact command · first indexed Feb 20, 2026
Showing 6 of 24 plugins, one per repository first
Other plugins' commands for the same job