# Handoff

> Dump full session state to a persistent memory file in the active project so context can be cleared and any future Claude session restores instantly. Use when user says "handoff", "save context", "dump memory", "clear safely", "remember everything", or before /clear.

- Skill: `rishbjain1/handoff` (Agent Skill)
- Install (CLI): `npx skillmds@latest add rishbjain1/handoff`
- Raw SKILL.md: https://api.skillmd.com/api/skills/rishbjain1/handoff/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: rishbjain1 (https://skillmd.com/u/rishbjain1)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/rishbjain1/handoff

---


# /handoff — Session State Persistence

When invoked, write a comprehensive memory dump so future Claude sessions can resume w/o losing knowledge.

## When to use

- User about to /clear and wants knowledge to persist
- Context window getting heavy (>50% used)
- End of long working session
- Before switching projects
- After major shipped milestone

## What to capture (in this order)

1. **Identity** — who user is, contacts, current location/situation
2. **Active project** — repo path, stack, deployed URL, recent changes
3. **Roadmap / locked plan** — phases, priority order, blockers
4. **Live state snapshots** — any numbers or system state the next session must not re-derive
5. **Decisions still open** — pending actions, choices waiting on user
6. **User patterns** — communication style preferences, tools used, do/don't rules
7. **Resume protocol** — exact files to read first when context restored

## Where to write

**Primary:** `<repo>/.claude/SESSION_MEMORY.md`
**Secondary (if applicable):** append a summary to your long-term notes store
**Tertiary:** insert priority rows into Supabase `action_queue` (or equivalent task DB) so plan visible on phone/PWA

## Output format

Use markdown w/ numbered sections. Heavy use of bold + tables for scannability. End w/ explicit "How to resume from clear context" checklist.

## After writing

1. List files written
2. Tell user: "Context dumped. Clear safely. Next session reads `<path>` first."
3. Suggest the 3-5 line bootstrap message user pastes to next Claude:
   ```
   Read .claude/SESSION_MEMORY.md before doing anything else.
   Then read ROADMAP.md.
   Then ask me what to work on.
   ```

## Auto-trigger conditions

Suggest /handoff proactively when:
- Conversation exceeds ~40 turns
- User mentions "context", "clear", "remember", "save"
- Major work session winding down
- Multiple tools loaded but mostly stale

## Constraints

- Do NOT include secret values (API keys, tokens, passwords). Reference names only.
- Do NOT bloat — every line earns its place. Future Claude reads this in one pass.
- Do NOT speculate — only document what shipped or what's locked. Speculation = noise.
- Mark caveman-mode active/inactive so future session knows tone preference.

## Example invocation

User: "context is getting big, save it"
You:
1. Identify active project (recent file edits / cwd)
2. Pull live state (curl prod endpoints, query DB for current snapshot)
3. Write SESSION_MEMORY.md w/ everything above
4. Confirm + provide bootstrap message

