mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-11 15:17:24 +08:00
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) <noreply@anthropic.com>
This commit is contained in:
@@ -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" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user