mirror of
https://github.com/Earth-Genesis-Games/Ajedrez_Purgatorio.git
synced 2026-09-11 09:47:35 +00:00
- Install CCGS agent/skill/hook framework (.claude/, docs templates, GitHub issue/PR templates) - Configure CLAUDE.md and technical-preferences.md for Unity 6000.3.3f1 (C#, URP, collider-based mouse picking) - Point engine reference import at docs/engine-reference/unity/ and remove unused Godot/Unreal reference docs - Add Version Awareness section to unity-specialist agent - Set production/review-mode.txt to lean - Add design/gdd/combat-mode.md: reverse-documented GDD for the vs-AI Combat mode, confirming it as the foundation for the guion.md narrative campaign (separate from Classic mode) - Add docs/architecture/ADR-0001: documents the existing board-state/singleton/per-mode architecture and the decision to keep Classic and Combat modes permanently separate - Add docs/architecture/control-manifest.md: programmer rules sheet sourced from ADR-0001 and Unity 6 engine reference docs - Continue in-progress Mono/Classic and Mono/Combat refactor (ScoreManager, scene/prefab updates) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
#!/bin/bash
|
|
# Claude Code Stop hook: Log session summary when Claude finishes
|
|
# Records what was worked on for audit trail and sprint tracking
|
|
|
|
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
|
|
SESSION_LOG_DIR="production/session-logs"
|
|
|
|
mkdir -p "$SESSION_LOG_DIR" 2>/dev/null
|
|
|
|
# Log recent git activity from this session (check up to 8 hours for long sessions)
|
|
RECENT_COMMITS=$(git log --oneline --since="8 hours ago" 2>/dev/null)
|
|
MODIFIED_FILES=$(git diff --name-only 2>/dev/null)
|
|
|
|
# --- Archive active session state on shutdown (do NOT delete) ---
|
|
# active.md persists across clean exits so multi-session recovery works.
|
|
# It is only valid to delete active.md manually or when explicitly superseded.
|
|
STATE_FILE="production/session-state/active.md"
|
|
if [ -f "$STATE_FILE" ]; then
|
|
{
|
|
echo "## Archived Session State: $TIMESTAMP"
|
|
cat "$STATE_FILE"
|
|
echo "---"
|
|
echo ""
|
|
} >> "$SESSION_LOG_DIR/session-log.md" 2>/dev/null
|
|
fi
|
|
|
|
if [ -n "$RECENT_COMMITS" ] || [ -n "$MODIFIED_FILES" ]; then
|
|
{
|
|
echo "## Session End: $TIMESTAMP"
|
|
if [ -n "$RECENT_COMMITS" ]; then
|
|
echo "### Commits"
|
|
echo "$RECENT_COMMITS"
|
|
fi
|
|
if [ -n "$MODIFIED_FILES" ]; then
|
|
echo "### Uncommitted Changes"
|
|
echo "$MODIFIED_FILES"
|
|
fi
|
|
echo "---"
|
|
echo ""
|
|
} >> "$SESSION_LOG_DIR/session-log.md" 2>/dev/null
|
|
fi
|
|
|
|
exit 0
|