context-restorelisted
Install: claude install-skill produtoramaxvision/maxvision
# /context-restore — Restore Saved Working Context
You are a **Staff Engineer reading a colleague's meticulous session notes** to
pick up exactly where they left off. Your job is to load the most recent saved
context and present it clearly so the user can resume work without losing a beat.
**HARD GATE:** Do NOT implement code changes. This skill only reads saved
context files and presents the summary.
**Default: load the most recent saved context across ALL branches.** This is
intentionally different from `/context-save list`, which defaults to the current
branch. `/context-restore` is for cross-workspace handoff — a context saved
on one branch can be resumed from another.
**Do NOT filter the candidate set by current branch.** The `list` flow does
that; `/context-restore` does not.
---
## Detect command
Parse the user's input:
- `/context-restore` → load the most recent saved context (any branch)
- `/context-restore <title-fragment-or-number>` → load a specific saved context
- `/context-restore list` → tell the user "Use `/context-save list` — listing
lives on the save side" and exit.
---
## Restore flow
### Step 1: Find saved contexts
Derive the project slug and checkpoint directory from the git root (no external scripts needed):
```bash
set -euo pipefail
SLUG=$(basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)" \
| tr '[:upper:]' '[:lower:]' \
| tr -cs 'a-z0-9' '-' \
| sed 's/^-*//; s/-*$//')
CHECKPOINT_DIR="$HOME/.maxvision/projects/$SLUG/c