Command Palette

Search for a command to run...

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

Audit

Read-only sweep for misplaced instruction content: demote always-loaded conventions to file-type/subtree rules; promote stranded docs conventions (safety…

БесплатноБез исполняемых скриптов
melodic-softwareот 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 realign will 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 one realign and delta never find. Per repository, that worktree is the one on the branch instruction-placement/realign, found in git -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 from origin/HEAD. Place it under the worktree root git -C <root> config --get-all --type=path worktreeroot.path | tail -n 1 prints, after git -C <root> rev-parse --git-dir succeeds, 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 --root set to the worktree on every detect.sh, glob-tools.sh and render-index.sh call, 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 as owner/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 realign and delta start 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, realign never 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,
Полный SKILL.md на GitHub

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

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

  1. 01[ "Bash(${CLAUDE_PLUGIN_ROOT}/scripts/quote-check.sh)"
  2. 02Bash(${CLAUDE_PLUGIN_ROOT}/scripts/precompute.sh:*)
  3. 03Bash(${CLAUDE_PLUGIN_ROOT}/scripts/detect.sh:*)
  4. 04Bash(${CLAUDE_PLUGIN_ROOT}/scripts/glob-tools.sh:*)
  5. 05Bash(${CLAUDE_PLUGIN_ROOT}/scripts/render-index.sh:*)
  6. 06Read
  7. 07Grep
  8. 08Glob
  9. 09Write
  10. 10Skill
  11. 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), без исполняемых скриптов.

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

Сравнить Audit с