Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/explanatory-output-style/hooks/hooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/session-start.sh"
"command": "\"${CLAUDE_PLUGIN_ROOT}/hooks-handlers/session-start.sh\""
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions plugins/hookify/hooks/hooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.py",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/pretooluse.py\"",
"timeout": 10
}
]
Expand All @@ -17,7 +17,7 @@
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/posttooluse.py",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/posttooluse.py\"",
"timeout": 10
}
]
Expand All @@ -28,7 +28,7 @@
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/stop.py",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/stop.py\"",
"timeout": 10
}
]
Expand All @@ -39,7 +39,7 @@
"hooks": [
{
"type": "command",
"command": "python3 ${CLAUDE_PLUGIN_ROOT}/hooks/userpromptsubmit.py",
"command": "python3 \"${CLAUDE_PLUGIN_ROOT}/hooks/userpromptsubmit.py\"",
"timeout": 10
}
]
Expand Down
11 changes: 7 additions & 4 deletions plugins/hookify/skills/writing-rules/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,13 @@ Better: `rm\s+-rf`

## Examples

See `${CLAUDE_PLUGIN_ROOT}/examples/` for complete examples:
- `dangerous-rm.local.md` - Block dangerous rm commands
- `console-log-warning.local.md` - Warn about console.log
- `sensitive-files-warning.local.md` - Warn about editing .env files
See `${CLAUDE_PLUGIN_ROOT}/examples/` for complete examples. Copy them into your
project's `.claude/` directory as-is - the `hookify.` prefix is required for a
rule file to be picked up:
- `hookify.dangerous-rm.local.md` - Block dangerous rm commands
- `hookify.console-log-warning.local.md` - Warn about console.log
- `hookify.sensitive-files-warning.local.md` - Warn about editing .env files
- `hookify.require-tests-stop.local.md` - Remind about tests before stopping

## Quick Reference

Expand Down
2 changes: 1 addition & 1 deletion plugins/learning-output-style/hooks/hooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks-handlers/session-start.sh"
"command": "\"${CLAUDE_PLUGIN_ROOT}/hooks-handlers/session-start.sh\""
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/ralph-wiggum/hooks/hooks.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/stop-hook.sh"
"command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/stop-hook.sh\""
}
]
}
Expand Down