Rename Code
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
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 RepositoryRelated Skills
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development