Skip to content
Back to skills

Rename Symbol

ASecurity

Safely renames a function, variable, type, or class across the entire codebase

  • 10 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 1, 2026
ai-agentsgobashnodeapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill rename-symbol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rename Symbol?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rename Symbol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-rename-symbol/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-rename-symbol)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.