terminal-capture

Automate terminal interactions and capture screenshots via PTY, xterm.js, and Playwright.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/uniQuk/Claudex-cli --skill terminal-capture-uniquk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terminal-capture
Source: https://github.com/uniQuk/Claudex-cli/tree/main/.qwen/skills/terminal-capture
Command: npx skills add https://github.com/uniQuk/Claudex-cli --skill terminal-capture-uniquk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates terminal UI screenshot testing for CLI commands, ensuring consistent output across changes and simplifying PR reviews.

Core Features & Use Cases

  • Automated terminal interactions through a PTY, xterm.js, and Playwright to render and capture terminal output.
  • Scenario-driven runs that produce deterministic screenshots suitable for visual regression testing and documentation.
  • Use cases include validating commands like /about or /auth, generating PR-ready visuals, and maintaining CLI UX across updates.

Quick Start

Launch a configured terminal-capture scenario to automatically drive the terminal and generate screenshots.

Frequently Asked Questions about terminal-capture

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

FAQPage Schema
How do I capture terminal screenshots for CLI visual regression testing?

Automated terminal screenshot generation for visual regression testing uses a coordinated PTY, xterm.js, and Playwright pipeline to drive CLI workflows and capture deterministic output. Scenario definitions configure specific commands like /help to ensure consistent visual validation across changes.

Can I automate terminal interactions to generate PR-ready documentation visuals?

Automating terminal interactions to generate PR-ready documentation visuals involves defining deterministic scenarios that drive the terminal through specific command workflows. The pipeline captures rendered output as screenshots, providing consistent visuals for pull request reviews and CLI UX documentation.

What is the best way to perform visual testing of terminal-based applications?

Performing visual testing of terminal-based applications is best achieved through a scenario-driven pipeline coordinating a PTY, xterm.js, and Playwright. This method renders terminal output in a controlled environment to produce deterministic screenshots, ensuring consistent CLI UX validation across updates.

Does terminal screenshot automation work with custom CLI workflows and commands?

Terminal screenshot automation works with custom CLI workflows and commands through configurable scenario definitions. By defining specific command sequences within a TS config, the PTY and Playwright pipeline can drive and capture outputs for any custom terminal application, ensuring deterministic visual testing.

Why do I need a PTY and xterm.js pipeline for CLI screenshot generation?

A PTY and xterm.js pipeline is needed for CLI screenshot generation because it accurately emulates terminal rendering. The PTY manages the interactive process, xterm.js renders the visual output, and Playwright captures it, ensuring screenshots reflect true terminal UI behavior for reliable visual regression testing.