All 38 first-party skills move to kvb-<category>-<name> with the categories think, create, code, ci, git, check, org and skills; kvb-cleanup and kvb-help are the only uncategorized names. tests/test_naming.py pins the schema, the Agent Skills name rules and the README organigram. enable-plugins.js repoints hook commands of renamed skills in settings.local.json so a stale script path cannot block tools. BREAKING CHANGE: the old skill names and slash commands (/commit-next, /dream, /autotune, ...) are gone; use their kvb- successors listed in the README organigram. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
33 lines
1.0 KiB
Bash
Executable File
33 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# UserPromptSubmit hook: emit the kvb-skills-tune hint at most once per interval.
|
|
# Stdout lands in the agent's context, which is why the payload tells the agent
|
|
# to show the hint and keep going instead of running kvb-skills-tune by itself.
|
|
set -euo pipefail
|
|
|
|
interval="${AUTOTUNE_INTERVAL_SECONDS:-3600}"
|
|
stamp="${AUTOTUNE_STAMP:-${HOME}/.claude/.autotune-stamp}"
|
|
|
|
now="$(date +%s)"
|
|
last=0
|
|
if [[ -f "${stamp}" ]]; then
|
|
read -r last <"${stamp}" || true
|
|
[[ "${last}" =~ ^[0-9]+$ ]] || last=0
|
|
fi
|
|
|
|
if ((now - last < interval)); then
|
|
exit 0
|
|
fi
|
|
|
|
mkdir -p "$(dirname "${stamp}")"
|
|
printf '%s\n' "${now}" >"${stamp}"
|
|
|
|
cat <<'HINT'
|
|
AUTOTUNE HINT: over an hour since the last hint. Show the operator this notice
|
|
verbatim as a short block, then continue with their request. Do NOT run
|
|
kvb-skills-tune, do not propose skills, do not ask questions about it.
|
|
|
|
💡 /kvb-skills-tune - generate a new skill or optimize an existing one
|
|
(fewer tokens, fewer errors, more focus, learnings that persist).
|
|
Runs only when you trigger it.
|
|
HINT
|