terminal-capture

Capture terminal UI screenshots for CLI commands using node-pty, xterm.js, and Playwright.

Updated May 5, 2026
One-click install
npx skills add https://github.com/hkjang/qwen-code --skill terminal-capture-hkjang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terminal-capture
Source: https://github.com/hkjang/qwen-code/tree/main/.qwen/skills/terminal-capture
Command: npx skills add https://github.com/hkjang/qwen-code --skill terminal-capture-hkjang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires node-pty, xterm.js, playwright, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates terminal UI screenshot testing for CLI commands, making it easier to review PRs, test slash commands, and generate visual documentation.

Core Features & Use Cases

  • Automated Screenshot Testing: Capture screenshots of terminal UIs for CLI commands.
  • PR Review: Use to verify CLI output changes during PR reviews.
  • Slash Command Testing: Test slash commands like /about, /context, /auth, /export.
  • Visual Documentation: Generate visual documentation for CLI tools.

Quick Start

Run the 'terminal-capture' skill to take a screenshot of the '/about' command output.

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 commands during PR review?

Terminal screenshot testing for CLI commands automates visual verification of command outputs using node-pty, xterm.js, and Playwright to simulate the terminal and capture screenshots, helping you review PRs and test slash commands.

How do I test slash commands like /about or /auth visually?

Visual documentation generation for CLI tools uses automated screenshot capture of terminal UIs to create visual references, allowing you to document command outputs and slash command behaviors without manual screen capturing.

Does terminal-capture work with Node.js and Playwright for visual testing?

Terminal-capture uses node-pty for pseudo-terminal emulation, xterm.js for frontend terminal rendering, and Playwright for browser automation to capture screenshots, working together to simulate and visually test CLI command outputs.

What is the best way to generate visual documentation for CLI tools?

To start automating CLI screenshot testing, run the terminal-capture skill with your desired slash command or CLI command, and it will simulate the terminal execution using node-pty and xterm.js to capture the output screenshot.

Can I use terminal simulation to verify CLI output changes?

Terminal-capture is specifically designed for reviewing PRs that affect CLI output, allowing you to capture before and after screenshots of command outputs to visually verify changes and ensure output consistency.