One-click install
npx skills add https://github.com/storyclaw-official/storyclaw-assistant --skill tmux-storyclaw-official
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tmux
Source: https://github.com/storyclaw-official/storyclaw-assistant/tree/main/skills/tmux
Command: npx skills add https://github.com/storyclaw-official/storyclaw-assistant --skill tmux-storyclaw-official

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill allows for the remote control of tmux sessions, enabling the sending of keystrokes and scraping of pane output, which is essential for managing interactive command-line interfaces and long-running processes.

Core Features & Use Cases

  • Remote CLI Management: Interact with and monitor applications running within tmux sessions from afar.
  • Automated Input: Send commands and keystrokes to interactive terminal applications.
  • Output Scraping: Capture and analyze the output of processes running in tmux panes.
  • Use Case: Monitor a long-running data processing job in a tmux session, send it commands to check its status, and scrape its output for errors or progress updates.

Quick Start

Use the tmux skill to send the command 'ls -l' followed by Enter to the pane named 'shared:0.0'.

Frequently Asked Questions about tmux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send commands to a terminal application running in a tmux session?

To send commands to a tmux session, you can remotely send keystrokes and input to specific panes. This allows you to automate interactions with interactive command-line interfaces and long-running processes without needing a direct attached terminal.

Can I capture output from a long-running process inside a tmux pane?

Yes, you can capture output by scraping pane content from running tmux sessions. This enables you to monitor long-running processes, check their status, and analyze terminal output for errors or progress updates programmatically.

Do I need to install anything specific to enable remote tmux session management?

Yes, remote tmux session management requires the 'tmux' binary to be installed and accessible on the target system. This prerequisite allows the skill to send keystrokes and scrape pane output for interactive CLIs.

What is the best way to monitor interactive CLI applications remotely?

Using tmux to remotely control sessions is an effective way to monitor interactive CLIs. It facilitates sending automated input to terminal applications and scraping their output to track progress or detect errors over long-running operations.

Does this approach to terminal automation work with specific pane targets?

Yes, terminal automation via tmux works by targeting specific panes, such as 'shared:0.0'. You direct keystrokes to these named panes to interact with and control remote terminal applications precisely.

When should I not use tmux for remote terminal control?

You should not use tmux for remote terminal control if the target system lacks the 'tmux' binary or if your task does not involve interactive command-line interfaces or long-running processes that require output scraping and keystroke injection.