{ "hooks": { "PostToolUse": [ { "matcher": "Edit|Write", "hooks": [ { "type": "command", "command": "python3 ~/.claude/hooks/breakpilot-post-edit.py", "timeout": 15000 } ] } ], "Stop": [ { "hooks": [ { "type": "prompt", "prompt": "Überprüfe ob bei dieser Aufgabe:\n1. Dokumentation aktualisiert werden muss (neue API, neue Funktion, Architektur-Änderung)\n2. Tests geschrieben/aktualisiert werden müssen (neue Funktion, Bug-Fix, Code-Änderung)\n3. Ein ADR (Architecture Decision Record) erstellt werden sollte (neues Modul, Technologiewechsel, signifikante Architektur-Entscheidung)\n\nWenn etwas fehlt, antworte mit {\"decision\": \"block\", \"reason\": \"Fehlend: [Details]\"}\nWenn alles erledigt ist, antworte mit {\"decision\": \"approve\", \"reason\": \"Alle Dokumentation, Tests und ADRs sind aktuell\"}", "timeout": 30000 } ] } ] }, "permissions": { "allow": [ "Read(docs/**)", "Read(.claude/**)", "Read(backend/tests/**)", "Read(consent-service/**/*_test.go)", "Write(docs/adr/**)" ] } }