Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 17:57:30 +08:00
commit 1f3973b4c1
4 changed files with 122 additions and 0 deletions

61
hooks/hooks.json Normal file
View File

@@ -0,0 +1,61 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": ".*",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/pre_tool_use.py",
"description": "Pre-tool validation and checks"
}
]
}
],
"PostToolUse": [
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/post_tool_use.py",
"description": "Post-edit validation"
}
]
}
],
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/session_start.py",
"description": "Initialize session"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/stop.py",
"description": "Handle stop events"
}
]
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/scripts/notification.py",
"description": "Handle notifications"
}
]
}
]
}
}