resumelisted
Install: claude install-skill PHPCraftdream/cc-arch-hands
# resume
The other half of `/checkpoint`. Reads a saved snapshot of session state and restores as much of it as the runtime allows.
## Usage
```
/resume # load the most recently modified checkpoint
/resume pre-refactor # load checkpoint named pre-refactor.md
/resume --list # just print the available checkpoints, do not restore
/resume 2026-06-19 # prefix match against filenames; ambiguous → ask
```
## Behavior
1. **Locate the checkpoint directory.** Use `<repo-root>/docs/checkpoints/` if a `.git` directory exists in the current working directory or any parent; otherwise fall back to `~/.claude/checkpoints/`.
2. **`--list` mode.** Read the directory, sort by mtime descending, and print a table: name, size, mtime, first-line title from the file. Then stop — do NOT restore.
3. **Resolve the target file.** With no argument: sort every `.md` in the directory by filesystem mtime descending and pick the first — the actual disk write time, not any timestamp embedded in the filename (named checkpoints like `pre-refactor.md` carry no filename timestamp at all, so mtime is the only signal that works for both auto-named and named files). With an argument:
- Exact filename match (with or without `.md`): take it.
- Otherwise prefix match against filenames. **If multiple files match**, list them and ask the user to disambiguate — do not silently pick.
- If nothing matches: say so and stop. Do not invent state.
4. **Read and parse.** Read the markdo