rename-references

rename-references is a skill for Claude Code, Codex from melodic-software/claude-code-plugins. It costs 136 tokens per session (4,612 once invoked), scanned A, original, MIT.

A reference-checking tool for after a skill, file, or identifier has been renamed.

In plain words
What is it for?
Use it to check a repository after renaming files, skills, identifiers, or related paths.
Why use it?
It finds stale references that a simple search for the old name may miss, including paths, lists, prose, and configuration patterns.

Skill for Claude CodeCodex

Part of the docs-hygiene plugin — 11 skills shipped together

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.

agentmods
npx agentmods add skills/melodic-software/claude-code-plugins/rename-references
Any agent
npx skills add melodic-software/claude-code-plugins --skill rename-references
Clone the repo
git clone --depth 1 https://github.com/melodic-software/claude-code-plugins

Made for: Claude Code, Codex.

Or install docs-hygiene, the plugin that ships this one along with the rest of its 11 skills.

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-references

README.md
[![agentmods](https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/rename-references.svg)](https://agentmods.dev/skills/melodic-software/claude-code-plugins/rename-references)
Your own site
<a href="https://agentmods.dev/skills/melodic-software/claude-code-plugins/rename-references"><img src="https://agentmods.dev/badge/skills/melodic-software/claude-code-plugins/rename-references.svg" alt="Measured on agentmods" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,612 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00136 $0.04612
Opus 5 $0.00068 $0.02306
Sonnet 5 $0.00027 $0.00922
Haiku 4.5 $0.00014 $0.00461

Measured yesterday against content hash 698a758667b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rename-references 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 yesterday.

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.

plugins/docs-hygiene/skills/rename-references/SKILL.md · 173 lines

How it starts

The opening of the file, as written. The whole thing — 173 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Pre-computed context

Working tree status (empty = clean): !{ git status --porcelain 2>/dev/null || echo "(git status unavailable)"; } | head -20 Rename pairs (git): !{ git diff --name-status -M HEAD 2>/dev/null; git diff --cached --name-status -M 2>/dev/null; } | grep '^R' | head -15 || echo "none" Current branch: !git branch --show-current 2>/dev/null || echo "unknown"

Purpose

Renames are deceptively hard. After renaming a skill, file, or identifier, references survive in 7+ syntactic forms beyond the obvious token. Token-only grep (/old) catches 50–70%; the rest hide in chain prose (→ old →), comma-lists (Test, Old, Retro), numbered table rows (| 7. Old |), frontmatter chain strings (description: "...→ old → retro process."), frontmatter globs ({a,b,old,c}), cross-skill mode references, and content-file paths (context/old.md style).

This skill makes "find every reference" one invocation instead of 4 manual sweep passes. It runs the full pattern library, triages matches into 3 buckets, and surfaces ambiguity (English-verb collisions like confirm/test/review) for user confirmation rather than auto-applying blindly.

Adapting to your environment

This skill is self-contained, the pattern library, triage classifier, and audit modes below need only git and the Grep tool. Where prose names an adjacent capability (a verification workflow, an issue tracker, a codebase-audit routine), treat it as optional: if your environment provides it, invoke it; otherwise proceed without. Consumer-specific conventions (work-notes locations, commit policy, naming rules) come from the consuming repository's own CLAUDE.md and rules. Read them; this skill does not assume them.

Action router

Parse $ARGUMENTS first token to determine action. Subsequent tokens are the rename pair (with to//->/into separator) or single token for reverse-mode.

Argument shape Action Read
(empty) Smart default inline below. Detect rename pair from conversation/git/staged
audit Audit (read-only sweep. Alias for audit blast) context/audit.md + audit-modes.md
audit <old> or audit <old> to <new> Audit with explicit pair context/audit.md
audit blast [<old> [to <new>]] Audit Blast. Pre-rename impact (counts + per-file + bucket distribution; inline-only) audit-modes.md
audit half-rename <old> to <new> Audit Half-Rename. Files mentioning BOTH old AND new (incomplete-rename hygiene) audit-modes.md
audit orphans <old> to <new> Audit Orphans. Refs at old name OR vanished path AFTER rename (REQUIRES pair) audit-modes.md
<old> to <new> Apply full rename context/apply.md
preview <old> to <new> Preview dry-run context/apply.md (skip Edit phase)
<old> (single token, no separator) Reverse. Find refs, ask what to replace with context/audit.md
blocklist Print English-verb blocklist (read-only introspection of triage-bucket safety mechanism) inline below

Read the full file on GitHub · 173 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 173 lines · 136 tokens per session scan A 698a758667b9

Subscribe to this mod's changes

rename-references is a skill published in the GitHub repository melodic-software/claude-code-plugins (15 stars, last pushed today), licensed MIT. It adds 136 tokens to every session and 4,612 once invoked, about $0.0007 per session on Opus 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-09-03.

Related

Other skills, from other repositories

parallel-orchestrator

Manage parallel Claude Code workstreams using git worktrees. Use when: splitting large tasks across multiple workers, coordinating parallel development, monitoring worker progress, integrating completed work, analyzing work item documents (code reviews, issue lists). Triggers: parallel, orchestrator, worktrees…

jimmc414/claude-code-plugin-marketplace · 78 tokens

parallel-worker

Execute focused implementation tasks in a parallel workflow. Use when: working on assigned files in a worktree, making checkpoint commits, signaling dependencies or blockers, completing orchestrator-assigned tasks. Triggers: worker, checkpoint, worktree, assigned scope, commit prefix, parallel task.

jimmc414/claude-code-plugin-marketplace · 59 tokens

build-priority-queue

For ordered processing: A search, Dijkstra, event simulation, task scheduling. Efficient min/max extraction with heap-based queue.

jimmc414/claude-code-plugin-marketplace · 32 tokens

catch-expected-errors

For iteration with errors: catch exceptions during exploration, skip invalid cases, continue to next attempt.

jimmc414/claude-code-plugin-marketplace · 24 tokens

compose-small-helpers

For complex behavior: build from tiny functions, chain transformations, make code read like a pipeline of operations.

jimmc414/claude-code-plugin-marketplace · 26 tokens

count-combinations

For probability and counting: permutations, combinations, sample spaces, Monte Carlo simulation, brute-force enumeration, card/dice problems.

jimmc414/claude-code-plugin-marketplace · 29 tokens