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
- Dao Code — Open-source TypeScript terminal coding agent for DeepSeek-V4 — builds on DeepSeek's strong price-performance a 1.3k ★
- Evolving Agents — A director agent that learns how your team works: it plans by walking your CLAUDE.md and memory as linked stat 453 ★
- Update Scaffold — Check for and apply myPKA scaffold framework updates safely 296 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Ronin Toolkit
Claude Code plugins for sysadmins and MSP techs. Run IT projects and troubleshooting in cheap, evidence-first
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.
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.
Lite Scan
Low-cost read-only scanner for mechanical lookups — file/symbol inventory, grep/stats aggregation, fixture sam