tmuxlisted
Install: claude install-skill robertsreberski/tmux-agent-skill
# tmux
Use this skill to inspect and operate the user's interactive tmux servers on macOS. Prefer read-only discovery before mutation, keep one socket selected throughout a workflow, and adapt to the live tmux configuration instead of assuming a prefix key, index base, history limit, or monitoring setup.
This skill requires macOS and `tmux`. For creating, inspecting, operating, or removing Git worktrees paired with tmux sessions, read [references/git-worktrees.md](references/git-worktrees.md) only when that capability is requested. For booting Claude Code, Codex, or OpenCode, assigning a bundled planner/implementer/reviewer/explorer persona, running a plan-review-approval workflow, or resolving session transcripts, read [references/agent-clis.md](references/agent-clis.md) only when that capability is requested.
## Select one tmux server
1. Try the default socket first with `tmux list-sessions`. If it responds, use bare `tmux` consistently.
2. If the current shell is already inside tmux, extract the socket path from `${TMUX%%,*}` and test it with `tmux -S "$socket" list-sessions`.
3. Otherwise inspect `${TMUX_TMPDIR:-/tmp}/tmux-$(id -u)/` and `pgrep -lf tmux`. Test candidate socket files read-only with `tmux -S <path> list-sessions`; file existence alone does not prove the server is live.
4. If one alternate is live, use it. If several are live, group the inventory by socket and ask which server to change unless the named target exists on only one.
Never switch sockets si