Safely renames a function, variable, type, or class across the entire codebase
Scanned 6/1/2026
Install via CLI
openskills install berkcangumusisik/claude-code-practices---
name: rename-symbol
description: Safely renames a function, variable, type, or class across the entire codebase
argument-hint: <old-name> <new-name>
user-invocable: true
allowed-tools: Bash Grep Read Edit
effort: low
---
## Rename Symbol
Old name: **$1**
New name: **$2**
1. Find all occurrences:
```bash
grep -rn "\b$1\b" . --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx" --exclude-dir=node_modules --exclude-dir=dist
```
2. Categorize occurrences:
- Definition (function/class/type declaration)
- Call sites
- Type annotations
- Imports/exports
- Test files
- Comments and documentation
- String literals (flag separately - may be API contracts)
3. Show the full list. Flag any in string literals or external-facing API contracts as risky.
4. Ask for confirmation, then rename all (except flagged ones).
5. Run type check to verify:
```bash
npx tsc --noEmit
```
Report any errors introduced.
No comments yet. Be the first to comment!
Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...