一键导入
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.