Skip to content
Back to skills

Rename Symbol

ASecurity

Renames a function, class or variable everywhere, including strings, docs and tests, then verifies the build still passes.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentssqlapidatabase

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --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/workspace-templates-rename-symbol/badge)](https://www.skillsdirectory.com/skills/workspace-templates-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: Renames a function, class or variable everywhere, including strings, docs and tests, then verifies the build still passes.
argument-hint: "[old name] to [new name]"
user-invocable: true
disable-model-invocation: true
---

Rename a symbol: $ARGUMENTS (format: old to new).

1. Confirm the old name's definition and kind (function, class, field, column, env var, route). If the new name already exists in scope, stop and report the clash.
2. Find all uses with the language server or `grep -rnw` across code, tests, config, docs, scripts, templates, CI files and SQL. Search also for case variants (camelCase, snake_case, kebab-case, UPPER_CASE) and for the name inside strings.
3. Sort hits into: real references to rename; same word with another meaning (leave); public or persisted names such as an API field, database column, event name or env var, where renaming breaks clients or stored data.
4. If a public or persisted name is involved, stop and ask first, since it needs a migration or a deprecation alias.
5. Apply the rename to the real references only. Do not reformat other lines.
6. Run the type check, build and tests. Grep once more for the old name and explain each remaining hit.

Report the count of changed files and the leftover hits. Ask before committing.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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