What problem does it solve?
Tmux session and pane management is tedious and error-prone when restarting dev servers, monitoring background processes, or coordinating work across multiple terminal panes. This Skill automates common tmux workflows to streamline development workflows.
Core Features & Use Cases
- List and inspect windows: tmux list-windows -a
- List panes in a window: tmux list-panes -t "session:window" -F "#{pane_index}: #{pane_current_command} - #{pane_current_path}"
- Send commands to a pane: tmux send-keys -t "session:window.pane" "command" Enter
- Capture pane output: tmux capture-pane -t "session:window.pane" -p
- Dev server restart workflow: stop a running process in a pane, then start it again with a single command
- Best practices: verify target pane before sending, and confirm outputs with captures
Quick Start
To begin, ensure tmux is installed and available in your shell. Then run:
- List all windows: tmux list-windows -a
- Attach to a session: tmux attach -t my_session
- Send a command to a pane: tmux send-keys -t "my_session:0.0" "npm start" Enter
- Restart a server in a pane: tmux send-keys -t "my_session:0.0" C-c Enter; tmux send-keys -t "my_session:0.0" "npm start" Enter