← 返回 Skills 市场
imbeasting

tmux-terminal

作者 ImBeasting · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
396
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install imbeasting-tmux-terminal
功能描述
Interactive terminal control via tmux for TUI apps, prompts, and long-running CLI workflows.
使用说明 (SKILL.md)

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-tui or 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

  • tmux installed (pre-installed on macOS)

Verify:

tmux -V

Core Commands

Create a detached session:

tmux new-session -d -s \x3Cname>

Send commands (append Enter to execute):

tmux send-keys -t \x3Cname> "\x3Ccommand>" Enter

Capture screen output:

tmux capture-pane -t \x3Cname> -p

Kill session when done:

tmux kill-session -t \x3Cname>

Special Keys

Use send-keys with key names:

  • Enter
  • C-c (Ctrl-C)
  • C-d (Ctrl-D)
  • Tab
  • Escape
  • Up, Down, Left, Right

Examples:

tmux send-keys -t \x3Cname> Up
tmux send-keys -t \x3Cname> 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-pane to confirm health (look for "listening" or "ready" text).
  • Stop cleanly with C-c then kill-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.
安全使用建议
This skill appears to be an instruction-only guide for using tmux, but the manifest omitted required tooling. Before installing or using it: (1) confirm tmux is installed and accessible on agents that will run it; update the skill metadata to declare tmux as a required binary; (2) note example commands also use cargo and rg — ensure those tools are expected/available if you plan to run those examples; (3) understand that following these instructions lets the agent start and control arbitrary local processes (it can run programs via tmux send-keys), so only enable autonomous invocation or run the skill in a trusted/sandboxed environment; (4) ensure sessions are cleaned up to avoid orphaned background processes. If you want to proceed, request the author fix the metadata to list required binaries (tmux, and optionally cargo/rg) so requirements match behavior.
功能分析
Type: OpenClaw Skill Name: imbeasting-tmux-terminal Version: 1.0.0 The skill bundle provides standard instructions for using tmux to manage interactive terminal sessions and TUI applications (specifically referencing 'ralph-tui'). The commands in SKILL.md are legitimate uses of tmux for session management, keystroke automation, and output capture, with no evidence of malicious intent, data exfiltration, or obfuscation.
能力评估
Purpose & Capability
The name/description (tmux-driven interactive terminal control) match the SKILL.md's guidance to create sessions, send keys, capture panes, and clean up. However the registry metadata lists no required binaries while the instructions explicitly require tmux and (in examples) cargo and rg; that omission is inconsistent.
Instruction Scope
SKILL.md tells the agent to run tmux commands that can launch and control arbitrary processes (e.g., cargo run). This is expected for a terminal automation skill, but the instructions reference additional tools (cargo, rg) and perform actions (starting/killing background processes, sending keystrokes) that operate at the system-shell level — these behaviors are broad and should be declared and reviewed.
Install Mechanism
No install spec and no code files — lowest install risk. Nothing is downloaded or written by the skill itself.
Credentials
The skill declares no environment variables or credentials and the instructions do not request secrets. Examples reference local build/runtime tools only; no external service credentials appear required.
Persistence & Privilege
always is false and the skill does not request system-wide persistence. The instructions do create background tmux sessions, which is within the skill's stated purpose; the user should be aware of leaving processes running if cleanup is missed.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install imbeasting-tmux-terminal
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /imbeasting-tmux-terminal 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial publish under account-scoped slug due reserved original slug
元数据
Slug imbeasting-tmux-terminal
版本 1.0.0
许可证
累计安装 1
当前安装数 1
历史版本数 1
常见问题

tmux-terminal 是什么?

Interactive terminal control via tmux for TUI apps, prompts, and long-running CLI workflows. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 396 次。

如何安装 tmux-terminal?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install imbeasting-tmux-terminal」即可一键安装,无需额外配置。

tmux-terminal 是免费的吗?

是的,tmux-terminal 完全免费(开源免费),可自由下载、安装和使用。

tmux-terminal 支持哪些平台?

tmux-terminal 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 tmux-terminal?

由 ImBeasting(@imbeasting)开发并维护,当前版本 v1.0.0。

💬 留言讨论