lelandg

Rename Code — Development skill for Claude Code

Development community

Safely rename a symbol/string across the codebase — grep all refs, scope-check, apply, verify with build + zero-straggler grep.

How to install Rename Code

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.

What Rename Code does


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: [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

Alternatives in Development

  • MCP Language Server — mcp-language-server gives MCP enabled clients access semantic tools like get definition, references, rename, a 1.5k ★
  • Dao Code — Open-source TypeScript terminal coding agent for DeepSeek-V4 — builds on DeepSeek's strong price-performance a 1.3k ★
  • Agentlas One — Turn the persistent Agentlas One personal agent on or off, or rename it 1.1k ★

Full documentation available on GitHub

View Source Repository