This skill should be used when the user asks to "end session", "capture state", "session summary", "what changed this session", "summarize repos", "write session notes", or wants to capture multi-repo state at the end of a work session.
Capture branch/commit/PR state across all active repos at session end. Write to both memory files and the Obsidian daily note.
See references/active-repos.md for the default repo list, output paths, and session diff
format. Edit that file to add or remove repos without touching this skill.
Run for each repo in the active-repos list:
git -C ~/dev/<repo> branch --show-current
git -C ~/dev/<repo> log --oneline -5
git -C ~/dev/<repo> status --short
gh -C ~/dev/<repo> pr list --state open --limit 3 2>/dev/null || true
Skip repos where git -C <path> status fails (not a git repo or missing).
To count commits made this session (since session start), use the earliest log entry from the current session as a boundary. If session start time is unknown, use last 4 hours:
git -C ~/dev/<repo> log --oneline --since="4 hours ago"
Write session state to the project memory file:
~/.claude/projects/-Users-joe-dev-<repo>/memory/session_YYYY-MM-DD.md
Format:
---