Setup
Verify guardrails prerequisites, toggles, and hooks (check [inspect]), or apply fixes, git hooks, read-deny rules, and identity-domains.
от melodic-software★ 34 звезды на GitHub
Установить Setup в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Setup
Pre-computed context
check's jq and node 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 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. Every tunable is a native userConfig option (one enable toggle
per guard plus scalars such as block_dangerous_git_allow), so bare apply is guidance
and writes nothing beyond the gated cleanup of retired hooks. The explicit actions below are
the only other writes, each as its section states: install-git-hooks writes the plugin's
git-hook entry copies, read-deny touches settings through your edit tools, and
identity-domains writes the block-cross-domain map into the plugin data directory.
Action routing: no argument or check runs the check; check inspect runs only the
check inspect section; apply runs the check first, then
points at each remediation. Both are non-interactive: never prompt when the action is given,
except for the confirmation bare apply asks before each retired-hook cleanup. The other actions
ask only where their sections say to, and only in an attended run: install-git-hooks for scope,
manager and decisions, read-deny for scope and consent, and identity-domains for the values
the profile lacks and for confirmation.
check (read-only)
The guard scripts (${CLAUDE_PLUGIN_ROOT}/hooks/*.sh) and hooks.json are the single
source of truth for the guard inventory and each guard's runtime needs.
Read it first. Probe what it actually does, don't recite this file. Then read the
pre-computed jq and node rows, run the remaining probes via Bash, and report a
PASS/FAIL/INFO table with one remediation line per FAIL. Do not modify anything.
When every guard's toggle is disabled, every prerequisite absent or below its floor, but node
(step 3), downgrades from FAIL to INFO. Each guard exits through its enabled-gate before probing
anything, so a deliberately disabled plugin is not broken. Report the probes informationally and
note that re-enabling restores the FAIL semantics. A tool a git-hook entry needs keeps the grade it
gets with a guard on while that entry is installed (step 5 reports it as a tool line beside an
ok, stale or modified entry): the entries run at commit or push outside Claude Code and read
no toggle.
- Bash 5.0+. The guards' documented runtime floor (Git Bash on native Windows).
Probe the bash the hooks run: the one
${CLAUDE_PLUGIN_ROOT}/hooks/exec-bash.mjsresolves in the order itsresolveBashsets per platform (read it; do not recite it), which can differ from the Bash tool's own bash. FAIL below the floor with the README Requirements remediation. jq. The pre-computedjqrow. FAIL if absent: per the README, the blocking guards then deny every Bash and PowerShell call and the others skip their work after one notice per session, which is exactly what this check exists to surface.node. The pre-computednoderow. FAIL if absent, with the README Requirements remediation: every guard row starts throughhooks/exec-bash.mjs, so no guard starts without it. The README records what Claude Code documents about a hook that cannot start.- Per-guard toggles. Report each guard's effective
<guard>_enabledvalue, one row per guard, so the user sees the live guard surface at a glance. The effective value is the configured option, else that guard'sdefaultinplugin.json; the guards read it as theCLAUDE_PLUGIN_OPTION_<GUARD>_ENABLEDexport. Defaults differ per guard (the advisory opt-in guards shipfalse), so take each default from the manifest and never assumetrue. - Git-hook entries. Run
node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" verifyfrom the repository. Each line is<state>\t<entry>[\t<detail>]:okis PASS,declinedis INFO (this clone said no; silent at session start), andmissing,stale,modifiedorsupersededis a FAIL whose remediation isapply install-git-hooks; asupersededdetail lists what an install under an earlier plugin name left, which that action removes on the user's yes. Atool\t<tool>\tmissingline means an installed entry cannot run here: list the tool with its install method from the plugi
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(command -v jq*) - 02
Bash(command -v node*) - 03
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" verify:*) - 04
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs verify:*) - 05
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" inspect:*) - 06
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs inspect:*) - 07
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" plan:*) - 08
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs plan:*) - 09
Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/prerequisites.mjs" check "${CLAUDE_PLUGIN_ROOT}" --for hook:run-guards.sh) - 10
Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/prerequisites.mjs check ${CLAUDE_PLUGIN_ROOT} --for hook:run-guards.sh)
Вложенные файлы
- context/install-commit-msg.md
- reference/git-hook-decisions.md
- scripts/identity-domains.sh
- scripts/identity-domains.test.sh
FAQ
Что делает скилл Setup?
Verify guardrails prerequisites, toggles, and hooks (check [inspect]), or apply fixes, git hooks, read-deny rules, and identity-domains.
Как установить скилл Setup?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Setup запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…