iterm2-driver
✓使用 Python 腳本以程式設計方式驅動 iTerm2,以自動執行終端任務、執行測試或管理會話。當使用者需要測試 TUI、CLI、終端應用程式、終端自動化、互動式終端測試、終端 UI、命令列介面自動化、REPL 自動化、螢幕監控或終端螢幕截圖時使用。支援 iTerm2 和 iterm 自動化。
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 |
使用 Python 腳本以程式設計方式驅動 iTerm2,以自動執行終端任務、執行測試或管理會話。當使用者需要測試 TUI、CLI、終端應用程式、終端自動化、互動式終端測試、終端 UI、命令列介面自動化、REPL 自動化、螢幕監控或終端螢幕截圖時使用。支援 iTerm2 和 iterm 自動化。 來源:indrasvat/claude-code-skills。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/indrasvat/claude-code-skills --skill iterm2-driver- 分類
- *創意媒體
- 認證
- ✓
- 收錄時間
- 2026-02-12
- 更新時間
- 2026-02-18
快速解答
什麼是 iterm2-driver?
使用 Python 腳本以程式設計方式驅動 iTerm2,以自動執行終端任務、執行測試或管理會話。當使用者需要測試 TUI、CLI、終端應用程式、終端自動化、互動式終端測試、終端 UI、命令列介面自動化、REPL 自動化、螢幕監控或終端螢幕截圖時使用。支援 iTerm2 和 iterm 自動化。 來源:indrasvat/claude-code-skills。
如何安裝 iterm2-driver?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/indrasvat/claude-code-skills --skill iterm2-driver 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/indrasvat/claude-code-skills