feat(hooks): Antwort-Regeln per UserPromptSubmit-Hook injizieren

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-28 07:14:59 +02:00
co-authored by Claude Opus 4.8
parent 1e55847426
commit 6c586a753d
3 changed files with 57 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# UserPromptSubmit-Hook: Injiziert die Antwort-Checkliste in den Kontext,
# damit die Prägnanz-Regeln im Moment der Generierung präsent sind.
# stdout wird bei UserPromptSubmit dem Modell-Kontext hinzugefügt.
set -euo pipefail
CHECKLIST="$(dirname "$(readlink -f "$0")")/antwort-checkliste.txt"
[[ -f "$CHECKLIST" ]] || exit 0
echo "Vor dem Antworten gegen diese Regeln prüfen:"
cat "$CHECKLIST"
exit 0