Setup
Verify python-format prerequisites and hooks (check [inspect]), or install ruff and git hooks (apply [install-ruff|install-git-hooks]).
от melodic-software★ 34 звезды на GitHub
Установить Setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setup
Pre-computed context
check's jq probe ran at load time. Read this row instead of re-issuing it; it shows
the tool's path when present, or absent when missing:
jq: !command -v jq 2>/dev/null || echo absent
A row reading [shell command execution disabled by policy] carries no result: run that tool's
command -v probe via Bash instead.
- Pointer: for the placeholder a skipped load-time command leaves, fetch skills § Inject dynamic context live.
- As of: 2026-11-11
- Recheck trigger: the placeholder text changes.
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. Python formatting and linting are two concerns. The hooks run only the
plugin's shipped adapter, where that tool's own config governs the file, and otherwise nothing; they
never run a command from the repository's python record (docs/conventions/ecosystems/python.yaml), which
/toolchain:lint (if enabled) and /toolchain:check (if enabled) run on request. The only consumer-project files this plugin
writes are its git-hook entry copies (apply install-git-hooks); the record is written by
/toolchain:setup apply python (if enabled), never here. The tunables are the native userConfig options (the on/off toggle and the
gitignored-file switch). apply install-ruff is the one other write
path: the adapter's tool, installed into the repo's existing managed environment as described
below.
Action routing: no argument or check runs the check; check inspect runs only the
check inspect section; apply runs the check first, then
remediation; apply install-ruff additionally authorizes the install its section describes. All are non-interactive except where a section says to ask. Never prompt
when the action is given. apply install-git-hooks asks only where its section says to.
check (read-only)
The hook script (${CLAUDE_PLUGIN_ROOT}/hooks/python-format.sh), the entries and the resolver
they share are the single source of truth for what the plugin requires and how it resolves
things; step 3 asks the resolver itself.
Read it first. Open ${CLAUDE_PLUGIN_ROOT}/hooks/python-format.sh with the Read tool before
any probe. Probe what it actually does, don't recite this file. Then read the
pre-computed jq row, run the remaining probes via Bash, and report a PASS/FAIL/INFO
table with one remediation line per FAIL. Do not modify anything.
Run every numbered step below and give each one that applies its own row in that table, also when
the request adds questions of its own; answer those beside the table.
Read each option value from this text; never put a ${user_config.*} string in a shell command.
Open plugin files by the ${CLAUDE_PLUGIN_ROOT} paths this skill names; never Glob or Grep the plugin directory.
An installed plugin runs from a deeply nested cache path, and a search passed that path can fail
to start on some hosts because the path is too long, while reading a named file still works.
When the plugin's toggle is disabled, every prerequisite absence except Node.js downgrades
from FAIL to INFO. The hook script exits through its enabled-gate before probing anything, so
a deliberately disabled plugin is not broken. Node.js stays FAIL: hooks.json spawns node
before the script can read the toggle. Report the probes informationally and note that re-enabling
restores the FAIL semantics. A tool the git pre-commit entry needs keeps the grade it gets with the
toggle on while that entry is installed (step 8 reports it as a tool line beside an ok, stale
or modified entry): the entry runs at commit outside Claude Code and reads no toggle.
- Bash version. Check against the hooks' floor, Bash 3.2 or newer (
${CLAUDE_PLUGIN_ROOT}/hooks/hook-utils.sh). jq. The pre-computedjqrow. FAIL if absent: the batch hook then does nothing, since it reads the file paths withjq.- What each concern resolves to. From the repository root run
sh "${CLAUDE_PLUGIN_ROOT}/git-hooks/format.sh" --resolveandsh "${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh" --resolve. Each prints one row: plugin, concern, source, tool, found, detail, tab-separated. It reads the adapter's config and runs nothing. Append repository paths (--resolve src/a.py scripts/b.py) for one row per file when the answer can differ per file, as an adapter's config walk does; the detail column then names the config that governs that file and the binary that would run, or why nothing resolved. An adapter's own rules (which config opts a file in, where its binary comes from) are in${CLAUDE_PLUGIN_ROOT}/git-hooks/adapters.sh: read them to explain why a row names that config. That explanation reads the candidate files on the walk and names each one passed over wi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(command -v jq*) - 02
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" verify:*) - 03
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs verify:*) - 04
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" inspect:*) - 05
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs inspect:*) - 06
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" plan:*) - 07
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs plan:*) - 08
Bash(sh "${CLAUDE_PLUGIN_ROOT}/git-hooks/format.sh" --resolve) - 09
Bash(sh "${CLAUDE_PLUGIN_ROOT}/git-hooks/format.sh" --resolve:*) - 10
Bash(sh ${CLAUDE_PLUGIN_ROOT}/git-hooks/format.sh --resolve) - 11
Bash(sh ${CLAUDE_PLUGIN_ROOT}/git-hooks/format.sh --resolve:*) - 12
Bash(sh "${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh" --resolve) - 13
Bash(sh "${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh" --resolve:*) - 14
Bash(sh ${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh --resolve) - 15
Bash(sh ${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh --resolve:*)
Вложенные файлы
- reference/git-hook-decisions.md
FAQ
Что делает скилл Setup?
Verify python-format prerequisites and hooks (check [inspect]), or install ruff and git hooks (apply [install-ruff|install-git-hooks]).
Как установить скилл Setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…