Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:29:41 +08:00
commit 4236420b70
13 changed files with 2222 additions and 0 deletions

73
hooks/hooks.json Normal file
View File

@@ -0,0 +1,73 @@
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/session-start.sh"
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/session-end.sh"
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/track-changes.sh"
},
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/analyze-anchors.sh"
}
],
"matcher": "Write|Edit"
},
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/validate-commit.sh"
}
],
"matcher": "Bash"
}
],
"PreCompact": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/save-context.sh"
}
]
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/feedback-capture.sh"
},
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/auto-feedback.sh"
}
],
"matcher": "error|failed|incorrect|wrong|mistake|deprecated|warning"
}
]
}
}