Initial commit

This commit is contained in:
Zhongwei Li
2025-11-30 08:58:33 +08:00
commit 08929b5647
4 changed files with 98 additions and 0 deletions

39
hooks/hooks.json Normal file
View File

@@ -0,0 +1,39 @@
{
"description": "Anonymous Usage Metric Collection",
"hooks": {
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/send_metrics.py --verbose",
"timeout": 30
}
]
}
],
"PreToolUse": [
{
"matcher": "Skill",
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/send_metrics.py --verbose",
"timeout": 30
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/send_session_metrics.py --verbose",
"timeout": 30
}
]
}
]
}
}