End-of-session ritual that syncs Claude Code session artifacts to an Obsidian vault. Chains breadcrumbs, retrospective, note creation, and daily driver into a single flow. Creates session notes, updates daily note, and leaves breadcrumbs. Activates on "sync to obsidian", "save session", "end session", or when user wraps up significant work in a vault-connected project.
Do NOT trigger for:
Session Assessment:
Files created: [list new files]
Files modified: [list changed files]
Decisions made: [list key decisions]
Discoveries: [things learned about the codebase]
Tasks completed: [what was done]
Tasks remaining: [what's left]
Dead ends: [approaches that failed]
This drives what gets synced and where. </assess>
<vault_state> Check the vault before writing anything:
# Read vault conventions
cat "$VAULT_PATH/CLAUDE.md"
# Read today's daily note
TODAY=$(date +%Y-%m-%d)
cat "$VAULT_PATH/Daily/$TODAY.md" 2>/dev/null
# Read existing breadcrumbs
cat "$VAULT_PATH/.claude/breadcrumbs.md" 2>/dev/null
# Or project-level breadcrumbs
cat .claude/breadcrumbs.md 2>/dev/null
# Check for existing session notes from today
find "$VAULT_PATH" -name "*$TODAY*session*" -o -name "*$TODAY*claude*" 2>/dev/null
</vault_state>
<session_note> Create a session note capturing the full context:
Filename: YYYY-MM-DD-session-brief-topic.md
Location: Project folder or Notes/
---