sklab setup#

Install the PostToolUse hook that powers sklab stats.

Usage#

bash
sklab setup

Writes PostToolUse hooks into ~/.claude/settings.json (Claude Code) and ~/.cursor/hooks.json (Cursor) so sklab records a row in ~/.sklab/usage.db every time a skill fires. Safe to re-run — the command is idempotent.

Examples#

One-time install

bash
$ sklab setup

Notes#

  • Without this hook, `sklab stats` has no data to show.
  • The hook only records skill names, token counts, and timestamps — no prompt or file contents.