iterm2-driver
✓Drive iTerm2 programmatically using Python scripts to automate terminal tasks, run tests, or manage sessions. Use when the user needs to test TUIs, CLIs, terminal apps, terminal automation, interactive terminal testing, terminal UI, command-line interface automation, REPL automation, screen monitoring, or terminal screenshots. Supports iTerm2 and iterm automation.
Installation
SKILL.md
This skill enables you to fully control the iTerm2 terminal emulator using its Python API. You can create windows, tabs, and splits, inject commands, read screen content, and interact with running applications (CLI/TUI/REPL).
Every script MUST begin with a comprehensive docstring covering: Tests, Verification Strategy, Screenshots, Key Bindings, and Usage. See examples/00-comprehensive-template.py for the canonical format.
| Get app | app = await iterm2.asyncgetapp(connection) | | Get window | window = app.currentterminalwindow | | New tab | tab = await window.asynccreatetab() | | Get session | session = tab.currentsession | | Send text | await session.asyncsendtext("ls\n") | | Read screen | screen = await session.asyncgetscreencontents() | | Get line | screen.line(i).string |
Drive iTerm2 programmatically using Python scripts to automate terminal tasks, run tests, or manage sessions. Use when the user needs to test TUIs, CLIs, terminal apps, terminal automation, interactive terminal testing, terminal UI, command-line interface automation, REPL automation, screen monitoring, or terminal screenshots. Supports iTerm2 and iterm automation. Source: indrasvat/claude-code-skills.
Facts (cite-ready)
Stable fields and commands for AI/search citations.
- Install command
npx skills add https://github.com/indrasvat/claude-code-skills --skill iterm2-driver- Category
- *Creative Media
- Verified
- ✓
- First Seen
- 2026-02-12
- Updated
- 2026-02-18
Quick answers
What is iterm2-driver?
Drive iTerm2 programmatically using Python scripts to automate terminal tasks, run tests, or manage sessions. Use when the user needs to test TUIs, CLIs, terminal apps, terminal automation, interactive terminal testing, terminal UI, command-line interface automation, REPL automation, screen monitoring, or terminal screenshots. Supports iTerm2 and iterm automation. Source: indrasvat/claude-code-skills.
How do I install iterm2-driver?
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/indrasvat/claude-code-skills --skill iterm2-driver Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor
Where is the source repository?
https://github.com/indrasvat/claude-code-skills
Details
- Category
- *Creative Media
- Source
- skills.sh
- First Seen
- 2026-02-12