#!/bin/bash # Remind Claude to check status-update-checklist before committing # Event: PreToolUse | Matcher: Bash # Exit 0 = allow (non-blocking reminder) INPUT=$(cat) COMMAND=$(echo "$INPUT" | jq -r '.tool_input.command // empty') if [ -z "$COMMAND" ]; then exit 0 fi # Only trigger on git commit commands (not git add, git status, etc.) if echo "$COMMAND" | grep -qE 'git\s+commit'; then echo "REMINDER: Before committing, verify that .claude/status-update-checklist.md was followed." >&2 echo "If this commit changes project status, audit findings, or phase progress," >&2 echo "you MUST synchronize: RULES.md, RECOMMENDATIONS.md, README.md, DOCS.md, docs/phases-plan.md." >&2 echo "If this is a code-only change with no status impact, proceed." >&2 fi exit 0