Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:40:52 +08:00
commit fedac466b2
14 changed files with 1133 additions and 0 deletions

50
hooks/hooks.json Normal file
View File

@@ -0,0 +1,50 @@
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate_tool_usage.py"
}
]
},
{
"matcher": "Read|Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate_generated_files.py"
}
]
},
{
"matcher": "Write|Edit|MultiEdit",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/check_file_size.py"
},
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate_blacklist.py"
},
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate_package_edits.py"
}
]
},
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate_markdown.py"
}
]
}
]
}
}