tuipuppeteeringwithtmux

For automating or testing TUI/CLI applications — provides isolated tmux sessions and includes scripts for input, output capture, and state verification.

Last repository push
GitHub Stars
171
Forks
11
Issues / PRs
2

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "tuipuppeteeringwithtmux" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-96971cd69a1f43e611f1c2bf07a1db3763f7d84b0cd7fb6bf97b7defcc5dbc70. Verify the upstream source and version against https://github.com/tilework-tech/nori-skillsets before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

For automating or testing TUI/CLI applications — provides isolated tmux sessions and includes scripts for input, output capture, and state verification.

0 Downloads

Introduction source: third_party · tilework-tech · 0.0.1 Reference

SkillPi interpretation

Tasks
Use when automating or testing TUI/CLI applications - provides isolated tmux sessions with scripts for input, output capture, and state verification
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: TUI Puppeteering with tmux
description: Use when automating or testing TUI/CLI applications - provides isolated tmux sessions with scripts for input, output capture, and state verification

TUI Puppeteering

<required> CRITICAL: Use ONLY the bundled scripts in /home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/ to interact with tmux. Direct tmux commands risk destroying user sessions. The bundled scripts enforce isolation automatically. </required>

Workflow

<required> Add to TodoWrite before ANY interaction:

  1. Write a Test Plan (required before execution)
  2. Start session with tui-start
  3. Assert-Act-Assert loop: verify state, send input, verify result
  4. Cleanup with tui-stop </required>

Test Plan (Mandatory)

Before running any commands, output a plan block:

<bad-example> "Let me try pressing enter then quiting" </bad-example>

<good-example> Plan: Start ./my-app, expect "Welcome". Press Enter, expect "Menu". Press 'q' to exit. </good-example>

Scripts

All scripts use hardcoded socket nori-agent-sock for isolation.

tui-start

/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/tui-start <session-name> "<command>"

Creates isolated session with 120x40 geometry, runs command, disables status bar.

tui-assert

# Fixed string match (default)
/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/tui-assert <session> "<text>" [timeout]

# Regex match
/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/tui-assert <session> -E "<pattern>" [timeout]

Default timeout: 5s. On failure, writes <session>_failure.log.

<bad-example> sleep 2 # Never blindly sleep </bad-example>

<good-example> tui-assert "mytest" "Ready>" 10 tui-assert "mytest" -E "Error:.*code [0-9]+" 5 </good-example>

tui-send

# Literal text (no Enter)
/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/tui-send <session> "<text>"

# Special keys
/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/tui-send <session> --keys "Enter"
/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/tui-send <session> --keys "C-c"

Use --keys for: Enter, Escape, Tab, Space, BSpace, Up, Down, Left, Right, C-a to C-z, F1-F12.

<warning> Escape key timing: Sending Escape immediately followed by another key may be interpreted as Alt+key.

# BAD: May become Alt+j
$SCRIPTS/tui-send "$SESSION" --keys "Escape"
$SCRIPTS/tui-send "$SESSION" --keys "j"

# GOOD: Add delay after Escape
$SCRIPTS/tui-send "$SESSION" --keys "Escape"
sleep 0.2
$SCRIPTS/tui-send "$SESSION" --keys "j"

</warning>

tui-capture

/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/tui-capture <session>

Returns current screen content. Use for debugging mid-flow.

Optional flags (rarely needed):

Flag Use Case
-e Preserve ANSI color codes (for testing colored output)
-S N Include N lines of scrollback history
-a Capture inactive buffer instead of active

<warning> These flags are rarely needed. The default captures what the user sees.

  • -e: Only if explicitly testing colors
  • -S: Only if output scrolled off screen
  • -a: Only if app uses altscreen AND you need the hidden buffer </warning>

tui-stop

/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/tui-stop <session>

Kills session and cleans up. Always call when done, even on failure.

tmux-isolated

For any direct tmux commands (cleanup, advanced usage):

/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/tmux-isolated <tmux-args>

Assert-Act-Assert Loop

SCRIPTS="/home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux"
SESSION="test-feature"

# Start
$SCRIPTS/tui-start "$SESSION" "./my-app"

# ASSERT initial state
$SCRIPTS/tui-assert "$SESSION" "Welcome" 10

# ACT
$SCRIPTS/tui-send "$SESSION" "hello"
$SCRIPTS/tui-send "$SESSION" --keys "Enter"

# ASSERT result
$SCRIPTS/tui-assert "$SESSION" "Response:" 10

# Cleanup
$SCRIPTS/tui-stop "$SESSION"

Debugging Failures

On assertion failure, check the auto-generated log:

cat <session-name>_failure.log

For manual inspection mid-test:

$SCRIPTS/tui-capture "$SESSION"

Safety

<warning> NEVER use tmux kill-server without the isolated socket—it destroys ALL user sessions. Only use tui-stop or tmux-isolated kill-session -t <session>. </warning>

Verification

Run the test suite to verify scripts work:

bash /home/clifford/Documents/source/nori/skillsets/.claude/skills/tui-puppeteering-with-tmux/test_tui_scripts.sh

Version history

  1. skillsets-v0.33.1 GitHub ↗
    Original release notes

    ## What's Changed ## Installation ```bash npx [email protected] ```

  2. skillsets-v0.33.0 GitHub ↗
    Original release notes

    ## What's Changed ## Installation ```bash npx [email protected] ```

  3. skillsets-v0.32.0 GitHub ↗
    Original release notes

    ## What's Changed ## Installation ```bash npx [email protected] ```

  4. skillsets-v0.31.0 GitHub ↗
    Original release notes

    ## What's Changed ## Installation ```bash npx [email protected] ```

  5. skillsets-v0.30.0 GitHub ↗
    Original release notes

    ## What's Changed ## Installation ```bash npx [email protected] ```

Only the five most recent versions are shown. View full version history at the source ↗

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档中未明确设置 When to Use 章节来说明具体使用场景

    Recommendation: 建议添加 When to Use 章节,明确说明何时使用此 Skill

Highlights

  • 提供完整的 TUI/CLI 应用程序自动化测试解决方案
  • 包含会话隔离、输入输出捕获、状态验证等核心功能
  • 面向开发者/测试人员的专业工具
Trigger Precision85/100

Highlights

  • 触发描述清晰明确,覆盖自动化测试场景
  • 边界定义清晰,不易与其他 Skill 混淆
Structure and Standards90/100

Highlights

  • 工作流程清晰:Test Plan → Start → Assert-Act-Assert → Cleanup
  • 提供完整的端到端示例
  • frontmatter 完整规范
Execution Reliability88/100

Highlights

  • 工具来源明确,使用 bundled scripts
  • 异常处理完善(assertion failure 日志、timeout 机制)
  • 安全警告清晰,防止误操作
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Invoke commands or scripts

    Read the script and arguments first. Use ordinary privileges and a scoped directory; confirm installation or execution in your host tool.

    Mentioned in main document · lines 184

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.