snapshot
БесплатноБез исполняемых скриптовНе проверенSnapshot running herdr workspaces, tabs, pane splits, and their claude/codex agents immediately before a reboot so they can be rebuilt afterward. Use when…
от motlin★ 20 звёзд на GitHubОб этом скилле
Snapshot Herdr Workspaces
Capture every running herdr session so /herdr-reboot:restore can rebuild them after a reboot; nothing in them survives the reboot. Each session is its own server, so the script captures each one herdr session list reports as running through that session's socket. Stopped sessions are skipped, and the script fails when no session is running.
Resolve <plugin-root>: ${CLAUDE_PLUGIN_ROOT} in Claude Code; in Codex, the plugin root containing this loaded skills/snapshot/SKILL.md, even when installed outside the repository.
python3 "<plugin-root>/scripts/snapshot.py" --output .llm/resume-after-reboot-state.json
Show the user each session's tree and confirm it before the reboot. The state file holds machine-specific session ids, so keep it in the gitignored .llm/ directory.
The file is JSON, schema resume-after-reboot/v3, with one entry per session under sessions, each mirroring its session: the session name, then workspaces (label, number, active tab) hold tabs (label, number, zoom, focused pane), and each tab holds a layout tree of split nodes (direction, ratio) ending in pane leaves. It also records which workspace, tab, and pane held focus. slot numbers panes by session, then workspace, then tab, then layout order, running on across sessions so each slot names one pane in the whole file.
Review these caveats with the user when they affect the panes:
claudepanes carry the session id herdr reports, so they are exact. Two ids are rejected becauseclaude --resumewould answerNo conversation found: a uuid v5 (claude mints v4, so a v5 is a derived placeholder) and an id whose transcript exists but is empty (the session never took a turn). Those panes fall back toclaude --continueand say so in their note. A missing transcript is not held against the id, since a pane in a git worktree derives a different project slug than the session was written under.claude-rcpanes are Remote Control (claude rc, the server behind claude.ai/code and phone sessions). herdr reports the id of RC's startup placeholder session, which is never resumable and changes every launch, so these relaunch with--continue. That reattaches the session last recorded for the directory; past its ~4h window it errors and leaves the pane at a prompt, which beats a fresh server attached to nothing. Conversation state lives server-side, so relaunching by hand loses nothing.codexpanes are exact only when herdr reported a session. herdr's codex integration reports nothing until the pane takes a turn, so an idle-since-launch codex pane falls back to matching its working directory against recent rollout files. Those notes sayherdr reported no session; point them out, since the id is a best guess to verify after restore.codex resume --lastmeans no rollout matched the working directory.commandpanes carry no session state; restore re-runs the command line.restore_defaultsays whether restore's--no-commandsstill replays it:false— long-lived dev servers and watchers (just dev,npm run dev,vite). Fired by default;--no-commandsskips them when one survived and holds its port.true— read-only viewers (git log,git show,less FILE,man,htop,tig,lazygit). Replayed either way.
gitpanes are judged by subcommand, sogit pushandgit rebaseare never captured. An alias is judged by its expansion and restored as typed, sogit lacomes back asgit la.- A pager is captured only when it names a file. A bare
lessdrains a pipe whose writer dies with the reboot, and re-running it would hang on stdin. - A pane at an idle shell is judged by its tab label. A label of
rcor<name> rcbecomes a Remote Control relaunch named for the tab (or, for barerc, its directory), patterned on a live RC pane's launch line when one exists, else plainclaude rc --name <name>. Any other label is judged like a running process: its first word, alias-expanded in your interactive shell (soj tacounts whenjisjust), must be on the same allowlist, and the label is restored as typed.op runorrebootstays a shell. These notes sayinferred from tab label; point them out. shellpanes have nothing worth restoring; restore just recreates the pane.- Editors and REPLs with in-memory state (
vim,psql,ssh) are recorded asshellpanes on purpose. tigandlazygitare captured as viewers, but both can stage, commit, and push from inside the TUI.
Regenerate immediately before rebooting so session ids are current. Keep refresh manual unless the user asks to automate it with cron or launchd. The file goes stale between reboots by design; don't chase drift or nag about refreshing.
Установить snapshot в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл snapshot?
Snapshot running herdr workspaces, tabs, pane splits, and their claude/codex agents immediately before a reboot so they can be rebuilt afterward. Use when asked to snapshot, save, or capture herdr sessions before rebooting.
Как установить скилл snapshot?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл snapshot запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic