Skip to content
Back to skills

Restore Session

ASecurity

Recovers a prior agent session and loads its conversation as context for the current one. Use when the user says 'restore session', 'continue from last time', 'recall previous context' or wants to resume work on a topic discussed in an earlier session.

  • 37 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 5, 2026
ai-agentsbash

Security analysis

A100/100

Scanned November 5, 2026

npx -y skills add Vepricov/claude-brainlab --skill restore-session --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Restore Session?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Restore Session
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vepricov-restore-session/badge)](https://www.skillsdirectory.com/skills/vepricov-restore-session)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: restore-session
description: "Recovers a prior agent session and loads its conversation as context for the current one. Use when the user says 'restore session', 'continue from last time', 'recall previous context' or wants to resume work on a topic discussed in an earlier session."
version: 1.0.0
tags: [Session, Context, Memory, Restore]
---

# Restore Session

Load a previous conversation as context for the current session.

## When to Use

- User says "restore session", "continue from last time", "recall previous context"
- User wants to resume work on a topic from a past session
- User references something discussed in a previous conversation

## Workflow

### Step 1 — List saved conversations

Run this command and parse the output:

```bash
ls -t ~/.claude/logs/conversations/*.md 2>/dev/null | head -20
```

For each file:
- Parse filename: `YYYY-MM-DD_<topic-slug>.md`
- Read first line of file (the title) with `head -1 <file>`
- Show as numbered list

Example output to show user:
```
Recent conversations:
1. 2026-04-08 — я хочу установить вот такой репозиторий awesome-claude-code (today)
2. 2026-04-07 — как настроить SSH для нового сервера
3. 2026-04-05 — анализ результатов exp_003 не сходится с baseline
...
```

### Step 2 — User picks

Ask: "Which one? (number, or 'all' to see full list)"

### Step 3 — Load context

Read the selected file:
```bash
cat ~/.claude/logs/conversations/<filename>.md
```

Then:
1. Read the full conversation
2. Summarize what was discussed in 4-6 bullet points
3. Note any unfinished tasks or open questions
4. Say: "Context loaded. Here's what we covered last time:" + bullet points

Then ask: "What would you like to continue with?"

## Context Injection Format

When presenting the loaded context, structure it as:

```
## Previous session: <topic> (<date>)

**What we discussed:**
- ...
- ...

**Unfinished / open items:**
- ...

**Files/projects involved:**
- ...
```

## Notes

- Conversations are saved automatically at session end
- Files live at `~/.claude/logs/conversations/`
- Sessions older than 90 days are auto-deleted
- If no conversations found, tell user that history starts accumulating from now

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.