Command Palette

Search for a command to run...

Назад к скиллам
скилл № 29275

Realign File Names

Apply a file-name rename plan one file at a time (human must accept each): git mv, rewrite tier-allowed references, rebuild generated records, sweep…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Realign File Names в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Realign file names

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).

  • Current branch, git branch --show-current
  • Working tree status (empty = clean), git status --porcelain | head -20
  • Repository root, git rev-parse --show-toplevel

Purpose

/docs-naming:audit-file-names decided what should be renamed and what each citation of it may become. This skill is the hand that does it, and the gate that keeps a human in front of every one.

A rename is not one edit. It is a tracked move plus a rewrite of every reference the tier rules allow, across files nobody opened, with a generated record and a frozen changelog somewhere in the set. That is exactly the shape of change an operator approves in bulk and regrets in review. So the unit here is one file, and the acceptance is one file's worth.

Read these before applying anything

Read For
context/apply-recipe.md the present-apply-sweep-verify loop, and what a decline offers
../../context/file-name-findings.md where the plan lives, the record's fields, its status arc, and why applying resumes
../audit-file-names/context/tiers.md the form table to print before each acceptance

One acceptance is one finding

Each explicit FN-xxxxxxxx in the argument is one acceptance. Nothing else is.

Refuse out loud, then re-present the current finding, when the operator offers a range (FN-a through FN-d), a glob, a count (the first five), all, everything, the rest, yes to all, or a bare go ahead standing in for the set. Say what was refused and why: a blanket yes is one decision standing in for many, and the rename this skill is about to make is the one the operator has not read yet.

Refusing is not a stall. Present the current finding again, in full, and ask for it alone. An operator who genuinely wants twelve renames gives twelve answers, and each one is cheap because the presentation is already on screen.

This is a gate on the acceptance, not on the operator. A finding they already accepted is applied without asking a second time. It is still presented first, the recipe's step 1 in full, before apply-rename.sh runs; only the question is skipped.

Find the plan, and check it belongs here

Read the artifact from the home ../../context/file-name-findings.md "Where it lives" defines. A plan looked for anywhere else is reported as "no plan found" for a plan that exists.

The artifact's branch: frontmatter proves which branch it belongs to, not the directory it sits in. A mismatch against the current branch is a refusal with "re-audit here" as the remedy; the script checks the same thing and exits 1.

head: is recorded and never checked. A consumer commits between accepted renames, so an equality test on it would block the walk after the first one.

Over several repositories

With no target form, the run applies this checkout's plan. A target form selects the repositories an audit over several of them planned, resolved as ${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md "Target forms" and "Resolving repositories" say. What differs here:

  • An acceptance names its repository. One id can name a file in each repository, so an acceptance is owner/name FN-xxxxxxxx. With more than one repository in scope, a bare id is a question, not an acceptance: ask which repository it means.
  • Apply in the audit's worktree. The plan is checkout-local, so it is not in the clone a repository resolves to. The audit keeps one worktree per repository, on the branch docs-naming/file-names: select the entry on that branch in git -C <root> worktree list --porcelain, never another worktree of the clone, and pass it as --root. A repository with no worktree on that branch, or no plan in it, is reported as "no plan found" and skipped.
  • One repository at a time. Finish one repository's findings and its closing pass before the next starts. Its renames stay uncommitted in that worktree, per "Writes stay per repository".

Run the

Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(${CLAUDE_SKILL_DIR}/scripts/apply-rename.sh:*)
  2. 02Bash(git branch --show-current:*)
  3. 03Bash(git status --porcelain:*)
  4. 04Bash(git rev-parse:*)
  5. 05Bash(git diff --name-status:*)
  6. 06Bash(git grep:*)
  7. 07Read
  8. 08Skill

Вложенные файлы

  • context/apply-recipe.md
  • scripts/apply-rename.sh
  • scripts/apply-rename.test.sh

FAQ

Что делает скилл Realign File Names?

Apply a file-name rename plan one file at a time (human must accept each): git mv, rewrite tier-allowed references, rebuild generated records, sweep stragglers; refuses blanket yes/ranges/globs/'all'; never commits. Use when: 'apply the rename plan', 'apply FN-...', 'rename these files'. Needs /docs-naming:audit-file-names.

Как установить скилл Realign File Names?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Realign File Names запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Realign File Names с