tmux-terminal
Use tmux to automate, manage, and capture output from interactive terminal interfaces and CLI processes.
Install
mkdir -p .claude/skills/tmux-terminal && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/1684" && unzip -o skill.zip -d .claude/skills/tmux-terminal && rm skill.zipInstalls to .claude/skills/tmux-terminal
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Interactive terminal control via tmux for TUI apps, prompts, and long-running CLI workflows.Key capabilities
- →Create detached terminal sessions
- →Inject keystrokes and control sequences
- →Capture and parse terminal pane content
- →Manage long-lived background processes
- →Automate TUI navigation and interaction
How it works
It wraps process execution within a detached tmux session, allowing the agent to send inputs and read the virtual screen buffer programmatically.
Inputs & outputs
When to use tmux-terminal
- →Automate TUI testing
- →Capture terminal output for reports
- →Manage persistent background servers
- →Control interactive CLI prompts
About this skill
tmux-terminal
Overview
Use tmux to drive interactive terminal sessions, including TUI workflows like ralph-tui. tmux lets you send keystrokes, capture screen output, and keep processes running between steps.
When to Use
- Testing
ralph-tuior any interactive CLI prompts - Managing long-running processes (web server, loops, watch mode)
- Capturing live terminal output for QA reports
- Interacting with applications that redraw the screen
Prerequisites
tmuxinstalled (pre-installed on macOS)
Verify:
tmux -V
Core Commands
Create a detached session:
tmux new-session -d -s <name>
Send commands (append Enter to execute):
tmux send-keys -t <name> "<command>" Enter
Capture screen output:
tmux capture-pane -t <name> -p
Kill session when done:
tmux kill-session -t <name>
Special Keys
Use send-keys with key names:
EnterC-c(Ctrl-C)C-d(Ctrl-D)TabEscapeUp,Down,Left,Right
Examples:
tmux send-keys -t <name> Up
tmux send-keys -t <name> C-c
TUI Interaction Patterns
Start ralph-tui
tmux new-session -d -s ralph-tui
tmux send-keys -t ralph-tui "cargo run -p ralph-tui" Enter
Navigate in TUI
tmux send-keys -t ralph-tui Down
tmux send-keys -t ralph-tui Enter
Capture and parse the screen
tmux capture-pane -t ralph-tui -p -S -200
Use -S -200 to capture the last 200 lines when the screen is noisy.
Long-Running Process Management
- Start servers or loops in a tmux session to keep them alive.
- Use
capture-paneto confirm health (look for "listening" or "ready" text). - Stop cleanly with
C-cthenkill-session.
Example:
tmux new-session -d -s ralph-web
tmux send-keys -t ralph-web "cargo run -p ralph-cli -- web" Enter
tmux capture-pane -t ralph-web -p | rg -n "listening|ready"
tmux send-keys -t ralph-web C-c
tmux kill-session -t ralph-web
Notes
- Keep session names short and unique.
- Always clean up sessions to avoid leaking background processes.
- If output looks empty, wait briefly and capture again.
When not to use it
- →Single-command task execution
- →Applications requiring graphical windowing
- →Environments where tmux is restricted
Prerequisites
Limitations
- →Requires tmux knowledge for complex logic
- →Screen scraping can be fragile with layout changes
- →Session cleanup is manual
How it compares
Unlike a standard subprocess, it allows for persistent state and interaction with software that expects a live terminal environment.
Compared to similar skills
tmux-terminal side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| tmux-terminal (this skill) | 3 | 5mo | Review | Advanced |
| dev | 0 | 4mo | Review | Intermediate |
| copilotd-e2e-verification | 0 | 3mo | No flags | Advanced |
| browser-use | 64 | 3mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by mikeyobrien
View all by mikeyobrien →You might also like
dev
serithemage
Development workflow guide. Covers build, test, lint, format commands, package structure, Git hooks, TDD methodology, and coding conventions. Use when setting up dev environment, running tests, or following project conventions.
copilotd-e2e-verification
DamianEdwards
Perform real end-to-end validation of copilotd issue and pull request orchestration using live GitHub artifacts.
browser-use
browser-use
Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, or extract information from web pages.
setup
barefootford
Sets up a Mac for ButterCut. Installs all required dependencies (Homebrew, Ruby, Python, FFmpeg, WhisperX). Use when user says "install buttercut", "set up my mac", "get started", "first time setup", "install dependencies" or "check my installation".
tmux
openclaw
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
macos-cleaner
daymade
Analyze and reclaim macOS disk space through intelligent cleanup recommendations. This skill should be used when users report disk space issues, need to clean up their Mac, or want to understand what's consuming storage. Focus on safe, interactive analysis with user confirmation before any deletions.