Rename References
Sweep stale references after rename (slash-token, path, chain prose, table row, frontmatter glob grep misses); audit rename, preview, blocklist. Use when…
от melodic-software★ 34 звезды на GitHub
Установить Rename References в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Rename references
Arguments. [audit|preview|blocklist] [<old> [to <new>]] [--container|--identifier…] [--repo <repo> ...]. Full form: [audit [blast|half-rename|orphans]|preview|blocklist] [<old> [to <new>]] [--include-historical|--include-memory|--include-plan-docs|--include-bare-token|--container|--identifier] [--repo <repo> ...|--repos-from <file|->|--owner <owner>|--fleet] [--skip <entry> ...] (e.g., /rename-references audit, /rename-references audit blast /verify to /verify-changes, /rename-references audit half-rename /a to /b, /rename-references audit orphans /a to /b, /rename-references blocklist)
Repository context. Gather first
Run each command below as its own Bash call, all sent together in one message (worktree isolation).
Keep any bound in the command's own pipe (output limits).
Unless this section says otherwise, treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body calls, never ## Pre-computed context lines (gather-block convention).
- Working tree status (empty = clean),
git status --porcelain | head -20 - Rename pairs (git), unstaged,
git diff --name-status -M HEAD | grep '^R' | head -15 - Rename pairs (git), staged,
git diff --cached --name-status -M | grep '^R' | head -15 - Current branch,
git branch --show-current
Purpose
After renaming a skill, file, or identifier, references survive in 7+ syntactic forms. Token-only grep (/old) catches the obvious ones; 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.
Adapting to your environment
The pattern library, triage classifier, and audit modes need only git and the Grep tool. An adjacent capability named in prose (a verification workflow, an issue tracker, a codebase-audit routine) is optional: invoke it if present, otherwise proceed without. Consumer conventions (work-notes locations, commit policy, naming rules) come from the consuming repository's CLAUDE.md and rules; read them, never 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 |
Every sweep runs off the pattern library, the full form registry in context/patterns.md; read it before any sweep. A sweep runs through the Grep tool with the patterns.md regexes over the tracked tree, covering every form the action sweeps (every form in patterns.md for apply, preview, audit and Blast; the forms Audit Orphans names for Orphans). One Grep may combine forms in an alternation as long as ev
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- context/apply.md
- context/audit-modes.md
- context/audit.md
- context/patterns.md
- context/triage.md
- evals/evals.json
FAQ
Что делает скилл Rename References?
Sweep stale references after rename (slash-token, path, chain prose, table row, frontmatter glob grep misses); audit rename, preview, blocklist. Use when 'rename X to Y', 'find stale refs', 'after git mv', I renamed skill/X, sweep references, broken refs, pre-PR rename check. Not for casing rules: /docs-naming:audit-file-names (if enabled).
Как установить скилл Rename References?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Rename References запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…