cmux-save-sessionslisted
Install: claude install-skill devseunggwan/praxis
# cmux Save Sessions
## Overview
Saves the current state of cmux workspaces as a JSON snapshot.
Snapshots are used for session recovery, history recording, sharing, and as input data for other skills.
> **Role separation**:
> - `cmux-save-sessions`: Capture current state as JSON (save)
> - `cmux-resume-sessions`: Restore workspaces from JSON snapshot (restore)
> - `cmux-recover-sessions`: Post-crash/power-loss recovery from the `.jsonl` files Claude Code persists (emergency)
> - `cmux-session-manager`: Real-time status + cleanup (daily)
## The Iron Law
```
SAVE CAPTURES TRUTH. CURRENT SESSION IS EXCLUDED BY DEFAULT.
```
Save records the exact state at the current moment.
The session running this script (the manager session) is excluded by default — only work sessions are saved.
## When to Use
- Capture the current workspace layout before a system reboot or cleanup
- Create a shareable snapshot of a multi-workspace setup for another machine
- Record daily work state for later `cmux-resume-sessions` restore
- Feed input data to other skills that need a session list
> **Not for crash recovery** — after a power loss, use `cmux-recover-sessions` (reads `.jsonl` files directly).
## Commands
### `save` — Save session snapshot
**How to run:**
1. User requests "save sessions", "session save", etc.
2. Execute:
```bash
bash "${CLAUDE_SKILL_DIR}/cmux-save-sessions"
```
3. Show output to the user
4. **Post-save close prompt** — ask via `AskUserQuestion`:
> "N sessi