Setup
Configure code-metrics: check probes Python, config layers, and collectors; apply writes docs/conventions/code-metrics.yaml (never installs tools).
от 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:
- python: the interpreter resolved (
python3,python, orpy -3) and the plugin's floor. FAIL stops the table: Python is required for correctness, so name the remediation. - layer userConfig / team / local:
userConfigis INFOunsetwhen theconfig_fileoption 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.yamlexists: the plugin does not read it, soapplymoves its keys, or, once the docs file exists, the operator deletes it. - layer team tracked:
git check-ignore -von the team file reports no match (a match is FAIL with the rule: an ignored team layer never reaches the team) andgit ls-files --error-unmatchsees it (untracked is WARN: written but uncommitted). - 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. - ecosystem
<language>.yaml: each consumer ecosystem file parses. PASS when its language is in the resolvedlanguagesmapping (a bundled language, or one a layer lists): itsglobsandenabledoverride language detection. WARN naming the missinglanguages.<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 nolanguagesentry can name it. WARN when the configuration does not resolve, since the language list is then unknown. - reference
<measure>: the resolved value with the layer that supplied it and its provenance, so a personal layer that changed a value is visible. - 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); WARNprobe 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); INFOmissingwith the install hint when the probe fails. Missing is not a failure: the language reportsunavailableat audit time and the run continues.
Exit 0 with no FAIL row, 1 with one, 2 on a usage or environment error.
apply (idempotent)
- Run
checkand read its table. - 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.yamlholds the defaults in the subset): the cyclomatic reference (10 and 15 are the cited alternatives to the default), the file-length reference (500 selectable) andsize.mode, scope exclusions, coverage artifact paths, per-language opt-outs and collector order, duplication registries. Offer every declared key, preserve every key th
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(${CLAUDE_SKILL_DIR}/scripts/setup-check.sh:*) - 02
Bash(${CLAUDE_SKILL_DIR}/scripts/setup-apply.py:*) - 03
Bash(git check-ignore:*) - 04
Bash(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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…