Command Palette

Search for a command to run...

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

Setup

Verify markdown-format prerequisites and hooks (check [inspect]), or install lint and git hooks (apply [install-lint|install-git-hooks]).

БесплатноБез исполняемых скриптов
melodic-softwareот 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 missing, reading as literal command text, or 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. Markdown formatting and linting are two concerns. The hooks run only the plugin's shipped markdownlint-cli2 adapter, where a markdownlint config governs the file, and otherwise nothing; they never run a command from the repository's markdown record (docs/conventions/ecosystems/markdown.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 markdown (if enabled), never here. Rules come from the repository's own markdownlint config, and the tunables are the native userConfig options (the on/off toggle and the gitignored-file switch). apply is otherwise guidance-and-verify, with one more write path: the explicitly invoked apply install-lint dependency install 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-lint additionally authorizes the consumer-repo dependency install described below. 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 hook script (${CLAUDE_PLUGIN_ROOT}/hooks/markdown-format.sh), the adapter (${CLAUDE_PLUGIN_ROOT}/git-hooks/adapters.sh) and the gates it applies for the batch row and the pre-commit entry (${CLAUDE_PLUGIN_ROOT}/git-hooks/markdown-gates.sh) are the single source of truth for what the plugin requires and how it resolves things; step 6 asks the resolver itself.

Read them first. Probe what they actually do, 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. Read each option value from this text; never put a ${user_config.*} string in a shell command: bash reads an unsubstituted one as a bad substitution and the whole call fails. Open plugin files by the ${CLAUDE_PLUGIN_ROOT} paths this skill names; never Glob or Grep the plugin directory: the paths already name every file this skill opens.

When the plugin's toggle is disabled, every prerequisite absence except Node.js (item 1) downgrades from FAIL to INFO. The hook and the SessionStart probe both exit through the enabled gate before probing anything, so a deliberately disabled plugin is not broken. Node.js stays FAIL: Claude Code must spawn node for the hook row before that gate can run. A tool the git pre-commit entry needs keeps the grade it gets with the toggle on while that entry is installed (item 11 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. Report the probes informationally and note that re-enabling restores the FAIL semantics.

  1. Node.js. Every hook row starts through node hooks/exec-bash.mjs, so without node on PATH no hook launches and nothing is enforced. Probe it via Bash with node --version (a hook cannot report its own missing launcher; a stale version-manager shim resolves on PATH yet cannot run, so resolution alone is not a PASS). FAIL if it is absent or exits non-zero, in every toggle state; the remediation is to install or repair Node.js (README Requirements).
  2. Bash version. Check against the hooks' floor, Bash 3.2 or newer (${CLAUDE_PLUGIN_ROOT}/hooks/hook-utils.sh).
  3. jq. The pre-computed jq row, or the Bash probe when that row carries no result. The batch hook reads the file paths with jq and does nothing, silently, without it. FAIL if absent and the repository opted in per item 5; INFO otherwise, because without a config nothing would run anyway and the missing config, not jq, is why.
  4. markdownlint-cli2. Resolve it exactly the way the gates' md_local_bin and the hook's PATH lookup do: PATH first, then node_modules/.bin/markdownlint-cli2 walking up from a Markdown
Полный SKILL.md на GitHub

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

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

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

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

  • reference/git-hook-decisions.md

FAQ

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

Verify markdown-format prerequisites and hooks (check [inspect]), or install lint and git hooks (apply [install-lint|install-git-hooks]).

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

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

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

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

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

Сравнить Setup с