Audit File Names
Read-only audit of a docs tree's file names against a casing/naming rule (lower-kebab): proposes names, classifies every reference, refuses case-only…
от melodic-software★ 34 звезды на GitHub
Установить Audit File Names в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Audit 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
A documentation tree drifts one file at a time, and by the time anyone notices, the cost of fixing it is not the renames. It is finding every citation of every renamed file, deciding which of them may be rewritten, and not corrupting a generated record or a released changelog entry on the way through.
This skill does the finding and the deciding, and writes the result down. It
renames nothing. /docs-naming:realign-file-names executes the plan, one
acceptance at a time.
Over several repositories
With no target form, the run covers this checkout. A target
form selects several repositories, resolved, counted and listed as
${CLAUDE_PLUGIN_ROOT}/reference/target-scope.md
"Target forms" and "Resolving repositories" say. What differs here:
- Audit in the worktree the realign will use. The plan is checkout-local and
keyed by branch, so a plan written in another checkout is one the realign never
finds. Per repository, the audit's worktree is the one on the branch
docs-naming/file-names, found ingit -C <root> worktree list --porcelain. Reuse it wherever it is, so a re-audit merges into the earlier plan and keeps every decision ("Where the artifact goes"). Only when none exists, create one on that branch: from the local branch when it is left without a worktree, else fromorigin/HEAD. Place it under the worktree rootgit -C <root> config --get-all --type=path worktreeroot.path | tail -n 1prints, aftergit -C <root> rev-parse --git-dirsucceeds, never scoping the read without--includes(the source-control plugin's worktree root convention owns the key and requires a root outside every repository), in the directory<owner>-<name>-docs-naming-file-namesnamed for that repository'sowner/name. One root can serve every repository in the run, all on the same branch name, so a directory named for the branch alone collides at the second repository. With the key unset, the gate failing, or the root inside a working tree, place it by that repository's convention. Run "Facts before judgment" there with--rootset to it, one subagent per repository ("Fan-out" there). A detached worktree would key the plan by a short SHA that the realign's first commit changes. This worktree, its branch and the untracked plan inside it are the run's only writes to another repository; the contract's read-only rule holds for every tracked file. - One plan per repository. Each plan lives in the home "Where the artifact
goes" names, inside that repository's worktree, never in the invoking
checkout. A finding id is unique within its repository only, so the report
writes every finding as
owner/name FN-xxxxxxxx. - One merged report. Merge as "Merging findings" says, ranking a rename planned in several repositories by its total sites across them. Name each repository's worktree path and plan path, which the realign starts from.
Read these before presenting anything
| Read | For |
|---|---|
context/tiers.md |
the form table to print before any plan, and why a historical tier keeps its links while a released tier is frozen |
../../context/file-name-findings.md |
where the artifact goes, its shape, its stable ids, its status arcs, and the re-audit merge |
../../reference/config.md |
every configuration key, its default, and which layer may supply it |
Facts before judgment
Three scripts produce the facts. Run them in order and build the plan on what they emit.
The inventory and the sweep each take --user-config with this plugin's
file_names option, ${user_config.file_names}, on every call, as one
single-quoted argument (escape any single quote in it). An empty value or the
literal ${user_config.…} placeholder means unset.
- Pointer: when checking w
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(${CLAUDE_SKILL_DIR}/scripts/inventory.sh:*) - 02
Bash(${CLAUDE_SKILL_DIR}/scripts/sweep.sh:*) - 03
Bash(${CLAUDE_SKILL_DIR}/scripts/emit-findings.sh:*) - 04
Bash(git branch --show-current:*) - 05
Bash(git rev-parse:*) - 06
Bash(git check-ignore:*) - 07
Read - 08
Write - 09
Grep
Вложенные файлы
- context/tiers.md
- scripts/emit-findings.sh
- scripts/emit-findings.test.sh
- scripts/inventory.sh
- scripts/inventory.test.sh
- scripts/sweep.sh
- scripts/sweep.test.sh
FAQ
Что делает скилл Audit File Names?
Read-only audit of a docs tree's file names against a casing/naming rule (lower-kebab): proposes names, classifies every reference, refuses case-only collisions, and writes a rename plan (renames nothing). Use when: 'audit file names', 'which files break the naming rule', 'plan a docs rename'. Not for applying: /docs-naming:realign-file-names.
Как установить скилл Audit File Names?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Audit File Names запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…