Audit
Audit Claude Code instruction/memory files (CLAUDE.md, root AGENTS.md, CLAUDE.local.md, .claude/rules/, auto-memory) against official-docs checks; actions…
от melodic-software★ 34 звезды на GitHub
Установить Audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Memory Health
Arguments. [audit|fix|update|report] [--repo <repo> ...]. Default: audit, on this project
Pre-computed context
The deterministic spine, one invocation, header then findings. The root-file line count has
@ imports expanded, since imported files load at launch; the token figure is bytes / 4 over the
whole always-loaded set and is an estimate, not a measurement.
!bash "${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/audit-spine.sh" 2>/dev/null || echo "Deterministic spine: unavailable (audit-spine.sh failed to run; run the per-check scripts by hand)"
Deterministic health check for the Claude Code instruction/memory layer. Audits files you write that
shape Claude's behavior, not the entire context window (MCP tools, agents, and skills are covered by
the audit and audit-automation-gaps skills in the harness-config plugin).
Scope
| Entity | Location | Load model this audit uses | Audited here |
|---|---|---|---|
| Project instructions | CLAUDE.md |
Every session, full | Yes |
Project instructions in AGENTS.md |
AGENTS.md and .claude/AGENTS.md at the root |
Audited only where discovery reports Claude Code reads it; the condition and its record are in official-guidance.md | Yes, as the project instructions (the C-checks) |
| Local overrides | CLAUDE.local.md |
Every session, full | Yes |
| Rules | .claude/rules/**/*.md |
Every session (unconditional) or on-demand (path-scoped) | Yes |
| User instructions | ${CLAUDE_CONFIG_DIR:-~/.claude}/CLAUDE.md |
Every session, full, in every project | Yes |
| User rules | ${CLAUDE_CONFIG_DIR:-~/.claude}/rules/**/*.md |
Same as project rules, in every project | Yes |
| Auto-memory | ${CLAUDE_CONFIG_DIR:-~/.claude}/projects/<project>/memory/ |
The start of MEMORY.md, up to the M1 gate's firing values | Yes |
Nested AGENTS.md |
**/AGENTS.md below the root |
Reachable unless a CLAUDE.md-family file on its path displaces it without importing or symlinking it (N1) |
Reachability only (N1); content is not audited |
| Settings, hooks, MCP, agents, skills | Various | Various | No. Use harness-config's audit / audit-automation-gaps |
The load-model column is this audit's working model, not a restatement of the docs; each check in reference/criteria.md carries the pointer it rests on.
- Pointer: for how each file loads, see
How CLAUDE.md files load,
Organize rules with
.claude/rules/, When Claude Code reads AGENTS.md and auto memory's How it works.
Auto memory's effective enabled/disabled state must be resolved before auditing it, not assumed
from a single scope: ${CLAUDE_PLUGIN_ROOT}/skills/stateless/context/status.md,
"Resolve the effective state".
The two user-scope rows are in scope because they load in every session regardless of where it starts.
Discovery tags every file with its scope so project-scoped criteria (C9) skip personal files rather
than reporting a repo-scoped finding against one. C6 Consistency owns instruction-content
conflicts across that discover-instruction-surfaces population, including user↔project pairs.
harness-config:audit-instructions I15 owns memory-layer precedence adjudication and every conflict
pair with an anchor outside that population (nested CLAUDE.md, auto-memory, settings, hooks,
skills, agents, output styles).
Scope boundary (route out)
This audit owns instruction-layer health: structure, size, placement, and index integrity of
the memory files against the codified checklist. Whether an instruction's content is still
needed by the current model is the model-era fit question, owned by the harness-config plugin's
audit-instructions skill. Prior-model workarounds, over-prescriptive scaffolding, bare
prohibitions without rationale, reasoning-echo directives, think-carefully steers, vague design
steers, settled-answers lines on analysis surfaces, and stale example scaffolding fall there.
Guidance a long-run file lacks (when to stop and when to keep going, a finish line, a task file,
the end-of-run report shape) is that plugin's audit-prompting-postures. When
that plugin is enabled, route such findings to /harness-config:audit-instructions (if enabled) or
/harness-config:audit-prompting-postures (if enabled), invoked via the Skill tool, rather than
judging them against this checklist; when it is not enabled, keep each as a criteria-free
observation in this audit's report (never a checklist finding, never silently dropped) so the
operator can weigh it against current official prompting guidance.
Arg
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- context/audit.md
- context/fix.md
- context/update.md
- reference/criteria.md
- reference/official-guidance.md
- scripts/audit-spine.sh
- scripts/audit-spine.test.sh
- scripts/discover-instruction-surfaces.sh
- scripts/discover-instruction-surfaces.test.sh
- scripts/file-provenance.sh
- scripts/file-provenance.test.sh
- scripts/instruction-load-stats.sh
- scripts/instruction-load-stats.test.sh
- scripts/lib/agents-md.sh
- scripts/lib/imports.sh
- scripts/lib/imports.test.sh
- scripts/lib/rule-scope.sh
- scripts/memory-dir-stats.sh
- scripts/memory-dir-stats.test.sh
- scripts/memory-index-refs-check.sh
- scripts/memory-index-refs-check.test.sh
- scripts/nested-agents-check.sh
- scripts/nested-agents-check.test.sh
- scripts/orphan-rule-check.sh
- scripts/orphan-rule-check.test.sh
- scripts/parse-concern-value.sh
- scripts/resolve-memory-dir.sh
- scripts/resolve-memory-dir.test.sh
- scripts/yaml-subset.awk
FAQ
Что делает скилл Audit?
Audit Claude Code instruction/memory files (CLAUDE.md, root AGENTS.md, CLAUDE.local.md, .claude/rules/, auto-memory) against official-docs checks; actions: audit (default), fix, update, report. Use when: 'audit CLAUDE.md', 'audit AGENTS.md', 'memory health', or pruning rules. Not for config/hooks: /harness-config:audit.
Как установить скилл Audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Audit запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…