Cc-skills setup

Check and install dependencies for itp-hooks (silent failure detection + fake-data-guard). TRIGGERS - itp-hooks setup, install hook deps, hook dependencies, ruff install.

install
source · Clone the upstream repo
git clone https://github.com/terrylica/cc-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/terrylica/cc-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/plugins/itp-hooks/skills/setup" ~/.claude/skills/terrylica-cc-skills-setup-f41702 && rm -rf "$T"
manifest: plugins/itp-hooks/skills/setup/SKILL.md
source content

ITP Hooks Setup

Verify and install dependencies for the itp-hooks plugin:

  • jq (required) - JSON processing for hook input/output
  • bun or node (required) - Runtime for fake-data-guard.mjs hook
  • ruff (optional) - Python silent failure detection
  • shellcheck (optional) - Shell script analysis
  • oxlint (optional) - JavaScript/TypeScript linting

Self-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.

Quick Start

Run dependency check:

/usr/bin/env bash << 'SETUP_EOF'
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/itp-hooks}"
bash "$PLUGIN_DIR/scripts/install-dependencies.sh" --check
SETUP_EOF

Interactive Setup Workflow

Step 1: Check Dependencies

/usr/bin/env bash << 'CHECK_EOF'
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/itp-hooks}"
bash "$PLUGIN_DIR/scripts/install-dependencies.sh" --check
CHECK_EOF

Step 2: Present Findings

After running the check, present the findings to the user:

ToolStatusPurpose
jq?Required for hook I/O
bun/node?Required for fake-data-guard
ruff?Python silent failure rules
shellcheck?Shell script analysis
oxlint?JavaScript/TypeScript linting

Step 3: User Decision (if missing tools)

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)"

Step 4: Install (if confirmed)

/usr/bin/env bash << 'INSTALL_EOF'
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$HOME/.claude/plugins/marketplaces/cc-skills/plugins/itp-hooks}"
bash "$PLUGIN_DIR/scripts/install-dependencies.sh" --install
INSTALL_EOF

Flags

FlagBehavior
(none)Check dependencies, show status
--check
Same as default
--install
Check then install all missing tools

Graceful Degradation

The hooks work with graceful degradation:

Tool MissingEffect
bun/nodeFake-data-guard hook fails
ruffPython files skip silent failure check
shellcheckShell scripts skip analysis
oxlintJS/TS files skip linting
jqAll hooks fail (required for JSON I/O)

Next Steps

After setup, install the hooks to your settings:

/itp:hooks install

IMPORTANT: Restart Claude Code session for hooks to take effect.

Troubleshooting

IssueCauseSolution
jq not foundjq not installed
brew install jq
bun/node not foundRuntime not installed
mise install bun
mise not installedMissing tool managerInstall from https://mise.jdx.dev
ruff version errorOutdated ruff
brew upgrade ruff
Plugin dir not foundPlugin not installedRe-install plugin via marketplace
PATH issuesShims not in PATHAdd mise shims to ~/.zshenv

Post-Execution Reflection

After this skill completes, reflect before closing the task:

  1. Locate yourself. — Find this SKILL.md's canonical path before editing.
  2. What failed? — Fix the instruction that caused it.
  3. What worked better than expected? — Promote to recommended practice.
  4. What drifted? — Fix any script, reference, or dependency that no longer matches reality.
  5. Log it. — Evolution-log entry with trigger, fix, and evidence.

Do NOT defer. The next invocation inherits whatever you leave behind.