Snapshot

From sanghun0724/cmux-claude-skills · View interactive version

Snapshot is an AI agent skill from the GitHub repository sanghun0724/cmux-claude-skills. 현재 cmux 레이아웃과 Claude 세션 ID를 JSON 스냅샷으로 저장합니다. cmux 재시작 시 복원에 사용됩니다.

How to use this skill

Skill file

현재 cmux 레이아웃 트리와 각 surface에 연결된 Claude 세션 ID를 저장합니다.

인자: {{ARGUMENTS}}

실행

cmux-snapshot {{ARGUMENTS}}

인자가 없으면 ~/.cmux-snapshots/latest.json에 저장합니다 (항상 덮어씀).

저장 내용

실행 후 보고

저장된 워크스페이스 수와 Claude 세션 매칭 결과를 요약합니다.

자동화

Claude Code의 Stop 훅에 등록하면 세션 종료 시마다 자동 저장됩니다:

"hooks": {
  "Stop": [{
    "hooks": [{
      "type": "command",
      "command": "cmux-snapshot latest 2>/dev/null || true"
    }]
  }]
}
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.