Setup
Verify disk-hygiene prerequisites, platform posture, kill switch, and old policy files; check (read-only) or apply (remediation/migration).
от melodic-software★ 34 звезды на GitHub
Установить Setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setup
Purpose
Thin check-centric setup per the uniform setup contract (docs/plugin-philosophy.md
"Setup is explicit and repeatable" in the marketplace repository): check inspects and
reports, apply resolves. Targets and modes arrive as /disk-hygiene:clean arguments. The
tunables are two userConfig options, the disk_hygiene_enabled toggle and policy_file,
plus the standing policy layers. apply writes nothing and installs nothing; it points at
the remediation for each FAIL.
Action routing: no argument or check runs the check; apply runs the check first, then
points at each remediation. Neither prompts.
check (read-only)
The clean skill and its bundled scripts (${CLAUDE_PLUGIN_ROOT}/skills/clean/) are the
single source of truth for what the plugin requires per platform.
Read it first. Probe what it actually does, don't recite this file. Then run each probe via Bash and report a PASS/FAIL/INFO table with one remediation line per FAIL. Do not modify anything.
Read engine files (hygiene.py and the other scripts under skills/clean/scripts/) with the
Read or Grep tool, or with the one plain reader command step 2 names, run alone with its
absolute path. Never name an engine file inside a compound shell line: no cd, variable
assignment, $ expansion, ; or && chain around it. The plugin's own guard denies such a
line as "not one plain literal invocation"; it lets a line through only when every command in
it is a reader it lists (destructive_guard.py _bash_reads_only).
The toggle is an audit-only kill switch, not a short-circuit: the guard registers
unconditionally and still scans with the toggle off, so most prerequisite absences keep their
FAIL semantics regardless of the toggle. Only the execution-tier tools the audit lane never
invokes (step 4's lsof-class probes) downgrade from FAIL to INFO when the toggle is
disabled, report those informationally and note that re-enabling restores the FAIL semantics.
A missing git keeps its step-3 verdict either way: the audit lane itself calls it, and its absence degrades the VCS-tracked-content evidence the plugin's fail-closed posture depends on.
Every step-1 and step-2 failure likewise stays FAIL with the toggle disabled.
Audit-only mode is enforced by the guard, every guard surface
depends on a Python 3 interpreter resolving (every surface through
hooks/run-python-hook.sh, which tries python3, then python, then py -3), and a
guard that never runs can neither read nor enforce the configured false, so the fail-open
is most dangerous in exactly this
configuration. That covers an exhausted interpreter ladder, every rung absent, a stub, or
indeterminate, a rung whose version probe then fails to launch at all (a corrupt or
zero-length binary outside WindowsApps, a broken shim, a permission error), and an
interpreter that starts but reports a version below the parsed floor. It does not cover a
stubbed python3 alongside a working python or py -3: the launcher skips the stub, every
guard launches, and that is a WARN (see step 2), not a failure to downgrade.
Launching the version probe proves only that something executes, not that it can run
the guard's own source: Python 3.6, for example, rejects the guard's
from __future__ import annotations and exits without a deny, which this plugin treats as the
same fail-open (what such an exit does to the call: Other exit codes). Unproven guard execution
fails closed like every other guard-relevant unknown in this plugin.
Node exec-form launcher registration. All three registrations (both wired hooks in
hooks/hooks.jsonand the skill-scoped belt inskills/clean/SKILL.mdfrontmatter) must setcommandtonodeand puthooks/exec-bash.mjs, thenhooks/run-python-hook.shand that script's arguments, inargs.noderesolves tonode.exe. FAIL ifcommandis barebash,sh, orpython3, or if the script path iscommandwith noargs: on Windows barebashis the WSL relay and a.shpath is not a spawnable executable, so the guard cannot start; this plugin treats a guard that cannot start as enforcing nothing (what a failed launch does to the call: the pointer below). Also FAIL ifexec-bash.mjsor the launcher is missing.- Pointer: when checking how exec form spawns
command, or what a hook that fails to start does to the call, fetch Exec form and shell form and Block the action when a hook fails live.
nodeand bash, probed with the Bash tool, not through the launcher. FAIL ifcommand -v nodefinds nothing: every guard and detector row runsnode, so none launches and no guard is enforced. FAIL if no bash resolves in the launcher's own order, which `resolveBa- Pointer: when checking how exec form spawns
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- scripts/kill_switch_probe.py
- scripts/kill_switch_probe.test.sh
- scripts/python3_alias_probe.py
- scripts/python3_alias_probe.test.sh
- scripts/test_kill_switch_probe.py
- scripts/test_python3_alias_probe.py
FAQ
Что делает скилл Setup?
Verify disk-hygiene prerequisites, platform posture, kill switch, and old policy files; check (read-only) or apply (remediation/migration).
Как установить скилл Setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…