Session save

From FlorianBruniaux/claude-code-plugins · View interactive version

Session save is an AI agent skill from the GitHub repository FlorianBruniaux/claude-code-plugins. Save the current session state (decisions, modified files, current status, and next steps) to a handoff file for later resume.

How to use this skill

Skill file

/session-save

Capture the current session into a structured handoff file so you (or another instance) can resume with full context. Creates a timestamped Markdown file in .claude/sessions/.

When to use

Instructions

Produce a handoff document with the following structure:


Session handoff: [TIMESTAMP]

What was being done

[One paragraph: the goal, the approach, where things stand right now]

Files modified this session

[List every file that was created, edited, or deleted, with the nature of the change]

path/to/file.ts      - [what changed and why]
path/to/other.ts     - [what changed and why]

Key decisions made

[Architectural choices, tradeoffs accepted, approaches rejected and why]

Current status

[Where things are right now: what's working, what's broken, what's in-progress]

Next steps (ordered)

[The exact next actions to take to continue, specific enough that a fresh context can pick up without re-reading everything]

  1. [First action]: path/to/file.ts - [what to do]
  2. [Second action]: [...]
  3. [...]

Context to reload

[Files that must be read to resume with full understanding, keep this list short]

Blockers / open questions

[Anything unresolved that needs a decision or external input before proceeding]


Implementation

Save the handoff to .claude/sessions/handoff-[YYYY-MM-DD-HHMM].md. Then output the file path so the user knows where to find it.

Resume pattern

To resume from a handoff:

/handoff-resume .claude/sessions/handoff-YYYY-MM-DD-HHMM.md

Or manually: read the handoff file, then read the files listed in "Context to Reload" before continuing.

Examples

Example 1: Mid-Feature save

/session-save

Claude captures:

Example 2: Context-Pressure save

When context hits 70%, run /session-save before /compact to preserve decision context that compaction might lose.

Notes


See also:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.