Audit Install State
Read-only audit of `~/.claude` and `~/.claude.json`: the deep inventory of unmanaged files. Use when: 'what is in my ~/.claude', 'why is my Claude Code…
от melodic-software★ 34 звезды на GitHub
Установить Audit Install State в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Audit install state
Arguments. [--unattended] [root]. root is the tree to audit and reaches the engine as --root; it defaults to $CLAUDE_CONFIG_DIR, else ~/.claude. Always pass --csv to the engine. --unattended, anywhere in the arguments, is the caller declaring that nobody is present: the skill takes it out before reading root, never passes it to the engine script (whose parser does not accept it) and never reads it as a root path; under it the suggestion is omitted. The bare word unattended is neither this flag nor a root: stop and name --unattended.
Purpose
Answers four questions about a Claude Code installation, and refuses to answer a fifth.
- What is actually here? Every entry labeled as an authored surface or a bulk tree, so a ~100k-file tree does not drown a ~150-file answer. Per-file rows live in the CSV.
- What does the product already manage? Recommending a manual prune of a path the retention sweep owns generates churn, not space.
- For each number in a filename, what is that number? A liveness lookup against a TCP port or
a shell
$$returns a clean, confident, wrong "dead." - Is this tree in a deliberate or experimental state? If it is, "looks like decay" is the wrong reading of almost everything.
The fifth question, so what should I delete?, is deliberately not answered. This skill is
report-only and never writes to the target tree. Deletion belongs to /disk-hygiene:clean (if enabled), and
shedding project state belongs to claude purge.
What this skill does not do
| Question | Owner |
|---|---|
| Is this machine's Claude Code install directory healthy? | this skill |
| Are a repo's project-scope config FILES correct? | /harness-config:audit (if enabled) |
| Are permission grants portable and durable? | /harness-config:audit-permission-grants (if enabled) |
| Is the plugin fleet current, and at what scope? | /harness-ops:plugins-audit |
| Delete a genuinely unmanaged leftover | /disk-hygiene:clean (if enabled) |
Rationale and handoffs: reference/scope-and-handoffs.md.
Boundary, the bundled doctor skill
One native Claude Code surface asks a question that sounds like this skill's, and the two are routinely conflated:
doctor(bundled skill): health-checks an installation and offers to fix what it finds.- Pointer: when stating what
doctorchecks, its aliases, or what hides or removes it, fetch the/doctorrow of commands: all commands and skills: check your setup with /doctor live.
- Pointer: when stating what
- This skill (marketplace plugin), the deep read-only inventory of the install tree: every file classified, product-managed retention separated from genuinely unmanaged state, filename schemes resolved before any liveness check, and a deliberate-or-experimental state detected before anything is called stale.
Routing. Person-invoked /doctor is offered at session end (Phase 6); this section records surface facts only. Its sibling /harness-ops:audit-performance owns the timed slowness-capture lane against the same native surface.
Mutation gate. doctor mutates: fixing is its point. This skill's contract is report-only, so
never chain into a doctor fix on this skill's behalf. Surface the finding, and let the user
invoke the fix themselves.
Availability is never assumed. Bundled surfaces are gated on settings and environment, plan,
platform, and host surface, so a session where doctor does not resolve is an ordinary session,
not a broken one. Nothing here depends on it being present: the read-only inventory is complete on
its own.
Never read
.credentials.json, daemon/control.key, daemon/pipe.key, ide/*.lock, and the values inside
~/.claude.json. These are inventory line-items: name, size, mtime, and nothing more. What the
product writes to disk unencrypted is read live from
claude directory: plaintext storage.
Every subagent this skill dispatches inherits this rule; say so explicitly in any prompt you fan out. The engine enforces it in its reader, and its whole
content-read allowlist is settings.json, .last-cleanup, plugins/.last_inuse_sweep,
plugins/installed_plugins.json and the plugins/cache/*/*/*/.orphaned_at markers; each entry
it read by content carries content_read: true with the paths opened. Everything else is stat-only.
Run it
python3 "${CLAUDE_PLUGIN_ROOT}/skills/audit-install-state/scripts/install_state.py" \
--samples 3 --csv ./claude-install-listing.csv --versions-out ./claude-install-versions.json \
> ./claude-install-report.json
Add --root PATH only when a root argument was given; without it the engine audits
$CLAUDE_CONFIG_DIR, else ~/.claude.
Write bot
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- reference/evidence-discipline.md
- reference/name-schemes.md
- reference/scope-and-handoffs.md
- reference/surfaces.md
- scripts/install_state.py
- scripts/install_state.test.sh
- scripts/managed_settings.py
- scripts/test_install_state.py
FAQ
Что делает скилл Audit Install State?
Read-only audit of `~/.claude` and `~/.claude.json`: the deep inventory of unmanaged files. Use when: 'what is in my ~/.claude', 'why is my Claude Code install so big', 'does Claude Code clean up after itself', 'check cleanupPeriodDays', 'is this lock file dead', 'tidy my Claude Code install'. Deleting: /disk-hygiene:clean.
Как установить скилл Audit Install State?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Audit Install State запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…