Checks and installs dependencies for the itp-hooks plugin: bun, jq, proto, and optional linters (ruff, shellcheck, oxlint).
Ships in itp-hooks. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Prerequisite —
cc-plugin-root. This skill resolves its scripts withcc-plugin-root <plugin>(theCLAUDE_PLUGIN_ROOTplaceholder is not a shell variable and expands to empty). If the command is missing, run/itp:setup(its first step installs it), or link it directly:mkdir -p ~/.local/bin && ln -sfn \ ~/.claude/plugins/marketplaces/cc-skills/scripts/cc-plugin-root ~/.local/bin/cc-plugin-root
Verify and install dependencies for the itp-hooks plugin:
bun is a proto shim) - hook commands call bun bare, and older proto can make Claude Code discard hook decisions; checked by scripts/proto-floor.shSelf-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.
Run dependency check:
/usr/bin/env bash << 'SETUP_EOF'
PLUGIN_DIR="$(cc-plugin-root itp-hooks)"
bash "$PLUGIN_DIR/scripts/install-dependencies.sh" --check
SETUP_EOF
/usr/bin/env bash << 'CHECK_EOF'
PLUGIN_DIR="$(cc-plugin-root itp-hooks)"
bash "$PLUGIN_DIR/scripts/install-dependencies.sh" --check
CHECK_EOF
After running the check, present the findings to the user:
| Tool | Status | Purpose |
|---|---|---|
| jq | ? | Required for hook I/O |
| bun | ? | Required for every TS hook |
| ruff | ? | Python silent failure rules |
| shellcheck | ? | Shell script analysis |
| oxlint | ? | JavaScript/TypeScript linting |
If optional linters are missing, use AskUserQuestion:
question: "Install optional linters for full silent failure detection coverage?"
header: "Linters"
options:
- label: "Install all"
description: "Install ruff, shellcheck, and oxlint for Python, Shell, and JS/TS coverage"
- label: "Skip"
description: "Continue with graceful degradation (detection only for installed linters)"
/usr/bin/env bash << 'INSTALL_EOF'
PLUGIN_DIR="$(cc-plugin-root itp-hooks)"
bash "$PLUGIN_DIR/scripts/install-dependencies.sh" --install
INSTALL_EOF
| Flag | Behavior |
|---|---|
| (none) | Check dependencies, show status |
--check | Same as default |
--install | Check then install all missing tools |
The hooks work with graceful degradation:
| Tool Missing | Effect |
|---|---|
| bun/node | Fake-data-guard hook fails |
| ruff | Python files skip silent failure check |
| shellcheck | Shell scripts skip analysis |
| oxlint | JS/TS files skip linting |
| jq | All hooks fail (required for JSON I/O) |
No hook installation step exists. hooks/hooks.json in this plugin is what Claude Code loads, so enabling the plugin is the installation. The /itp:tether install path was retired in issue #127 — injecting the same hooks into ~/.claude/settings.json double-registered them, and its script had been inert since posttooluse-reminder.sh became posttooluse-reminder.ts.
IMPORTANT: Restart the Claude Code session for newly enabled plugin hooks to take effect.
| Issue | Cause | Solution |
|---|---|---|
| jq not found | jq not installed | brew install jq |
| bun/node not found | Runtime not installed | proto install bun |
| ruff version error | Outdated ruff | brew upgrade ruff |
| Plugin dir not found | Plugin not installed | Re-install plugin via marketplace |
| PATH issues | Shims not in PATH | Add proto shims to ~/.zshenv |
After this skill completes, reflect before closing the task:
Do NOT defer. The next invocation inherits whatever you leave behind.
What SKILL.md sets; muted values are Claude Code's defaults
haikuThree short reads, in order
2 skills in this plugin
/itp-hooks:setup [--install|--check]from itp-hooks
npx claudepluginhub terrylica/cc-skills --plugin itp-hooks