بنقرة واحدة
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.