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 |
قم بقيادة iTerm2 برمجيًا باستخدام نصوص Python لأتمتة المهام الطرفية أو تشغيل الاختبارات أو إدارة الجلسات. يُستخدم عندما يحتاج المستخدم إلى اختبار واجهات TUI، أو واجهات سطر الأوامر، أو التطبيقات الطرفية، أو التشغيل الآلي للمحطة، أو الاختبار الطرفي التفاعلي، أو واجهة المستخدم الطرفية، أو التشغيل الآلي لواجهة سطر الأوامر، أو التشغيل الآلي REPL، أو مراقبة الشاشة، أو لقطات الشاشة الطرفية. يدعم أتمتة iTerm2 وiterm. المصدر: indrasvat/claude-code-skills.