Command Palette

Search for a command to run...

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

Setup

Inspect optional .claude/repo-fleet-hygiene.conf read-only (check) or add fleet roots, exact repos, and canonical checkout overrides (apply).

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Setup

Arguments. [check|apply] [--config <path>] [--root <dir>]... [--repo <dir>]... [--skip <name>].... Full form: [check|apply] [--config <path>] [--root <dir>]... [--repo <dir>]... [--canonical <github.com/owner/repo=path>]... [--ack-unavailable <github.com/owner/repo>]... [--skip <name>]... [--extend-skip <name>]... [--max-depth <1..12>]

Purpose

Verify and manage the audit's optional Git-format configuration. Setup owns only this file; it never edits Claude Code settings, pluginConfigs, Git remotes, branches, worktrees, or the installed plugin.

The config file itself is optional to create. A /repo-fleet-hygiene:audit takes scope from a CLI bare path / --root / --repo, or fleet.root / fleet.repo entries in a consumed config. Absence of every config on the ladder is therefore INFO for check (nothing to validate yet); a subsequent no-argument audit then follows its no-scope ladder and exits 3 only when no rung resolves. Check-centric per the uniform setup contract (docs/plugin-philosophy.md "Setup is explicit and repeatable" in the marketplace repository): check inspects read-only; apply creates or updates the file, then re-runs check. No argument or check runs the check; apply runs the check first, then the write. All non-interactive: when the arguments fully specify the change, apply proceeds without prompting.

Default config path: ${CLAUDE_PROJECT_DIR}/.claude/repo-fleet-hygiene.conf. An explicit --config may choose another path. Resolve relative roots/repos/canonical paths from the config file directory.

Scoping rule (state it in check/apply output): the audit consumes config through a ladder: explicit --config, else the project-scoped default above, else the user-global ~/.claude/repo-fleet-hygiene.conf. A project-scoped config is therefore consumed only when the audit runs with that same project directory; a fleet config meant to apply from every project belongs at the user-global path (apply --config ~/.claude/repo-fleet-hygiene.conf). The audit report header names which config (if any) was consumed.

Argument grammar

check | apply [--config <path>] [--root <dir>]... [--repo <dir>]...
        [--canonical <github.com/owner/repo=path>]... [--ack-unavailable <github.com/owner/repo>]...
        [--skip <name>]... [--extend-skip <name>]... [--max-depth <1..12>]

--max-depth writes [fleet] maxDepth; --skip writes repeatable [fleet] skip entries; --extend-skip writes repeatable [fleet] skipAppend entries. This skill owns the config file that carries them. See "Configuration grammar" below for the skip replace semantics, and state them whenever you write a skip entry, because "extend" is the naive reading. An operator who wants to add names to the defaults wants --extend-skip.

check (read-only)

The config file and the grammar below are the source of truth. Probe, report a PASS/FAIL/INFO table with one remediation line per FAIL, and modify nothing. Do not run the collector. That is /repo-fleet-hygiene:audit; check only validates the configuration the audit would consume, using git config --file and read-only filesystem probes.

  1. Config presence. Resolve the config path (--config or the default). Absent → INFO naming the full ladder: the audit next probes the user-global ~/.claude/repo-fleet-hygiene.conf (report whether one exists there); with no config on the ladder and no scope argument, a bare /repo-fleet-hygiene:audit follows the no-scope ladder in that skill. apply scaffolds a config only if the user wants bounded roots or overrides.
  2. Parse validity. Present config: git config --file "<path>" --list >/dev/null. A non-zero exit is FAIL with the parse error in the remediation line. Never source the file.
  3. Entry resolution. For each [fleet] root/repo and each [canonical …] path, resolve it from the config directory and confirm the directory exists and (for roots/repos) git rev-parse succeeds read-only. A referenced path that does not resolve is FAIL, naming the entry.
  4. maxDepth. Present and outside 1..12 is FAIL; absent is INFO (the audit's own default applies).
  5. Canonical identity. INFO for each [canonical "github.com/owner/repository"] entry: report the normalized key. Flag as FAIL only a key that is not a normalizable github.com/owner/repository.
  6. Acknowledged identities. INFO listing each fleet.ackUnavailable entry (normalized). FAIL any value that is not a normalizable github.com/owner/repository.
  7. Discovery skip names. INFO listing each fleet.skip and fleet.skipAppend entry. FAIL any value that is empty or contains a path separator (must be a bare directory name). Remind that any present fleet.skip replaces the audit default skip list rather than appending, while fleet.skipAppend adds to whichever list is in effect.
  8. Tracked-file pair (only when the config lives
Полный SKILL.md на GitHub

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

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

  1. 01Bash(${CLAUDE_SKILL_DIR}/scripts/setup-config.sh:*)

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

  • evals/evals.json
  • scripts/setup-config.sh
  • scripts/setup-config.test.sh

FAQ

Что делает скилл Setup?

Inspect optional .claude/repo-fleet-hygiene.conf read-only (check) or add fleet roots, exact repos, and canonical checkout overrides (apply).

Как установить скилл Setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Setup запускает скрипты?

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

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

Сравнить Setup с