Download

slash command · Git & Code Review

Refactor Clean

by affaan-m

Safely identify and remove dead code with verification after each change.

Calyban is a free desktop app. It checks Refactor Clean for red flags before installing, lets you choose the agent and folder, and undoes it in one click.

Install Refactor Clean manually

Prefer the terminal? This does the same thing as Calyban's install.

Claude Code

mkdir -p ~/.claude/commands
curl -fsSL https://raw.githubusercontent.com/affaan-m/ECC/3f14a103a8694e51c1df9a806217a6d0b5f7a6f7/commands/refactor-clean.md -o ~/.claude/commands/refactor-clean.md

Codex

mkdir -p ~/.codex/prompts
curl -fsSL https://raw.githubusercontent.com/affaan-m/ECC/3f14a103a8694e51c1df9a806217a6d0b5f7a6f7/commands/refactor-clean.md -o ~/.codex/prompts/refactor-clean.md

Start a new Claude Code & Codex session afterwards so it picks up the change.

Similar slash commands

All slash commands →

Guides

Listed in the public Calyban catalog. Refactor Clean is made by affaan-m, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.