Initial commit

This commit is contained in:
Zhongwei Li
2025-11-29 18:17:20 +08:00
commit edd93955ea
4 changed files with 96 additions and 0 deletions

37
hooks/hooks.json Normal file
View File

@@ -0,0 +1,37 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": "search|Search",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/pre-edit-search.sh"
}
]
}
],
"PostToolUse": [
{
"matcher": "search|Search",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/error-search.sh"
}
]
}
],
"UserPromptSubmit": [
{
"matcher": "/search|/search-stats|/clear-cache",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/hooks/pre-edit-search.sh"
}
]
}
]
}
}