claude-buddy
Version:
Your friendly AI development companion for Claude Code - supercharge Claude Code with intelligent workflows and safety features
105 lines • 2.88 kB
JSON
{
"hooks": {
"PreToolUse": [
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "uv run --no-project python {{INSTALL_DIR}}/hooks/file-guard.py",
"description": "Protect sensitive files from being written",
"enabled": true,
"timeout": 10
}
]
},
{
"matcher": "Edit",
"hooks": [
{
"type": "command",
"command": "uv run --no-project python {{INSTALL_DIR}}/hooks/file-guard.py",
"description": "Protect sensitive files from being edited",
"enabled": true,
"timeout": 10
}
]
},
{
"matcher": "MultiEdit",
"hooks": [
{
"type": "command",
"command": "uv run --no-project python {{INSTALL_DIR}}/hooks/file-guard.py",
"description": "Protect sensitive files from being modified",
"enabled": true,
"timeout": 10
}
]
},
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "uv run --no-project python {{INSTALL_DIR}}/hooks/command-validator.py",
"description": "Validate and block dangerous bash commands",
"enabled": true,
"timeout": 10
}
]
}
],
"PostToolUse": [
{
"matcher": "Write",
"hooks": [
{
"type": "command",
"command": "uv run --no-project python {{INSTALL_DIR}}/hooks/auto-formatter.py",
"description": "Auto-format code files after writing",
"enabled": true,
"timeout": 30
}
]
},
{
"matcher": "Edit",
"hooks": [
{
"type": "command",
"command": "uv run --no-project python {{INSTALL_DIR}}/hooks/auto-formatter.py",
"description": "Auto-format code files after editing",
"enabled": true,
"timeout": 30
}
]
},
{
"matcher": "MultiEdit",
"hooks": [
{
"type": "command",
"command": "uv run --no-project python {{INSTALL_DIR}}/hooks/auto-formatter.py",
"description": "Auto-format code files after multi-editing",
"enabled": true,
"timeout": 30
}
]
}
],
"UserPromptSubmit": [
{
"type": "command",
"command": "uv run --no-project python {{INSTALL_DIR}}/hooks/persona-integration.py",
"description": "Enhance buddy commands with persona context",
"enabled": true,
"timeout": 15
}
],
"Notification": [],
"Stop": [],
"SubagentStop": [],
"PreCompact": []
}
}