Audit
Read-only sweep for misplaced instruction content: demote always-loaded conventions to file-type/subtree rules; promote stranded docs conventions (safety…
от melodic-software★ 34 звезды на GitHub
Установить Audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Audit
Arguments. [core|expanded] [path ...] [--repo <repo> ...]. Default: core+expanded over the
whole repository. --repo and the other target forms: "Over several repositories" below
Pre-computed context
!"${CLAUDE_PLUGIN_ROOT}/scripts/precompute.sh" audit 2>/dev/null || echo "- Orientation unavailable"
Purpose
Instruction content has a load cost set by the surface it sits on, and most repositories put everything on the most expensive one. A convention that only matters when someone edits one kind of file is paid for in every session, in every conversation, whether or not a file of that kind is touched.
The saving is context, not obedience. What the official guidance says about file length and
adherence is in
Memory, "Write effective instructions".
This plugin's own adherence measurement (../../evals/adherence-results.md)
does not reproduce a length effect on adherence for a clear, non-conflicting convention; the figures live in that file, and it is re-run
when the capability tier changes. So propose moves on context cost and on reaching content Claude
never loads, never by promising the operator their instructions will be followed better
afterwards.
This skill finds content whose scope is narrower than the surface carrying it, and content whose surface Claude never reads at all, and proposes where each should go.
It is read-only. Every finding is a proposal; the operator decides, and realign executes.
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
realignwill use. The findings artifact is checkout-local and keyed by branch (findings-artifact.md"Where it lives"), so an artifact written in another checkout is onerealignanddeltanever find. Per repository, that worktree is the one on the branchinstruction-placement/realign, found ingit -C <root> worktree list --porcelain. Reuse it when it exists, so a re-audit merges into the earlier artifact and keeps every decision. 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). With the key unset or the gate failing, place it by that repository's convention. Run the workflow there, one subagent per repository ("Fan-out" there), with--rootset to the worktree on everydetect.sh,glob-tools.shandrender-index.shcall, the worktree's branch as the branch identity for the home, and that repository's own suppression surface. This worktree and branch are the only thing the audit adds to another repository; the read-only rule holds for every tracked file. - The quote check runs once. It reads docs pages, not a repository: run it once, with no arguments, and pass its result into each repository's subagent brief.
- One artifact per repository. An
IP-<n>handle is unique within its repository only, so the report writes every finding asowner/name IP-<n>. - One merged report. Merge as "Merging findings" says, on this skill's rank (step 7 below).
Name each repository's worktree path and artifact path, which
realignanddeltastart from. - A rule several repositories repeat. A section whose heading path and normative text match, or
nearly match, in the always-loaded files of two or more repositories is one row of the merged
report, listing each repository and source range. It names the candidate single homes: the
machine layer (the user-scope instructions every repository's sessions load) and, when the
operator names one, the standards repository. A section a sync mechanism already copies into
each repository is excluded, as the contract's "Cross-repository signals" says. The row is
report-only: it is written to no artifact, has no
finding_id,realignnever applies it, and it proposes no move or edit. Consolidating is the operator's own decision and edit, outside this plugin, so the boundary rule under "Hard rules" still holds.
Read these before adjudicating anything
The judgment lives in the plugin's context files, not in this hub. Do not re-derive them. Open
each with the Read tool, one file per call, never through Bash cat.
| Read | For |
|---|---|
../../context/routing-rubric.md |
The hard-deny gate, the decision ladder, glob derivation, |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
[ "Bash(${CLAUDE_PLUGIN_ROOT}/scripts/quote-check.sh)" - 02
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/precompute.sh:*) - 03
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/detect.sh:*) - 04
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/glob-tools.sh:*) - 05
Bash(${CLAUDE_PLUGIN_ROOT}/scripts/render-index.sh:*) - 06
Read - 07
Grep - 08
Glob - 09
Write - 10
Skill - 11
]
Вложенные файлы
- context/gotchas.md
- context/routing-out.md
FAQ
Что делает скилл Audit?
Read-only sweep for misplaced instruction content: demote always-loaded conventions to file-type/subtree rules; promote stranded docs conventions (safety rails hard-denied). Use when: 'audit instruction placement', 'move conventions to .claude/rules', 'find conventions in our docs'. Not for applying findings: /instruction-placement:realign.
Как установить скилл Audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…