rename-symbol

rename-symbol is a skill for Claude Code from Goldziher/ai-rulez. It costs 32 tokens per session (129 once invoked), scanned A, original, MIT.

A repository-wide symbol renamer for a function, class, or constant. It replaces whole-word matches while avoiding strings and comments unless you request otherwise.

In plain words
What is it for?
Use it with an old and new name to update matching code, run the project's tests, and report any remaining matches and why they were kept.
Why use it?
It reduces the risk of missing references when changing an identifier used in several files.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it with an old and new name to update matching code, run the project's tests, and report any remaining matches and why they were kept.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldziher/ai-rulez/rename-symbol
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Goldziher/ai-rulez --skill rename-symbol
Clone the repo
git clone --depth 1 https://github.com/Goldziher/ai-rulez

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rename-symbol

README.md
[![agentmods](https://agentmods.dev/badge/skills/goldziher/ai-rulez/rename-symbol/github.svg)](https://agentmods.dev/skills/goldziher/ai-rulez/rename-symbol)
Your own site
<a href="https://agentmods.dev/skills/goldziher/ai-rulez/rename-symbol"><img src="https://agentmods.dev/badge/skills/goldziher/ai-rulez/rename-symbol/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rename-symbol

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldziher/ai-rulez/rename-symbol"><img src="https://agentmods.dev/badge/skills/goldziher/ai-rulez/rename-symbol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 129 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00129
Opus 5.5 $0.00013 $0.00052
Sonnet 5.5 $0.00006 $0.00026
Haiku 4.5 $0.00003 $0.00013

Measured today against content hash 060fcbe6f9c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rename-symbol scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

bench/judge/corpus/units/clean-06/.claude/skills/rename-symbol/SKILL.md · 12 lines

What it actually says

Rename symbol

  1. Search for the old name with git grep -n -w <old> and list the files.
  2. Replace whole-word matches only, and skip matches inside strings or comments unless the user says otherwise.
  3. Run the project's test command and report the result.
  4. Done when git grep -n -w <old> returns nothing, or each remaining match is listed with the reason it was kept.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 12 lines · 32 tokens per session scan A 060fcbe6f9c7

Subscribe to this mod's changes

rename-symbol is a skill published in the GitHub repository Goldziher/ai-rulez (163 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 129 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-17.

Related

Other skills, from other repositories

find-simplifications

Use for a periodic repo-wide sweep of qwen-code for accumulated excess surface — dead components and files, orphaned locale keys, exports nothing consumes, added-then-removed scaffolding — filing candidates on a tracking issue and landing only what a maintainer has said yes to. Repo-wide and evidence-first; every…

QwenLM/qwen-code · 103 tokens

swarm-pr-review

Run a graph-guided, tool-augmented PR review using context packing, parallel exploration, mandatory repository-agnostic risk-family coverage with dispatch scaled to diff size and risk, independent reviewer validation, critic challenge, and metrics writeback. Use for deep pull request review with low false-positive…

ZaxbyHub/opencode-swarm · 91 tokens

code-review

You are a senior code reviewer. You receive diffs via stdin.

jrswab/axe · 0 tokens

include-test-files-that-assert-on-behavior-being-changed-in-decl

When delegating a task affected by this skill, include.

ZaxbyHub/opencode-swarm · 29 tokens

review

Adversarial fresh-context review and risk check of an increment before it ships; every finding cites path:line and is re-verified. Use for "review", "qa", "quality check", "critique this".

anton-abyzov/specweave · 45 tokens

tech-debt-ci-review

Codex adapter for deep technical-debt and CI-stability audits. Use when asked to find test theater, flaky tests, missing or mis-scoped tests, brittle CI/toolchain behavior, structural debt blocking green PRs, or a remediation order for opencode-swarm.

ZaxbyHub/opencode-swarm · 61 tokens