跳到正文
cccskills
免费在 GitHub 公开

tmux-terminal

Control interactive terminal apps through tmux, a tool for persistent terminal sessions. Send keystrokes, capture screen output, and manage long-running servers or commands to support application testing and collect evidence for QA reports.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Interactive terminal control via tmux for TUI apps, prompts, and long-running CLI workflows.

查看安装方法

适用场景

  • Test interactive terminal apps and prompts
  • Keep development servers running between steps
  • Capture terminal output for QA reports
  • Stop background processes and clean up sessions

包含的文件(1)

  • SKILL.md2.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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 <name>

Send commands (append Enter to execute):

tmux send-keys -t <name> "<command>" Enter

Capture screen output:

tmux capture-pane -t <name> -p

Kill session when done:

tmux kill-session -t <name>

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 <name> Up
tmux send-keys -t <name> 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Implement coding tasks through exploration, planning, testing, and commits. Follow test-driven development, writing failing tests before implementation, while matching existing project conventions and recording requirements, decisions, progress, and build results in separate planning documents.

中文简介正在准备中。当前显示英语简介。

  • Implement a feature from a rough idea
  • Build code from a .code-task.md specification
  • Develop through tests and reviewable steps
mikeyobrien/ralph-orchestrator31852026年10月16日 更新

Turn rough development requests or PDD implementation plans into structured task files. Each task includes technical requirements, dependencies, and acceptance criteria describing the starting conditions, action, and expected result, including unit test requirements.

中文简介正在准备中。当前显示英语简介。

  • Turning a rough feature request into implementation tasks
  • Breaking down the next unfinished step of a PDD plan
  • Defining acceptance criteria that include unit tests
mikeyobrien/ralph-orchestrator31852026年10月16日 更新

Test Ralph workflow presets using shell scripts and collect logs, completion status, iteration counts, and event metrics. Use the results to investigate configuration failures, timeouts, and problems with how work passes between roles.

中文简介正在准备中。当前显示英语简介。

  • Check presets after configuration changes
  • Validate a newly added preset
  • Audit the full preset collection
mikeyobrien/ralph-orchestrator31852026年10月16日 更新

Find development task files in a repository and review their status and dates. Filter pending, active, or completed work, view counts by status, or export task details as JSON for reporting and other tools.

中文简介正在准备中。当前显示英语简介。

  • Reviewing pending tasks before starting work
  • Checking progress before and after code-assist
  • Counting tasks by status
mikeyobrien/ralph-orchestrator31852026年10月16日 更新

pdd

免费

Turn a rough development idea into a detailed design and step-by-step implementation plan. Guided questions, research notes, and diagrams clarify requirements, while user approval at each stage keeps the planning process aligned with their decisions.

中文简介正在准备中。当前显示英语简介。

  • Clarifying requirements for a rough feature idea
  • Comparing technologies and recording research findings
  • Creating a design with diagrams and acceptance criteria
mikeyobrien/ralph-orchestrator31852026年10月16日 更新

Automate a local Chrome session while preserving logins, cookies, and extensions. Run Playwright scripts to navigate pages, fill forms, inspect content, and test authenticated workflows, with shared session state available across separate commands.

中文简介正在准备中。当前显示英语简介。

  • Testing the Ralph web dashboard interface
  • Checking authenticated pages with an existing login
  • Testing workflows that depend on browser extensions
mikeyobrien/ralph-orchestrator31852026年10月16日 更新

查看 mikeyobrien 的全部技能

报告此技能的问题