npx claudepluginhub aaronbassett/agent-foundry --plugin utilsDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "${CLAUDE_PLUGIN_ROOT}/scripts/pre-tool-use.sh"
}
],
"matcher": "Bash"
}
]
}"On PreToolUse for Bash tools, validates patcher args via bash script and before git commits to BuddyPatcher Swift code, injects reminder to run swift test first. Executes bash, no file writes."