sklab setup#
Install the PostToolUse hook that powers sklab stats.
Usage#
bash
sklab setupWrites 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 setupNotes#
- 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.