A Claude Code plugin that generates structured session retrospectives with hook-driven prompting. Captures work done, decisions made, and learnings that feed back into project memory.
/retroskill — Generate a structured session summary with commits, decisions, open questions, and learnings- Stop hook — Prompts "Run /retro?" when you have 2+ un-retrospected commits before ending a session
- SessionStart hook — Advisory reminder at session start if un-retrospected work exists from a previous session
claude plugin add https://github.com/pwarnock/session-retro.gitThe plugin only activates in repos that have opted in by creating the output directory:
mkdir -p docs/session-logsRepos without docs/session-logs/ will not trigger any hooks or prompts.
When Claude finishes a response and is about to stop:
- Checks if you're in a git repo with
docs/session-logs/ - Counts commits since the last retro (or since midnight if no prior retro)
- If 2+ commits exist, blocks once per session and asks: "Run /retro before wrapping up?"
- Uses a session marker (
/tmp/claude-retro-{session_id}) to avoid re-prompting
When a new Claude session starts:
- Cleans up stale session markers (>2 hours old)
- Same repo/commit checks as the Stop hook
- Prints an advisory message (non-blocking) if un-retrospected work is detected
Run /retro (or /retro my-topic-slug) to generate a retrospective:
- Finds the commit range since the last retro
- Reviews conversation context for goals, decisions, and learnings
- Writes
docs/session-logs/YYYY-MM-DD-<slug>.md - Offers to update CLAUDE.md or project memory with learnings
MIT