diff --git a/dist/session-handoff.skill b/dist/session-handoff.skill new file mode 100644 index 0000000..048b77e Binary files /dev/null and b/dist/session-handoff.skill differ diff --git a/skills/session-handoff/SKILL.md b/skills/session-handoff/SKILL.md index ea5e7a6..10e2f57 100644 --- a/skills/session-handoff/SKILL.md +++ b/skills/session-handoff/SKILL.md @@ -1,6 +1,6 @@ --- name: session-handoff -version: 0.3.1 +version: 0.3.2 description: "Sliding handoff between CC sessions via .tasks/NEXT_SESSION.md. Read on session start: orient agent, ask user before action. Write on session-end phrase or substantive commit. Session-end phrases: «завершаем сессию», «сворачиваемся», «закругляемся», «wrap up session», «end session», «we're done for now». Trigger-line in CLAUDE.md: `session handoff: read on start, write on end`. Skip task-zone phrases: «закрываем эту таску», «pause», «отбой», «разбегаемся»." --- diff --git a/skills/session-handoff/hooks/README.md b/skills/session-handoff/hooks/README.md index d7f64ba..5d4db72 100644 --- a/skills/session-handoff/hooks/README.md +++ b/skills/session-handoff/hooks/README.md @@ -8,7 +8,7 @@ Opt-in PostToolUse hook that detects substantive `git commit` invocations and si ## Enable on Windows (PowerShell) -Add to `~/.claude/settings.json`: +Add to `~/.claude/settings.json`. Use `powershell` for stock Windows (PS 5.1, always present); use `pwsh` if you have PowerShell 7+ installed. The hook script runs cleanly under both. ```jsonc { @@ -19,7 +19,7 @@ Add to `~/.claude/settings.json`: "hooks": [ { "type": "command", - "command": "pwsh -NoProfile -ExecutionPolicy Bypass -File \"$env:USERPROFILE\\.claude\\skills\\session-handoff\\hooks\\commit-detector.ps1\"" + "command": "powershell -NoProfile -ExecutionPolicy Bypass -File \"$env:USERPROFILE\\.claude\\skills\\session-handoff\\hooks\\commit-detector.ps1\"" } ] } @@ -28,8 +28,12 @@ Add to `~/.claude/settings.json`: } ``` +Swap `powershell` for `pwsh` if you prefer PS 7+. To check which you have: `Get-Command pwsh -ErrorAction SilentlyContinue` (empty → PS 7 not installed → use `powershell`). + If `hooks.PostToolUse` already exists — append the matcher block to the array. Don't overwrite existing entries. +**Restart Claude Code after editing `settings.json`** — hooks are loaded at session start. A running session won't pick up the new hook until it's restarted (close + reopen the CC instance). Verify the hook is active by making a substantive commit and checking for a `Substantive commit detected on ...` system reminder in the next turn. + ## Enable on Linux / macOS (bash) ```jsonc