Universal session wrap-up: automatically persist project context to memory files for seamless resume.
Works with Claude Code and any AI agent (Cursor, Windsurf, Cline, Continue.dev, etc.)
- 🔄 Auto-save session context — Save all important state at session end
- 🧠 Memory integration — Persist to structured memory files
- 📚 Knowledge sync — Auto-sync Obsidian vaults to memory
- 🎯 Quick resume — Next session loads full context automatically
- ⚙️ Zero setup — Just source the aliases and go
npm install -g session-wrap-skillgit clone https://github.com/redredchen01/session-wrap-skill.git
cd session-wrap-skill
chmod +x session-wrap.sh obsidian-sync.sh
source .zshrc-wrap# Load aliases (add to ~/.zshrc for auto-load)
source .zshrc-wrap
# During work
wrap # Save session
wrap "Feature done" # Save with note
mem # Check memory status
# End of session
wrap "All tasks complete"# Session start
yd-start-session # Load context from last wrap
# Work...
# Session end
yd-end-session "Notes" # Save and show checklistsession-wrap.sh— Core automation scriptobsidian-sync.sh— Knowledge vault sync.zshrc-wrap— Aliases and workflow functionspackage.json— npm metadata
Set these env vars to customize:
export YD_WORKSPACE="/Users/dex/YD 2026"
export YD_MEMORY="/Users/dex/.claude/projects/-Users-dex-YD-2026/memory"
export YD_OBSIDIAN="$YD_WORKSPACE/obsidian"Session End Trigger
↓
session-wrap.sh runs
├─ Generate session_YYYYMMDD_wrap.md
├─ Sync Obsidian → Memory
├─ Update MEMORY.md index
└─ Git commit
↓
Next session loads context
Add to ~/.claude/settings.json PostToolUse hooks:
{
"type": "command",
"command": "cd ~/path && bash ./session-wrap.sh",
"statusMessage": "Saving session..."
}Works with Cursor, Windsurf, Cline, Continue.dev, and any agent with shell access.
MIT
redredchen01
Last updated: 2026-03-26