Command Palette

Search for a command to run...

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

Setup

Verify disk-hygiene prerequisites, platform posture, kill switch, and old policy files; check (read-only) or apply (remediation/migration).

БесплатноЗапускает вложенные скрипты
melodic-softwareот 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.

  1. Node exec-form launcher registration. All three registrations (both wired hooks in hooks/hooks.json and the skill-scoped belt in skills/clean/SKILL.md frontmatter) must set command to node and put hooks/exec-bash.mjs, then hooks/run-python-hook.sh and that script's arguments, in args. node resolves to node.exe. FAIL if command is bare bash, sh, or python3, or if the script path is command with no args: on Windows bare bash is the WSL relay and a .sh path 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 if exec-bash.mjs or the launcher is missing.

    node and bash, probed with the Bash tool, not through the launcher. FAIL if command -v node finds nothing: every guard and detector row runs node, so none launches and no guard is enforced. FAIL if no bash resolves in the launcher's own order, which `resolveBa

Полный SKILL.md на GitHub

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

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

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • 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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить Setup с