tmux
БесплатноБез исполняемых скриптовНе проверенUse when a task needs a persistent terminal, a TTY-only program, a REPL or debugger, or concurrent terminals while the agent runs other commands. Use ordinary…
от l-lin★ 17 звёзд на GitHubОб этом скилле
Isolate. Use only
ai-agent-sandboxon the existing tmux server. Check thattmuxis installed. Do not use alternate sockets (-L,-S), change global options (-g), or touch other sessions.tmux has-session -t '=ai-agent-sandbox' 2>/dev/null \ || tmux new-session -d -s ai-agent-sandbox -n mainTarget. Create a fresh window for each task, record its pane ID, and use that ID for every pane operation. Do not assume pane indexes or reuse a pane that may contain a running job. Set the working directory explicitly; use a clean Bash shell for the command examples below.
pane=$(tmux new-window -d -P -F '#{pane_id}' \ -t '=ai-agent-sandbox' -c "$PWD" 'bash --noprofile --norc')Verify. Send text literally, then send
Enterseparately. For a finite command, report its exit status and signal completion even when it fails. Check foruuidgenand a timeout utility before launching this example; replaceprintf "ready\\n"with the task command, keeping the status and signal suffix outside it.command -v uuidgen >/dev/null || exit 1 wait_timeout=$(command -v timeout || command -v gtimeout) || exit 1 token="ai-agent-$(uuidgen)" tmux send-keys -l -t "$pane" \ "bash -c 'printf \"ready\\n\"; status=\$?; printf \"EXIT:%s\\n\" \"\$status\"; tmux wait-for -S \"$token\"'" tmux send-keys -t "$pane" Enter "$wait_timeout" 30s tmux wait-for "$token" tmux capture-pane -p -t "$pane" -S -200Choose a timeout suited to the task. A completion signal proves only that the wrapper finished; inspect
EXIT:and the output to determine success. A timeout stops waiting, not the pane's job. Capture output and decide whether to continue or interrupt; do not blindly resend commands. If no timeout utility exists, use bounded polling instead of an unboundedwait-for.Verify readiness. Servers and interactive programs do not finish after each input. Use a bounded health probe for servers or bounded prompt polling for REPLs and debuggers. Inspect captured output before sending the next input. A fixed sleep is not evidence of readiness. Capture only includes retained terminal history, not a complete log.
Preserve. Leave jobs needed for the user's next step running and report their pane IDs, status, and how to inspect or stop them. Interrupt or remove only panes you created:
tmux send-keys -t "$pane" C-c tmux capture-pane -p -t "$pane" -S -200 # After confirming the task no longer needs this pane: tmux kill-pane -t "$pane"Never kill the tmux server. Kill
ai-agent-sandboxonly if you created it and all its jobs are disposable. Do not attach unless the user requests a live view; use the CLI, not user keybindings.
Установить tmux в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл tmux?
Use when a task needs a persistent terminal, a TTY-only program, a REPL or debugger, or concurrent terminals while the agent runs other commands. Use ordinary command execution for short, noninteractive tasks.
Как установить скилл tmux?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл tmux запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic