Session Wrap-Up Protocol
Step 1: Capture Learnings
Review this session and extract:
- What patterns worked well
- What failed or needed correction
- Any conventions established
- Decisions made and their reasoning
Append to learnings.md using this format:
## [date] — [task type]
- **[CATEGORY]** [LOW/MED/HIGH]: Description of learning
Step 2: Create Handoff
If significant work was done, create/update .claude/session-handoff.md:
- What was done (with file names)
- Current state (working/broken/partial)
- Next steps (prioritized)
Step 3: Log Activity
echo "[Session wrap $(date '+%Y-%m-%d %H:%M')] — [brief task description]" >> ~/.claude/activity.log
Step 4: Summary
Report:
- Learnings captured: [count]
- Handoff created: [yes/no]
- Suggested next session focus: [priority item]