S01: Checkpoint-Tooling eingeführt: checkpoint.cmd + checkpoint.ps1; Regel R7 ergänzt; agent-prompt.md auf Checkpoint-Workflow umgestellt

This commit is contained in:
tlg
2026-04-14 09:18:47 +02:00
parent 0c6cfda3d6
commit abf0c037ee
5 changed files with 174 additions and 28 deletions

37
checkpoint.cmd Normal file
View File

@@ -0,0 +1,37 @@
@echo off
REM ============================================================
REM checkpoint.cmd
REM ------------------------------------------------------------
REM Haengt einen Eintrag an changelog.md an (mit Timestamp vom
REM lokalen PC) und macht einen Git-Commit.
REM
REM Voraussetzung: Die Datei .checkpoint-pending.txt existiert
REM im selben Ordner und enthaelt:
REM Zeile 1: Session-Nummer (z.B. S02)
REM Zeile 2+: Kompakte Zusammenfassung
REM ============================================================
setlocal
cd /d "%~dp0"
if not exist ".checkpoint-pending.txt" (
echo.
echo [checkpoint] Fehler: .checkpoint-pending.txt nicht gefunden.
echo Der KI-Agent muss diese Datei zuerst anlegen.
echo.
pause
exit /b 1
)
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0checkpoint.ps1"
set RC=%ERRORLEVEL%
echo.
if %RC% neq 0 (
echo [checkpoint] FEHLGESCHLAGEN - siehe Meldungen oben.
) else (
echo [checkpoint] Erfolgreich abgeschlossen.
)
echo.
pause
exit /b %RC%