Command Palette

Search for a command to run...

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

Setup

Configure code-metrics: check probes Python, config layers, and collectors; apply writes docs/conventions/code-metrics.yaml (never installs tools).

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

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

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

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

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

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

Setup

Purpose

Every reference the plugin prints, every language's collector order, the scope exclusions, and the coverage artifact paths resolve through one consumer surface whose layers and per-key override ${CLAUDE_PLUGIN_ROOT}/reference/config.md lists. The team file of earlier releases, .claude/code-metrics.yaml, is retired and never read; apply moves its keys. Old ~/.claude/code-metrics.yaml and .claude/code-metrics.local.yaml files are not read. Every layer absent is a valid state: every key has a bundled default. This skill is the check-centric setup for that surface and for the external collectors the audits probe: check inspects and verifies, apply persists, and neither installs anything. Keys, defaults, and provenance: ${CLAUDE_PLUGIN_ROOT}/reference/config.md.

Action routing: no argument or check runs the check; apply runs the check first, then persists. apply is non-interactive when complete <key>=<value> arguments are supplied (automation and headless use pass them and are never prompted); with none, it interviews one key at a time, recommendation first.

check (read-only)

Run and present the table as printed:

"${CLAUDE_SKILL_DIR}/scripts/setup-check.sh" --user-file '${user_config.config_file}'

Keep --user-file exactly as written here: it names the userConfig layer's file, and an empty or unsubstituted value means the option is unset.

Rows, each PASS, FAIL, WARN, or INFO:

  1. python: the interpreter resolved (python3, python, or py -3) and the plugin's floor. FAIL stops the table: Python is required for correctness, so name the remediation.
  2. layer userConfig / team / local: userConfig is INFO unset when the config_file option names no file, and WARN when its value is not an absolute path. Each file layer is absent (INFO), or present and parsed in the YAML subset the plugin reads (block mappings, block sequences, flow sequences of scalars, scalars, comments). A flow mapping, anchor, tag, or block scalar is FAIL with its line; the operator rewrites the file in block style. layer team location is WARN when the retired .claude/code-metrics.yaml exists: the plugin does not read it, so apply moves its keys, or, once the docs file exists, the operator deletes it.
  3. layer team tracked: git check-ignore -v on the team file reports no match (a match is FAIL with the rule: an ignored team layer never reaches the team) and git ls-files --error-unmatch sees it (untracked is WARN: written but uncommitted).
  4. layer local ignored: the personal override is gitignored, else WARN with the recommended consumer line docs/conventions/**/*.local.*. Recommend the line; never edit the consumer's .gitignore.
  5. ecosystem <language>.yaml: each consumer ecosystem file parses. PASS when its language is in the resolved languages mapping (a bundled language, or one a layer lists): its globs and enabled override language detection. WARN naming the missing languages.<language> entry when no layer lists the language: the resolver ignores that record. WARN asking for a rename when the file name is not a lowercase kebab-case language id, since no languages entry can name it. WARN when the configuration does not resolve, since the language list is then unknown.
  6. reference <measure>: the resolved value with the layer that supplied it and its provenance, so a personal layer that changed a value is visible.
  7. collector <tool>: the adapter's probe, then one measure from the ladder run on a bundled fixture. PASS <version>; measured <measure> on <fixture> when the measure returns rows; FAIL when the probe passed but the measure exited non-zero or returned no rows, with the first stderr line (a tool that resolves but cannot measure); WARN probe only: <reason> when no bundled fixture can exercise it (a tool bound to the project's own configuration, or one with no fixture for its language); INFO missing with the install hint when the probe fails. Missing is not a failure: the language reports unavailable at audit time and the run continues.

Exit 0 with no FAIL row, 1 with one, 2 on a usage or environment error.

apply (idempotent)

  1. Run check and read its table.
  2. Resolve the values. With complete <key>=<value> arguments, use them directly. Otherwise interview one key at a time, recommendation first, walking the key reference ${CLAUDE_PLUGIN_ROOT}/reference/config.md (every key with its default and provenance; ${CLAUDE_SKILL_DIR}/templates/config-template.yaml holds the defaults in the subset): the cyclomatic reference (10 and 15 are the cited alternatives to the default), the file-length reference (500 selectable) and size.mode, scope exclusions, coverage artifact paths, per-language opt-outs and collector order, duplication registries. Offer every declared key, preserve every key th
Полный SKILL.md на GitHub

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

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

  1. 01Bash(${CLAUDE_SKILL_DIR}/scripts/setup-check.sh:*)
  2. 02Bash(${CLAUDE_SKILL_DIR}/scripts/setup-apply.py:*)
  3. 03Bash(git check-ignore:*)
  4. 04Bash(git ls-files:*)

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

  • evals/evals.json
  • scripts/setup-apply.py
  • scripts/setup-check.sh
  • scripts/setup-check.test.sh
  • scripts/test_setup_apply.py
  • templates/config-template.yaml

FAQ

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

Configure code-metrics: check probes Python, config layers, and collectors; apply writes docs/conventions/code-metrics.yaml (never installs tools).

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

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

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

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

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

Сравнить Setup с