agent-tui

Automate terminal user interfaces with scripted keystrokes, text input, and UI state assertions.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/davzucky/lazygitlab --skill agent-tui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-tui
Source: https://github.com/davzucky/lazygitlab/tree/main/.opencode/skills/agent-tui
Command: npx skills add https://github.com/davzucky/lazygitlab --skill agent-tui

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates interactions with terminal-based applications, enabling scripted testing, demonstrations, and data extraction from command-line interfaces.

Core Features & Use Cases

  • Automated Interaction: Script keystrokes, text input, and waits for specific UI states.
  • Testing & Demos: Run regression tests on TUI apps or create automated demos.
  • Data Extraction: Capture structured output or screenshots from terminal sessions.
  • Use Case: Automate the process of navigating a TUI application, filling out a form, and verifying the success message, all without manual intervention.

Quick Start

Run the command 'htop' using agent-tui and then press the 'F10' key to exit.

Frequently Asked Questions about agent-tui

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

FAQPage Schema
How do I automate terminal UI interactions for testing CLI applications?

You can automate terminal UI interactions by scripting keystrokes, text input, and UI state verification. This allows you to run regression tests, capture data, and navigate command-line interfaces without manual intervention.

What is the best way to script keystrokes and verify states in a TUI?

The best way to script keystrokes and verify states in a TUI is using an automation tool that supports precise control over text input and stable waits. This ensures the terminal application reaches the specific UI state before executing the next action.

Can I capture structured output and screenshots from terminal sessions automatically?

Yes, you can capture structured output and screenshots from terminal sessions automatically. By scripting the terminal interactions, you can navigate through the CLI application and extract the necessary data upon reaching the desired state.

Does this terminal automation approach work for creating automated CLI demos?

Yes, this terminal automation approach works perfectly for creating automated CLI demos. You can script a sequence of interactions, such as navigating a TUI application and filling out a form, to visually demonstrate application workflows.

How do I run a command-line application and send specific key presses like F10?

To run a command-line application and send specific key presses, you launch the target CLI tool and script the exact keystroke sequence. For example, you can start the application and immediately send the 'F10' key to trigger a graceful exit.