Generate a verify-before-stop hook customized for your stack.
Answer 4 quick questions. Get a personalized Claude Code Stop hook with your test command baked in. Copy-paste, save, done.
✓ Your hook is ready
Copy to .claude/hooks/verify-before-stop.sh, chmod +x, restart Claude Code.
Quick install
# Save the hook
mkdir -p .claude/hooks
# Paste the script above into .claude/hooks/verify-before-stop.sh
chmod +x .claude/hooks/verify-before-stop.sh
# Add to .claude/settings.json under hooks.Stop[*].hooks[]:
# { "type": "command", "command": "bash .claude/hooks/verify-before-stop.sh" }
# Restart your Claude Code session
Like this? Get all 6 hooks.
The Claude Code Productivity Hook Pack includes 5 more battle-tested hooks: cost-tracker, block-secrets, force-progress-update, pre-compact-diary, enforce-autoplan.