visual-test
Installation
SKILL.md
Visual Test Workflow
Iterating on visual UI changes requires a tight feedback loop: change code, build, capture screenshots, read the PNGs to verify, adjust, repeat. This skill documents the proven pattern using named pipes and stdin JSON commands.
Core Loop
- Edit the Rust UI code
cargo build- Run a shell test script that drives the app via stdin JSON
- Read the resulting PNG screenshots to visually verify
- Adjust and repeat from step 1
Named Pipe Pattern
The app reads JSON commands from stdin. To send multiple commands over time, use a named pipe with a persistent file descriptor. This is the critical technique — without it the pipe closes after the first write and the app exits.