Files
claude-workflow/hooks/verify-on-stop.sh
T
martinandClaude Sonnet 4.6 a07c436a7d Optimaler Entwicklungs-Workflow eingerichtet
- workflow/: Schnellreferenz, Modell-Strategie, Story-Lifecycle-Doku
- skills/: /go, /plan-review, /story als globale Skills
- hooks/: auto-format.sh (PostToolUse), verify-on-stop.sh (Stop)
- agents/: plan-reviewer (Opus 4.7) für unabhängigen Plan-Review
- Symlinks in ~/.claude/skills/ und ~/.claude/agents/
- settings.json um Hooks-Sektion erweitert

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-19 10:38:30 +02:00

33 lines
1.1 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# Stop-Hook: Prüft ob offene Tasks oder ungestartete Tests vorhanden sind
# Gibt eine Erinnerung aus, blockiert aber nicht
set -euo pipefail
REMINDERS=()
# Prüfe ob wir in einem Git-Repo sind
if git rev-parse --git-dir &>/dev/null 2>&1; then
# Uncommitted changes?
if ! git diff --quiet 2>/dev/null || ! git diff --cached --quiet 2>/dev/null; then
REMINDERS+=("⚠️ Uncommittete Änderungen vorhanden — committen nicht vergessen")
fi
# Ungetrackte Dateien?
UNTRACKED=$(git ls-files --others --exclude-standard 2>/dev/null | wc -l)
if [[ "$UNTRACKED" -gt 0 ]]; then
REMINDERS+=("$UNTRACKED ungetrackte Datei(en) — ggf. zu .gitignore hinzufügen")
fi
fi
if [[ ${#REMINDERS[@]} -gt 0 ]]; then
echo ""
echo "╭─ Session-Erinnerung ───────────────────────────────"
for r in "${REMINDERS[@]}"; do
echo "│ $r"
done
echo "╰────────────────────────────────────────────────────"
fi
exit 0