Command Palette

Search for a command to run...

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

Setup

Verify desktop-notification hook prerequisites and per-OS channel configuration (check, read-only), or resolve findings (apply).

БесплатноБез исполняемых скриптов
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Setup

Pre-computed context

check's node and jq probes and OS-family detection ran at load time. Read these rows instead of re-issuing them. The node and jq rows show the tool's path, or absent when missing; the uname -s row shows the kernel name, or unknown when it fails to run:

  • node: !command -v node 2>/dev/null || echo absent
  • jq: !command -v jq 2>/dev/null || echo absent
  • uname -s: !uname -s 2>/dev/null || echo unknown

A row reading [shell command execution disabled by policy] carries no result: run that 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. This plugin owns no consumer-project configuration. The only tunables are the five native userConfig toggles (master, one per channel, mod-toast forwarding), and every remaining prerequisite is a system tool or an OS package. So apply is pure guidance-and-verify with no write path: it installs nothing and edits nothing.

Action routing: no argument or check runs the check; apply runs the check first, then offers the resolution for each finding. Both are non-interactive. Never prompt when the action is given.

check (read-only)

The hook script and the shared library it sources are the single source of truth for what this plugin requires and how it degrades: ${CLAUDE_PLUGIN_ROOT}/hooks/desktop-notification.sh and ${CLAUDE_PLUGIN_ROOT}/hooks/hook-utils.sh.

Read it first. Probe what it actually does, don't recite this file. Then read the pre-computed node, jq and uname -s 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.js (step 3) downgrades from FAIL to INFO. The hook 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 missing Node.js stays FAIL in either state: every hook row launches node, and the gate runs only after hooks/exec-bash.mjs starts.

  1. Bash version. Check ${BASH_VERSION} against the hook's documented floor (README Requirements: Bash 3.2+). INFO when below 5.0: EPOCHREALTIME is unset there, so the opt-in telemetry envelope is skipped while notifications still fire, a degrade, not a failure.
  2. jq. The pre-computed jq row. FAIL if absent: without it the hook can neither classify the notification nor emit its terminal sequence, so it drops every notification without a notice. This check is where a missing jq surfaces: the hook cannot report it to the user or the model. Pointer: Notification.
  3. Node.js. The pre-computed node row. FAIL if absent: every hook row launches through node hooks/exec-bash.mjs, so without it the hook does not launch and no notification fires. The probe runs through the Bash tool, so it works when the launcher cannot. Remediation: install Node.js from https://nodejs.org/en/download, or from the platform package manager. Node is a prerequisite separate from Claude Code. Pointer: Install with npm and Exec form and shell form.
  4. Per-OS os_toast dependency. Take the current OS family from the pre-computed uname -s row and probe only that family's requirement (the hook's case "$(uname -s)" does exactly this):
    • Linux. command -v notify-send (libnotify). FAIL only if the os_toast channel is enabled and it is absent; otherwise INFO. Absent → the os_toast channel is a documented silent no-op; remediation is the missing-notify-send entry under apply. The terminal channels are unaffected.
    • macOS (Darwin). INFO: osascript is built-in, no dependency. Note the first toast prompts to allow notifications for the terminal app.
    • Windows / other. INFO: the hook has no os_toast branch on this platform (a fire-and-fo
Полный SKILL.md на GitHub

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

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

  1. 01Bash(uname -s*)
  2. 02Bash(command -v node*)
  3. 03Bash(command -v jq*)

FAQ

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

Verify desktop-notification hook prerequisites and per-OS channel configuration (check, read-only), or resolve findings (apply).

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

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

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

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

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

Сравнить Setup с