tmux-arsenallisted
Install: claude install-skill Aey-Sama/tmux-arsenal
# tmux arsenal
Plain Bash runs one command to completion with no TTY. That breaks on three
kinds of work: things that block, things that prompt, and things that must
survive past the call. tmux fixes all three, and it is already installed.
Quick one-shot commands (`ls`, `cat`, `git status`) stay in plain Bash. This
skill is for everything else.
## Where the work goes
Check `$TMUX` first: it decides whether you make a window or a session.
**Inside tmux** — the user is attached to a session and watching it. Put the
work in a new window there, not in a session they would have to go find.
```bash
tmux new-window -d -n _dev # -d keeps their current window focused
tmux new-window -d -n _dev -c /path/to/repo # -c sets cwd
```
`new-window` has no `-A`, so calling it twice gives you two `_dev` windows.
Check before creating:
```bash
tmux select-window -t _dev 2>/dev/null || tmux new-window -d -n _dev
```
**Outside tmux** — there is no session in front of them, so make a detached one
and always hand back the attach command.
```bash
tmux new-session -A -s _dev -d # -A reuses if it exists: idempotent
tmux new-session -A -s _dev -d -c /path/to/repo
```
Either way `-t _dev` addresses it, so every command below is the same.
## Naming
Prefix with `_` so the user can tell your windows and sessions from theirs, and
keep the slug to ONE short word — the name shows in the status line and gets
typed to attach, so length is a cost paid on every use.
Good: `_de