Download

slash command · Git & Code Review

Refactor Code

by davila7

Intelligently refactor and improve code quality

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

Install Refactor Code 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/davila7/claude-code-templates/6c0bb15238cb5bfbf84ef27eb7e027720936e1e2/cli-tool/components/commands/utilities/refactor-code.md -o ~/.claude/commands/refactor-code.md

Codex

mkdir -p ~/.codex/prompts
curl -fsSL https://raw.githubusercontent.com/davila7/claude-code-templates/6c0bb15238cb5bfbf84ef27eb7e027720936e1e2/cli-tool/components/commands/utilities/refactor-code.md -o ~/.codex/prompts/refactor-code.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 Code is made by davila7, not Calyban. Inclusion isn't an endorsement and safety checks aren't a guarantee.