Stats
Actions
Tags
From hw-toolkit
Runs a shell script on session start to initialize the plugin environment. Executes bash commands.
1 event · 4 hooks
Where this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
diff -q "${CLAUDE_PLUGIN_ROOT}/package.json" "${CLAUDE_PLUGIN_DATA}/package.json" >/dev/null 2>&1 || (mkdir -p "${CLAUDE_PLUGIN_DATA}" && cp "${CLAUDE_PLUGIN_ROOT}/package.json" "${CLAUDE_PLUGIN_DATA}/" && cd "${CLAUDE_PLUGIN_DATA}" && npm install --no-audit --no-fund) || rm -f "${CLAUDE_PLUGIN_DATA}/package.json"command -v kicad-cli >/dev/null 2>&1 || [ -n "$KICAD_CLI" ] || echo 'hw-toolkit: kicad-cli not found on PATH. Install KiCad 9+ (macOS: brew install --cask kicad ; or https://www.kicad.org/download/), or set KICAD_CLI to the binary path.'command -v node >/dev/null 2>&1 || echo 'hw-toolkit: node not found on PATH. ELK layout needs Node 18+ (macOS: brew install node ; or https://nodejs.org/).'bash "${CLAUDE_PLUGIN_ROOT}/hooks/install-statusline.sh"npx claudepluginhub el-guapo2024/hw-toolkit --plugin hw-toolkit