Command Palette

Search for a command to run...

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

Setup

Verify actionlint prerequisites and its git pre-commit entry (check [inspect]), or register its git pre-commit entry (apply [install-git-hooks]).

БесплатноБез исполняемых скриптов
melodic-softwareот 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:

  • node: !command -v node 2>/dev/null || echo absent
  • actionlint: !command -v actionlint 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. The plugin only lints. Its git pre-commit entry runs only the shipped actionlint adapter, over the repository's workflow files, applying the repository's own actionlint config when there is one; it never runs a command from the repository's github-actions record (docs/conventions/ecosystems/github-actions.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); it never writes the actionlint config or the record (/toolchain:setup apply github-actions (if enabled) writes the record). The tunable is the native userConfig option actionlint_enabled. Every prerequisite is a PATH binary the plugin never bundles, and the plugin never installs system packages, so apply is guidance-and-verify with that one write path. It never modifies user settings or the plugin cache.

Action routing: no argument or check runs the check; check inspect runs only the check inspect section; apply runs the check first, then offers remediation guidance; apply install-git-hooks registers the git-hook entry. All 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 lint entry (${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh), its adapter (${CLAUDE_PLUGIN_ROOT}/git-hooks/adapters.sh) and the resolver they share are the single source of truth for what the plugin requires and how it resolves things; step 4 asks the resolver itself.

Read it first. Open ${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh and ${CLAUDE_PLUGIN_ROOT}/git-hooks/adapters.sh with the Read tool before any probe, also when step 4 resolves nothing. 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 session-start probe 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: the git-hook installer needs it. A tool the git pre-commit entry needs keeps the grade it gets with the toggle on while that entry is installed (step 7 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.

  1. Bash version. Check against the floor, Bash 3.2 or newer (README Requirements).
  2. node. The pre-computed node row. FAIL if absent, even when the toggle is off: the session-start probe and the git-hook installer are Node scripts, so neither runs. Probed here through Bash, which works without Node.
  3. actionlint. The pre-computed actionlint row. Where step 4 resolves the adapter, FAIL if absent: the pre-commit entry then fails the commit of an agent with the install command and gives a person a notice. Where step 4 resolves nothing, INFO: no hook would run it here.
  4. What lint resolves to. From the repository root run sh "${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh" --resolve. It prints one row: plugin, concern, source, tool, found, detail, tab-separated. It reads the adapter's config and runs nothing. Which files the adapter governs and which config it applies are its rules in adapters.sh: read them to explain the row. Report from the row, never from this text:
    • `
Полный SKILL.md на GitHub

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

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

  1. 01Bash(command -v node*)
  2. 02Bash(command -v actionlint*)
  3. 03Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" verify:*)
  4. 04Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs verify:*)
  5. 05Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" inspect:*)
  6. 06Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs inspect:*)
  7. 07Bash(node "${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs" plan:*)
  8. 08Bash(node ${CLAUDE_PLUGIN_ROOT}/lib/git-hooks/install.mjs plan:*)
  9. 09Bash(sh "${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh" --resolve)
  10. 10Bash(sh "${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh" --resolve:*)
  11. 11Bash(sh ${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh --resolve)
  12. 12Bash(sh ${CLAUDE_PLUGIN_ROOT}/git-hooks/lint.sh --resolve:*)

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

  • reference/git-hook-decisions.md

FAQ

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

Verify actionlint prerequisites and its git pre-commit entry (check [inspect]), or register its git pre-commit entry (apply [install-git-hooks]).

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

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

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

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить Setup с