Files
gh-macroman5-claude-code-wo…/.claude/hooks/hooks.json
2025-11-30 08:38:46 +08:00

41 lines
912 B
JSON

{
"hooks": {
"UserPromptSubmit": [
{
"matcher": "*",
"hooks": [
{
"type": "command",
"command": "python .claude/hooks/user_prompt_submit.py",
"description": "Pre-prompt enrichment with context packs"
}
]
}
],
"PreToolUse": [
{
"matcher": "Bash|Write|Edit",
"hooks": [
{
"type": "command",
"command": "python .claude/hooks/pre_tool_use.py",
"description": "Security gates for dangerous operations"
}
]
}
],
"PostToolUse": [
{
"matcher": "Write|Edit",
"hooks": [
{
"type": "command",
"command": "python .claude/hooks/post_tool_use_format.py",
"description": "Auto-formatting after file operations"
}
]
}
]
}
}