Setup
Verify go-format prerequisites and Go hooks (check [inspect]), or resolve and register its git pre-commit entry (apply [install-git-hooks]).
от melodic-software★ 34 звезды на GitHub
Установить Setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setup
Pre-computed context
check's tool probes ran at load time. Read these rows instead of re-issuing them; each shows the
tool's path when present, or absent when missing:
jq: !command -v jq 2>/dev/null || echo absentnode: !command -v node 2>/dev/null || echo absentgoimports: !command -v goimports 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. Go formatting and linting are two concerns. The hooks run only the
plugin's shipped format adapter (goimports, formatting and import ordering only) and never run a
command from the repository's go record (docs/conventions/ecosystems/go.yaml), which /toolchain:lint (if enabled)
and /toolchain:check (if enabled) run on request. The plugin ships no lint adapter, so the hooks run nothing
for Go linting. The only consumer-project files this plugin owns are its git-hook entry copies,
which apply install-git-hooks writes; the record is written by /toolchain:setup apply go (if enabled),
never here. Unlike its sibling formatter plugins, whose adapters run only where their tool's own
config opts a file in, the format adapter has no consumer-config opt-in gate, so the tunables
are the native userConfig options: go_format_enabled, go_format_lint_gitignored and
go_format_end_of_turn. The adapter resolves goimports on PATH only, never a project
dependency, so apply is guidance-only for tools: it never installs anything, matching the
plugin philosophy's never-download-silently rule.
Action routing: no argument or check runs the check; check inspect runs only the
check inspect section; apply runs the check first, then
prints remediation guidance for each FAIL. Both are non-interactive. 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/go-format.sh), the entry and the resolver they
share are the single source of truth for what the plugin requires and how it resolves things;
step 5 asks the resolver itself.
Read it first. Probe what it actually does, don't recite this file. Then read the
pre-computed tool rows, run the remaining probes via Bash, and report a PASS/FAIL/INFO
table with one remediation line per FAIL. Do not modify anything.
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 downgrades from
FAIL to INFO. The hook exits through its enabled-gate before probing anything, so a deliberately
disabled plugin is not broken. Report those probes informationally and note that re-enabling
restores the FAIL semantics. A missing node stays FAIL in either state: Claude Code launches
node before the launcher can read the toggle, so both hook rows fail to start. A tool the git
pre-commit entry needs keeps the grade it gets with the toggle on while that entry is installed
(step 10 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.node. The pre-computednoderow. FAIL if absent: every hook row launches throughnode hooks/exec-bash.mjs, so without node the hooks do not start and nothing is enforced. The row reflects Bash's PATH, while Claude Code resolves the hook'snodefrom its own environment (docs/formatter-path-probes.md), so a PASS here does not establish that hooks launch. If hooks fail to start despite a PASS, report hook availability as unestablished.goimportsbinary. The pre-computedgoimportsrow (the hook resolves PATH only, no.venv-style per-repo convention). Report the resolved path andgoimports -h's first line when found (goimports has no--versionflag; the help header is the closest signal)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(command -v jq*) - 02
Bash(command -v node*) - 03
Bash(command -v goimports*) - 04
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" verify:*) - 05
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs verify:*) - 06
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" inspect:*) - 07
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs inspect:*) - 08
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" plan:*) - 09
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs plan:*) - 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/format.sh --resolve) - 13
Bash(sh ${CLAUDE_PLUGIN_ROOT}/git-hooks/format.sh --resolve:*)
Вложенные файлы
- reference/git-hook-decisions.md
FAQ
Что делает скилл Setup?
Verify go-format prerequisites and Go hooks (check [inspect]), or resolve and register its git pre-commit entry (apply [install-git-hooks]).
Как установить скилл Setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Setup запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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…