Rename Code — Development skill for Claude Code
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
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 RepositoryRelated Skills
Pre Ship Adversary
Before committing a non-trivial change, spend 2-3 minutes attacking the change yourself — scope creep, failure
Context Fix
Apply threadctx's safe, mechanical fixes to agent instructions and show the diff. Never commits.
Update Scaffold
Check for and apply myPKA scaffold framework updates safely. Shows a plain-English plan first (what is new, wh
Cpv Batch Scope Fix
Apply fixes for scope-aware doctor findings across a fleet of project folders. One cpv-doctor-agent per projec
Cmux Did Spawn
Orient yourself as orchestrator over a full-stack team that was just scripted into its own cmux window. Reads
Clean Worktrees
Automatically clean all stale worktrees (pruned refs + merged branches)
Related Agents
Quick Worker
Haiku-tier worker for small, mechanical subtasks: fix a typo, rename a symbol in one file, reformat, bump a ve
Team Mechanical Refactorer
Pure mechanical refactoring — rename, inline, extract, simplify, or reorganize code with zero behavior change.
Edit Applier
Applies one fully specified mechanical transformation to an explicit, exclusively assigned file set. Writable.