원클릭으로
handling-interactive-commands
Handle interactive CLI commands safely using tmux (local execution only)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Handle interactive CLI commands safely using tmux (local execution only)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Deploy backend services and databases to Railway using the Railway CLI
Deploy web services, static sites, and workers to Render using the Render CLI
Deploy frontend applications to Vercel using the Vercel CLI
| name | handling-interactive-commands |
| description | Handle interactive CLI commands safely using tmux (local execution only) |
| version | 1.0.0 |
| author | OpenOps Team |
| risk_level | write |
| requires | {"cli":"tmux","install":"brew install tmux"} |
Use tmux to run commands that require a real terminal (TTY) so the user can interact (type passwords, confirm prompts, use editors/pagers/TUIs), while still capturing a transcript back into the chat.
This skill provides guardrails and a preferred workflow; you can still rely on your general tmux knowledge whenever it helps.
Use interactive mode when you see or expect:
sudo, ssh, scp, sftp, git over SSH, cloud CLIs that open login flows)vim, nano, less, more, top, htop, fzf, git rebase -i, git commit without -m)*_init, *_configure, *_login)Before using interactive mode, try to make the command non-interactive:
--yes, -y, --confirm, --force (when safe)--no-pager, GIT_PAGER=cat, PAGER=cat, LESS=-FRXCI=1If that fails or is risky/unclear, switch to interactive mode.
Use the tool:
interactive_execute_tmux(command, timeout_s=...)Behavior:
Ctrl-b then d) or exits the shell to return.Important:
Ctrl-b then dexit to close the shelltmux lstmux kill-session -t <name>If tmux is missing:
brew install tmuxIf the command got stuck:
tmux kill-session -t <name>) and retry with safer flags, or break the task into smaller steps.