Rename Code banner
lelandg lelandg

Rename Code

Development community

Description

--- description: Safely rename a symbol/string across the codebase — grep all refs, scope-check, apply, verify with build + zero-straggler grep. Delegates to a Haiku agent (cheap, mechanical). argument-hint: <old> <new> [path-scope] allowed-tools: Bash, Grep, Glob, Read, Agent --- Rename **`$1` → `$2`** across the codebase. Optional path scope: `$3` (default: repo root, excluding `node_modules`, generated dirs, `.git`, build output). This is mechanical but dangerous (a missed call site breaks

Installation

Installs to ~/.claude/commands/lelandg-.claude_code-rename-code.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/lelandg/.claude_code/HEAD/.claude/commands/rename-code.md -o ~/.claude/commands/lelandg-.claude_code-rename-code.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository