Executes custom bash commands before Claude uses WebFetch or Bash tools.
/plugin marketplace add synaptiai/synapti-marketplace/plugin install gh-workflow@synapti-marketplaceDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Before executing git push, verify user has approved pushing these changes. If not explicitly approved in this conversation, use AskUserQuestion to confirm.",
"timeout": 10
}
],
"matcher": "Bash(git push:*)"
},
{
"hooks": [
{
"type": "prompt",
"prompt": "Before creating a GitHub release, verify user has approved this release. If not explicitly approved in this conversation, use AskUserQuestion to confirm.",
"timeout": 10
}
],
"matcher": "Bash(gh release create:*)"
}
]
}{
"riskFlags": {
"touchesBash": true,
"matchAllTools": false,
"touchesFileWrites": false
},
"typeStats": {
"prompt": 2
},
"eventStats": {
"PreToolUse": 2
},
"originCounts": {
"absolutePaths": 0,
"pluginScripts": 0,
"projectScripts": 0
},
"timeoutStats": {
"commandsWithoutTimeout": 0
}
}