cli-tmux

Orchestrate end-to-end CLI/TUI tests in isolated tmux sessions.

2|1|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/nibzard/skills-kit --skill cli-tmux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-tmux
Source: https://github.com/nibzard/skills-kit/tree/main/skills/tmux/skills/tmux
Command: npx skills add https://github.com/nibzard/skills-kit --skill cli-tmux

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Orchestrate reliable end-to-end testing of interactive CLIs and TUIs by providing a repeatable, isolated tmux-based workflow that captures outputs after each step and ensures clean teardown.

Core Features & Use Cases

  • Isolated tmux session handling with a deterministic socket path
  • Prebuilt interactions using scripts/tmuxctl.sh to run commands, send keys, and capture output
  • Safe cleanup and error handling to avoid interfering with user environments

Quick Start

Start an isolated tmux session and run your CLI command inside it.

Frequently Asked Questions about cli-tmux

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

FAQPage Schema
How do I test interactive CLI prompts end-to-end with a real TTY?

Testing interactive TUI applications requires real TTY behavior where inputs and outputs unfold over time, which isolated tmux sessions provide by capturing output after each interaction while maintaining a deterministic environment.

What's the best way to automate end-to-end testing for long-running services in the terminal?

Automating end-to-end testing for long-running services is best handled by running them in an isolated tmux session that provides real TTY behavior, captures outputs sequentially, and ensures clean shutdown after the workflow completes.

Does tmux-based CLI testing work without interfering with my current user environment?

Yes, tmux-based CLI testing uses an isolated tmux socket with a deterministic session name and enforces safe cleanup and error handling, ensuring the tests do not interfere with your current user environment.

How do I send keys and capture output from a TUI during an automated test?

You can send keys and capture output from a TUI during automated testing by using prebuilt interaction scripts that orchestrate commands within the isolated tmux session and extract the output after each step.

Why are my interactive CLI tests failing when outputs unfold over time?

Interactive CLI tests fail when outputs unfold over time if the environment lacks real TTY behavior, which you can resolve by running the workflow inside a tmux session that captures output sequentially after each interaction.

When do I need tmux for end-to-end CLI testing instead of standard test runners?

You need tmux for end-to-end CLI testing when the workflow requires real TTY behavior for interactive prompts or long-running services, and standard test runners cannot handle inputs and outputs that unfold over time.