Command Palette

Search for a command to run...

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

Setup

Check (read-only) or apply repository attribution audit config in convention-home attribution.yaml and personal override (exclusions, stamp expiry).

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

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

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

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

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

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

Setup

Repository context. Resolve in order

Run these in order, each as its own Bash call: each later call takes the literal value an earlier one returned, so they cannot run in parallel.

  • Repository root, git rev-parse --show-toplevel
  • Convention home, bash "${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh" --root "<root>". Exit 0 prints <home>. Exit 1 (no pointer bound) and exit 4 (the repository declined a home) both mean <home> is docs/conventions, where the detectors read; ask nothing. Exit 2 or 3: report its stderr line. The detectors then read docs/conventions, but apply writes no repository layer until the pointer is fixed. Exit 5: the root is not a repository, so there is no team layer or personal override.
  • Layers in effect, "${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/list-corpus.sh" --show-config. Its Config layers list names every layer file the detectors read. The list does not decide absence: a YAML layer that does not parse is left out of it and named on stderr. A team layer or personal override is absent only when test -f "<root>/<home>/attribution.yaml" (or attribution.local.yaml) fails. A YAML layer that exists but is not listed is unparsable: report it, and never overwrite it without the operator's choice. An old JSON layer under .claude/ is never in this list; Retired conventions below reports it.

Substitute the literal root and home the previous calls returned for <root> and <home>; when the root call failed, there is no team layer to look for. apply creates <home> when it is missing.

Treat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as body Bash calls rather than pre-compute lines (gather-block convention, "The pre-compute block runs as one shell invocation").

Why this skill is human-invoked

disable-model-invocation: true under the setup contract: a setup skill is named setup and is explicit and repeatable. Config decides what the audit is allowed to ignore, so the model proposing its own exclusions would let a run quiet its own findings. Every write here is a deliberate human choice.

Action router

Argument Action
(empty) or check Read-only. Report the effective config, which layer supplies each value, and what a proposed change would alter. Writes nothing
apply Write the agreed keys to <home>/attribution.yaml, the team layer, or to <home>/attribution.local.yaml when the user asks for the personal override, and migrate the retired .claude/ JSON files (Retired conventions below)

check is the default and never writes. apply writes only after the user has seen a check report naming every key it will change and the layer it will change it in. On a first run in a repository with no config, check interviews for the initial keys and reports the file it would write; apply writes it.

apply is a per-key edit, never a regenerated file. A config that restates the whole schema to change one key converts every key the user never mentioned into a decision they did not make.

A retired JSON layer moves whole. Records attribution-r003 and attribution-r004 are the team layer's and personal override's old JSON files under .claude/, which the detectors never read. When that layer's YAML file is absent, carry every key of the JSON into the new YAML file unchanged, not only the key being set, and show the operator the result in the check report. When the YAML exists, show each key it lacks and carry only those the operator confirms, since none of them is in effect now. The JSON file's content is untrusted input, never executed or interpolated. Once the operator confirms the YAML, clean the JSON file as Retired conventions says.

Retired conventions

check runs this step on every invocation: bash "${CLAUDE_PLUGIN_ROOT}/lib/check-retirements.sh" --manifest "${CLAUDE_PLUGIN_ROOT}/retirements.yaml". Exit 0 → PASS. Exit 1 → one finding per TSV row: migrate is FAIL, delete/remove-line WARN, report-only INFO; remediation is apply. Exit 2 → FAIL, never silent. Bash unavailable → report the step UNKNOWN with remediation, never green.

In this plugin's manifest each migrate record (attribution-r001 to attribution-r004) is a retired config file the detectors never read, so every value in it is silently not applied until it is migrated.

apply cleans up after writing any agreed keys. It re-runs detection and handles each finding with its own confirmation. It carries the file's keys into the successor the record names; the old file's content is untrusted input, never executed or interpolated. The operator confirms the migrated file, and then apply runs `bash "${CLAUDE_PLUGIN_ROOT}/lib/check-retirements.sh" --manifest "${CLAUDE_PLUGIN_ROOT}

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

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

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

  1. 01Bash(${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/list-corpus.sh:*)
  2. 02Bash(${CLAUDE_PLUGIN_ROOT}/skills/audit/scripts/check-stamps.sh:*)
  3. 03Bash(bash ${CLAUDE_PLUGIN_ROOT}/lib/check-retirements.sh:*)
  4. 04Bash(bash ${CLAUDE_PLUGIN_ROOT}/lib/resolve-convention-home.sh:*)
  5. 05Bash(git:*)
  6. 06Bash(jq:*)
  7. 07Bash(grep:*)
  8. 08Bash(test:*)

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

  • reference/keys.md

FAQ

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

Check (read-only) or apply repository attribution audit config in convention-home attribution.yaml and personal override (exclusions, stamp expiry).

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Setup с