End session - create summary, commit changes with conventional commits
Summarizes session work, updates project memory, and commits all changes with appropriate commit messages.
/plugin marketplace add karchtho/my-claude-marketplace/plugin install sessions-workflow-bundle@my-claude-marketplacehaikuSave session to memory, then commit all changes.
pwdgit diff --name-status HEAD 2>/dev/null | head -10git branch --show-current 2>/dev/null || echo "main"git log --format='%s' -5 2>/dev/null || echo "No git history"Execute these steps in order:
Compute memory dir:
~/.claude/projects/$(pwd | sed 's|/|-|g')/memory/
Create the directory if it doesn't exist:
mkdir -p ~/.claude/projects/$(pwd | sed 's|/|-|g')/memory/
Infer session topic from the changed files (look at first 3 changed files, infer the main work area).
Append to sessions.md in the memory dir (create if missing):
## [DATE] - [topic]
**Accomplished**: [2-3 bullets of what was done]
**Decisions**: [key decisions made, or "none"]
**Next**: [1-3 specific next steps]
**Files**: [main files changed]
Keep each entry ≤100 words.
If stable new insights were gained (new patterns, gotchas, architectural decisions): update MEMORY.md in the memory dir. Keep MEMORY.md under 200 lines total.
From the recent commits context:
feat:, fix:, docs:, chore:, refactor:, test:, style:, perf:Use what the repo already uses.
Stage all changes:
git add .
Create commit message in the detected style:
Conventional:
type(scope): subject
- key change 1
- key change 2
- key change 3
Types: feat, fix, docs, style, refactor, test, chore, perf
Informal:
Add session workflow redesigngit commit -m "[message]"
git log --oneline -1
✅ Memory updated: ~/.claude/.../memory/sessions.md
✅ Committed: [hash] [message]
Next session: [next steps from the entry written above]
~/.claude/projects/.../memory/ only✅ Memory updated: ~/.claude/.../memory/sessions.md
ℹ️ No code changes to commit
Next session: [next steps]
✅ Memory updated: ~/.claude/.../memory/sessions.md
⚠️ Not in git repository — memory saved but not committed
⚠️ Could not write to memory dir — check permissions
✅ Committed: [hash] [message]