What problem does it solve?
Capturing a screenshot of a terminal-based UI normally requires a desktop environment, browser automation, or OS-level screen capture tools. This Skill renders a Textual application headlessly, drives it to a specific UI state, and saves the composed terminal as an SVG file.
Core Features & Use Cases
- Headless TUI Capture: Runs a Textual App with
run_test(size=(columns, rows)) and saves the visible state via app.save_screenshot() as SVG.
- Deterministic State Control: Uses
pilot.pause() and pilot.press(...) to reach and settle a target screen, modal, or widget before capturing.
- Safe Isolation for deepagents-code: Sets
DEEPAGENTS_HOME to a temporary directory and mocks _post_paint_init to prevent startup side effects when previewing the dcode TUI.
- Use Case: A developer needs to visually verify how the
/model modal looks in deepagents-code without launching a real terminal session; the Skill produces an SVG preview of that exact state.
Quick Start
Ask the agent to capture an SVG screenshot of the deepagents-code TUI showing the /model modal at 110x36 terminal size.