npx claudepluginhub bobmaertz/prompt-library --plugin generalDefined in hooks/hooks.json
{
"PreToolUse": [
{
"hooks": [
{
"type": "prompt",
"prompt": "Check if the Bash command about to run is a git commit command (contains 'git commit'). If it is, verify two things:\n\n1. PEER REVIEW: Has a peer-review been completed for the staged changes in this session? If a peer-review showed Critical or Major issues that have not been addressed, block the commit and list the unresolved findings.\n\n2. SECURITY: If the staged changes touch authentication, authorization, user input handling, database queries, cryptography, or external APIs and no security-review has been run this session, add a reminder that the user can run /security-review before committing (but do not block for this reason alone).\n\nIf peer review was clean, approved, or not yet run (in which case remind the user to run /peer-review), allow the commit. Respond in the format: DECISION: <ALLOW|BLOCK> - <reason>.",
"timeout": 30
}
],
"matcher": "Bash"
}
]
}"On PreToolUse for Bash tools, runs block-dangerous.sh to block risky commands and save-conv-before-commit.sh to save conversations before commits. Executes bash scripts, no file writes."