agentleFS
sirdavidhuangsirdavidhuang/claude-code-skills/skills/iterm2-skill/SKILL.md

Iterm2

Skill0 starsChanged 9 months agoMITView on GitHub

iTerm2 terminal emulator and tmux multiplexer expertise. USE WHEN user mentions iTerm2, tmux, terminal sessions, split panes, window management, OR terminal productivity on macOS.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run tmux -CC for native iTerm2 integration:

    line 93
  2. Distinctive:

    Use iTerm2 shortcuts instead of tmux prefix

    line 95

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Iterm2

Complete reference for iTerm2 terminal emulator and tmux terminal multiplexer on macOS. Covers keyboard shortcuts, configuration, tmux integration, and productivity workflows.

Workflow Routing

When executing a workflow, do BOTH of these:

  1. Call the notification script (for observability tracking):
    ~/.claude/Tools/SkillWorkflowNotification WORKFLOWNAME Iterm2
  2. Output the text notification (for user visibility):
    Running the **WorkflowName** workflow from the **Iterm2** skill...
WorkflowTriggerFile
SetupTmux"setup tmux", "configure tmux"workflows/SetupTmux.md
TmuxSession"tmux session", "attach session", "detach"workflows/TmuxSession.md
TroubleshootTmux"tmux not working", "fix tmux"workflows/TroubleshootTmux.md

Examples

Example 1: Split terminal into multiple panes

User: "How do I split my terminal in iTerm2?"
→ References Shortcuts.md
→ Explains Cmd+D (vertical) and Cmd+Shift+D (horizontal)
→ Shows navigation with Cmd+Option+Arrow

Example 2: Setup tmux with iTerm2 integration

User: "How do I use tmux with iTerm2?"
→ Invokes SetupTmux workflow
→ Explains tmux -CC control mode
→ Shows native window integration benefits

Example 3: Manage persistent sessions over SSH

User: "Keep my terminal running after disconnect"
→ Invokes TmuxSession workflow
→ Creates named session with tmux new -s
→ Shows how to reattach after disconnect

Quick Reference

iTerm2 Essentials

ActionShortcut
Split VerticalCmd+D
Split HorizontalCmd+Shift+D
Navigate PanesCmd+Option+Arrow
Maximize PaneCmd+Shift+Enter
Next/Prev TabCmd+{ / Cmd+}
FindCmd+F
AutocompleteCmd+;
Paste HistoryCmd+Shift+H
Instant ReplayCmd+Option+B
Find CursorCmd+/

tmux Essentials

Default prefix: Ctrl+b

ActionShortcut
New Sessiontmux new -s name
List Sessionstmux ls or Ctrl+b s
Attach Sessiontmux attach -t name
DetachCtrl+b d
New WindowCtrl+b c
Split VerticalCtrl+b %
Split HorizontalCtrl+b "
Navigate PanesCtrl+b Arrow
Zoom PaneCtrl+b z
Close PaneCtrl+b x
Copy ModeCtrl+b [

iTerm2 + tmux Integration

Run tmux -CC for native iTerm2 integration:

  • tmux windows appear as native iTerm2 windows
  • Use iTerm2 shortcuts instead of tmux prefix
  • Sessions persist through disconnects
  • Dashboard available via Shell > tmux > Dashboard

Documentation Index

DocumentPurpose
Shortcuts.mdComplete keyboard shortcut reference
TmuxConfig.mdtmux configuration (.tmux.conf) guide
TmuxCommands.mdFull tmux command reference

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.