hkuds avatar

Cli Anything Iterm2

This is the canonical way to programmatically control iTerm2 from Claude. It wraps the iTerm2 Python API so you can send commands to terminals, read live output and scrollback, manage windows and split panes, and work with tmux integration mode. The killer command is `app snapshot`, which returns every session's name, directory, running process, role label, and last output line in one call, so you can orient yourself in an existing workspace without reading full screen contents. It maintains context between commands, supports shell integration for reliable prompt detection, and includes broadcast domains for syncing keystrokes across panes. If you're asking Claude to do anything with iTerm2 beyond basic questions, this skill should be loaded.

skills.sh installs
530
GitHub stars
58.5K
last updated
Aug 21, 2026

Install

$ npx -y skills add hkuds/cli-anything --skill cli-anything-iterm2 --agent claude-code

Installs into .claude/skills of the current project.

Files

cli-anything-iterm2

Stateful CLI harness for iTerm2. Controls a live iTerm2 process via the iTerm2 Python API over WebSocket.

Prerequisites

  1. macOS + iTerm2 running: brew install --cask iterm2
  2. Python API enabled: iTerm2 → Preferences → General → Magic → Enable Python API
  3. Install: pip install cli-anything-iterm2 (or pip install -e . from source)

Basic Syntax

cli-anything-iterm2 [--json] <group> <command> [OPTIONS] [ARGS]

Always use --json for machine-readable output (required for agent use).

Command Groups

Sponsors

Details

Repository
github.com/hkuds/cli-anything
Categories
Frontend Development, Testing & QA, Automation & Workflows, CLI & Terminal
First seen
Jun 3, 2026

More from hkuds/cli-anything

All 51
1davila7 avatarplaywright-skilldavila7/claude-code-templatesComplete browser automation with Playwright. Auto-detects dev servers, writes clean test scripts to /tmp. Test pages, fill forms, take screenshots, check respon525skills.sh installs
2postplusai avatarinstagram-content-benchmarkpostplusai/postplus-skillsBenchmark Instagram posts and Reels to discover winning content patterns, shortlist high-value examples, and extract reusable hooks and formats.525skills.sh installs
3dylantarre avatarinstant-0-100msdylantarre/animation-principlesUse when building instantaneous UI feedback under 100ms - button presses, toggles, state changes that feel immediate and responsive524skills.sh installs
4andreadellacorte avatargroove-work-docandreadellacorte/grooveCreate a 'how does X work' documentation file for a codebase component or concept. Use $ARGUMENTS as the doc topic if provided.518skills.sh installs
5bobmatnyc avatargolang-grpcbobmatnyc/claude-mpm-skillsProduction gRPC in Go: protobuf layout, codegen, interceptors, deadlines, error codes, streaming, health checks, TLS, and testing with bufconn518skills.sh installs
6motion-team avatarhook-tacticsmotion-team/creative-strategy-skillsReference library of 35+ hook and headline tactic types. Use this when a user asks for hooks organized by tactic, wants to know which tactic to use for a given 518skills.sh installs