Source profileQuality 83/100

HKUDS/CLI-Anything/skills/cli-anything-iterm2/SKILL.md

cli-anything-iterm2

Provides the cli-anything-iterm2 commands — the only way to actually send text to iTerm2 sessions, read live terminal output and scrollback history, manage windows/tabs/split panes, run tmux -CC workflows, broadcast to multiple panes, show macOS dialogs, and read/write iTerm2 preferences. Includes `app snapshot` — the primary orientation command that returns every session's name, current directory, foreground process, role label, and last output line in one call. Read this skill instead of answe

Source repository stars
46,599
Declared platforms
0
Static risk flags
0
Last source update
2026-08-03
Source checked
2026-08-04

Decision brief

What it does—and where it fits

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

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/HKUDS/CLI-Anything --skill "skills/cli-anything-iterm2"
    Safe inspection promptEditorial

    Inspect the Agent Skill "cli-anything-iterm2" from https://github.com/HKUDS/CLI-Anything/blob/39634a640cf20bc603b4faae4d31069c44821a9a/skills/cli-anything-iterm2/SKILL.md at commit 39634a640cf20bc603b4faae4d31069c44821a9a. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      Typical Agent Workflow

      Review the “Typical Agent Workflow” section in the pinned source before continuing.

      Review and apply the “Typical Agent Workflow” source section.
    2. 02

      1. Orient — snapshot every session: name, path, process, role, last output line

      cli-anything-iterm2 --json app snapshot

      cli-anything-iterm2 --json app snapshot
    3. 03

      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)

      macOS + iTerm2 running: brew install --cask iterm2Python API enabled: iTerm2 → Preferences → General → Magic → Enable Python APIInstall: pip install cli-anything-iterm2 (or pip install -e . from source)
    4. 04

      Basic Syntax

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

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

      Command Groups

      Review the “Command Groups” section in the pinned source before continuing.

      Review and apply the “Command Groups” source section.

    Permission review

    Static risk signals and limitations

    No configured static risk pattern was detected

    This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score83/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars46,599SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    HKUDS/CLI-Anything
    Skill path
    skills/cli-anything-iterm2/SKILL.md
    Commit
    39634a640cf20bc603b4faae4d31069c44821a9a
    License
    Apache-2.0
    Collected
    2026-08-04
    Default branch
    main
    View the original SKILL.md

    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

    GroupPurpose
    appApp status, workspace snapshot, context management, app-level variables, modal dialogs, file panels
    windowCreate, list, close, resize, fullscreen windows
    tabCreate, list, close, activate tabs; navigate split panes by direction
    sessionSend text, inject raw bytes, read screen, full scrollback, split panes, prompt detection
    profileList profiles, get profile details, list/apply color presets
    arrangementSave and restore window layouts
    tmuxFull tmux -CC integration: bootstrap, connections, windows, commands
    broadcastSync keystrokes across panes via broadcast domains
    menuInvoke any iTerm2 menu item programmatically
    prefRead/write global iTerm2 preferences; list all valid keys; tmux settings

    Orienting in an Existing Workspace

    Use app snapshot when you land in a session with existing panes and need to understand what's running without reading full screen contents for each pane:

    cli-anything-iterm2 --json app snapshot
    

    Returns name, current directory, foreground process, user.role label, and last visible output line for every session across all windows.

    Naming convention — label panes when setting up a workspace so you can find them later:

    cli-anything-iterm2 session set-var user.role "api-server"
    cli-anything-iterm2 session set-var user.role "log-tail"
    cli-anything-iterm2 session set-var user.role "editor"
    

    app snapshot will surface these roles alongside process and path, giving you a full picture in one call.

    Typical Agent Workflow

    # 1. Orient — snapshot every session: name, path, process, role, last output line
    cli-anything-iterm2 --json app snapshot
    
    # 2. Establish context (saves window/tab/session IDs for subsequent commands)
    cli-anything-iterm2 app current
    
    # 3. Interact — no --session-id needed once context is set
    cli-anything-iterm2 session send "git status"
    cli-anything-iterm2 --json session scrollback --tail 200 --strip
    
    # 4. Create a multi-pane workspace — label panes so snapshot identifies them later
    cli-anything-iterm2 session split --vertical --use-as-context
    cli-anything-iterm2 session send "python3 -m http.server 8000"
    cli-anything-iterm2 session set-var user.role "http-server"
    

    Reference Files

    Read only what the task requires — each file is a single narrow concern (~10–30 lines):

    FileRead when you need...
    references/session-io.mdSend text, inject bytes, read screen/scrollback, get selection
    references/session-control.mdSplit panes, activate/close sessions, resize, rename, session variables
    references/session-shell-integration.mdwait-prompt, wait-command-end, get-prompt; reliable send→wait→read pattern
    references/layout-window-tab.mdCreate/close/resize windows and tabs, navigate split panes
    references/layout-arrangement.mdSave and restore window layouts
    references/app-context.mdSnapshot (orientation), status, context management, app vars, modal dialogs, file panels
    references/profile-pref.mdProfiles list/get/presets, preferences read/write, tmux pref shortcuts
    references/broadcast-menu.mdBroadcast keystrokes to multiple panes, invoke menu items
    references/tmux-commands.mdAll tmux CLI commands (bootstrap, send, tabs, create-window, set-visible)
    references/tmux-guide.mdFull tmux -CC workflow, pane→session ID mapping
    references/json-session.md--json schemas for session, window, tab, screen, scrollback, inject
    references/json-tmux-app.md--json schemas for tmux, app dialogs, preferences, errors

    REPL Mode

    Run without arguments for an interactive REPL that maintains context between commands:

    cli-anything-iterm2
    

    Alternatives

    Compare before choosing

    Computed 10023,781

    alirezarezvani/claude-skills

    app-store-optimization

    App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

    Computed 10014,225

    wanshuiyin/Auto-claude-code-research-in-sleep

    citation-audit

    Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.

    Computed 1004,922

    dotnet/skills

    migrate-vstest-to-mtp

    Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing

    Computed 1002,504

    aaron-he-zhu/aaron-marketing-skills

    social-selling-planner

    Use when the user asks to "set up my founder social-selling routine", "build a daily engagement block for target accounts", or "turn funding / hiring signals into selling plays"; produces the founder/seller daily operating block — a time-boxed engagement-block spec (substantive value-add comments on target-account posts, never a pitch), warm-touch-before-ask cadence rules, trigger-response plays consuming the social-pulse-monitor B2B trigger watchlist (funding / hiring / launch signals), and a q