From 105b524c8fc6350ccfe32dd983e7a301a8fcd94f Mon Sep 17 00:00:00 2001 From: Gaurav Dubey Date: Mon, 11 May 2026 10:43:08 +0530 Subject: [PATCH] docs(strategic-compact): fix hook command path in SKILL.md (#1682) The Hook Setup example pointed to `~/.claude/skills/strategic-compact/suggest-compact.js`, which does not exist in the current repo layout. The cross-platform Node.js hook ships at `scripts/hooks/suggest-compact.js` and is installed to `~/.claude/scripts/hooks/suggest-compact.js`. Anyone copy-pasting the documented config hit a broken hook command. Closes #1675 Co-authored-by: Claude Opus 4.7 (1M context) --- skills/strategic-compact/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/strategic-compact/SKILL.md b/skills/strategic-compact/SKILL.md index ddb99753..27e5f20f 100644 --- a/skills/strategic-compact/SKILL.md +++ b/skills/strategic-compact/SKILL.md @@ -46,11 +46,11 @@ Add to your `~/.claude/settings.json`: "PreToolUse": [ { "matcher": "Edit", - "hooks": [{ "type": "command", "command": "node ~/.claude/skills/strategic-compact/suggest-compact.js" }] + "hooks": [{ "type": "command", "command": "node ~/.claude/scripts/hooks/suggest-compact.js" }] }, { "matcher": "Write", - "hooks": [{ "type": "command", "command": "node ~/.claude/skills/strategic-compact/suggest-compact.js" }] + "hooks": [{ "type": "command", "command": "node ~/.claude/scripts/hooks/suggest-compact.js" }] } ] }