# Snapshot

> 현재 cmux 레이아웃과 Claude 세션 ID를 JSON 스냅샷으로 저장합니다. cmux 재시작 시 복원에 사용됩니다.

- **Type:** Skill
- **Install:** `agentstack add skill-sanghun0724-cmux-claude-skills-snapshot`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [sanghun0724](https://agentstack.voostack.com/s/sanghun0724)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [sanghun0724](https://github.com/sanghun0724)
- **Source:** https://github.com/sanghun0724/cmux-claude-skills/tree/main/skills/snapshot

## Install

```sh
agentstack add skill-sanghun0724-cmux-claude-skills-snapshot
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

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

인자: {{ARGUMENTS}}

## 실행

```
cmux-snapshot {{ARGUMENTS}}
```

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

## 저장 내용

- 워크스페이스별 pane 트리 구조 (split 방향/비율 포함)
- 각 surface의 제목, 작업 디렉토리, Claude 세션 여부
- Claude 세션이면 `~/.claude/projects/` 에서 세션 ID 매칭 (CWD 기반 우선, 전체 검색 fallback)

## 실행 후 보고

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

## 자동화

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

```json
"hooks": {
  "Stop": [{
    "hooks": [{
      "type": "command",
      "command": "cmux-snapshot latest 2>/dev/null || true"
    }]
  }]
}
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [sanghun0724](https://github.com/sanghun0724)
- **Source:** [sanghun0724/cmux-claude-skills](https://github.com/sanghun0724/cmux-claude-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-sanghun0724-cmux-claude-skills-snapshot
- Seller: https://agentstack.voostack.com/s/sanghun0724
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
