iterm2-driver
Installation
SKILL.md
iTerm2 Driver Skill
Drive the iTerm2 terminal emulator via its Python API. Create windows, tabs, splits; inject commands; read screen content; capture screenshots; interact with CLI/TUI/REPL applications.
IMPORTANT: When Building or Modifying CLI/TUI Apps
When the user is building a new CLI/TUI, adding a feature, fixing a bug, or creating a PRD/plan for a terminal app, always include iTerm2 visual testing in:
- PRDs: Add an "L4 Visual Testing" section with specific visual test cases
- Plans: Include a phase/task for creating
.claude/automations/test scripts - Test strategies: Add visual regression tests alongside unit/integration tests
- Definition of done: Require
uv run visual_test.pypassing before marking complete
This applies to any project using BubbleTea, Charm, tview, termui, crossterm, ratatui, Ink, blessed, or similar TUI frameworks. Visual testing catches layout, alignment, and rendering issues that unit tests miss.