# Money Restore

Restore a prior business-state snapshot saved by /money-save, so you can continue from...

- Repository: https://github.com/iamzifei/show-me-the-money (1121 stars)
- Category: AI and agents
- License: see repository
- Last updated: 2026-09-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add iamzifei/show-me-the-money --skill money-restore -g -a claude-code -y`
Codex: `npx skills add iamzifei/show-me-the-money --skill money-restore -g -a codex -y`
Cursor: `npx skills add iamzifei/show-me-the-money --skill money-restore -g -a cursor -y`
Gemini CLI: `npx skills add iamzifei/show-me-the-money --skill money-restore -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add iamzifei/show-me-the-money`

## Description

Restore a prior business-state snapshot saved by /money-save, so you can continue from exactly where the last session left off. Loads the most recent snapshot for the current project (auto-detected from the working directory), or a specific one by index. Use when starting a new Claude Code conversation and the user wants to continue prior work. Triggered by: 'continue from last time', 'where did we leave off', 'pick up from before', 'resume', '接着上次', '续上', '之前的结论', '上次诊断到哪了'.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# /money-restore, Continue From Where You Left Off

Your job is to load the most recent business-state snapshot from `~/.smtm/sessions/{project}/`, parse it, and present the state to the user so they can pick up where they left off.

**You do not run diagnoses. You do not jump to other skills. You only restore memory.**

After restoring, recommend the next skill, but let the user decide whether to invoke it.

---

## Triggers

| Command | Behavior |
|---|---|
| `/money-restore` | Load the latest snapshot for the current project |
| `/money-restore <N>` | Load the Nth snapshot (use indices from `/money-save list`) |
| `/money-restore list` | Same as `/money-save list`, list all snapshots |
| `/money-restore --slug <project>` | Switch to a different project's history |

**Natural-language equivalents** (any of these → run `/money-restore`):
- English: "continue from last time", "where did we leave off", "pick up from before", "resume the diagnosis", "what did we conclude last time"
- 中文: "接着上次", "续上", "之前的结论", "上次诊断到哪了", "上次说到哪"

---

## Project resolution

Same rules as `/money-save`:
- Default = `basename($(pwd))`, sanitized
- Override = `--slug <name>`
- Fallback = `default`

Refer to it as **business** or **project** in conversation.

---

## Workflow

### Step 1, Locate the snapshot file

In order:
1. If user passed `<N>` → list snapshots in current project, sorted oldest → newest by filename timestamp, return the Nth.
2. If user passed `--slug X` → use X as the project name.
3. Otherwise → use the default project, find the **newest** file in `~/.smtm/sessions/{project}/` by filename timestamp.

**Always sort by the `YYYYMMDD-HHMMSS` filename prefix, never by file `mtime`.** mtime is unreliable when sessions are synced via iCloud, Dropbox, or git.

### Step 2, Handle missing data gracefully

**Case A: project directory empty or missing**

Check whether `~/.smtm/sessions/` exists at all and what other projects are in it.

The rest: https://github.com/iamzifei/show-me-the-money/blob/HEAD/skills/money-restore/SKILL.md
