/solo-skills:iterm2from solo-skills
Configure iTerm2 and exploit the features that distinguish it from other terminal emulators. Use for any iTerm2 request: "set iTerm2 as my default terminal", "change a profile or theme", "my iTerm setting keeps reverting", "add a dynamic profile", "version-control my iTerm config", "install shell integration", "set up triggers / status bar / hotkey window / badges / captured output", "why didn't my `defaults write` stick", or "what iTerm2 features am I not using". Covers the preferences model (why iTerm2 silently reverts scripted changes and how to write them safely), dynamic profiles, tracking the config in a dotfiles repo, shell integration and its utilities, the macOS default-terminal binding, and the power-feature catalog.
Ships in solo-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Two things make iTerm2 unlike other terminals to automate: it keeps its entire configuration in one plist that it rewrites from memory on quit, and its most valuable features are inert until shell integration is installed. Most "my iTerm setting won't stick" problems are the first; most "iTerm isn't better than Terminal.app" impressions are the second.
iTerm2 overwrites its preferences from memory when it quits. Any defaults write com.googlecode.iterm2 … made while iTerm2 is running is silently clobbered seconds later, when
the user quits. There is no error and no warning.
So: quit iTerm2 before writing its preferences, and guard every script that does so. Writing prefs from a terminal running inside iTerm2 cannot work — run it from Terminal.app or another emulator, or apply the change through the GUI.
Two traps sit inside that guard, both of which produce a check that silently reports the opposite of the truth:
# WRONG on both counts.
if pgrep -xq iTerm2; then ...
pgrep -x iTerm2 never matches. pgrep compares against the full executable path
(/Applications/iTerm.app/Contents/MacOS/iTerm2), so exact-match never fires. Plain
pgrep iTerm is worse than useless: it matches the helper processes iTermAI and
iTermServer-<version>, so it returns true when the app itself is closed.ps … | grep -q under set -o pipefail returns 141. grep -q exits at the first match,
ps dies of SIGPIPE, and pipefail propagates it — so the guard reads "not running" exactly when
it is running.# RIGHT — capture, then substring-match. No pipeline, no SIGPIPE, no pgrep semantics.
iterm_running() {
local procs; procs=$(ps -Ao comm=)
[[ "$procs" == *"iTerm.app/Contents/MacOS/iTerm2"* ]]
}
| The request is to… | Read |
|---|---|
| Set profiles/themes, add a dynamic profile, fix a default profile that reverts | references/configuration.md |
| Track the whole iTerm2 config in a dotfiles repo | references/configuration.md (custom prefs folder) |
Install shell integration, or use imgcat/it2copy/other utilities | references/shell-integration.md |
| Make iTerm2 the macOS default terminal | references/default-terminal.md |
| Set up triggers, status bar, hotkey window, badges, captured output, tmux integration | references/features.md |
| Find features the user isn't exploiting yet | references/features.md |
A profile is a named settings collection. Dynamic profiles are JSON files in
~/Library/Application Support/iTerm2/DynamicProfiles/, loaded automatically at launch — the right
way to keep profiles in a dotfiles repo, since they need no import step.
Two sharp edges: iTerm2 reads every file in that directory regardless of extension, so a
.example seed placed there loads as a second profiles file and triggers a duplicate-GUID warning;
keep seeds outside it. And a dynamic profile cannot mark itself default — the default lives in
the Default Bookmark Guid preference, which is subject to the clobber rule above.
Reading a value back from defaults proves only what was written, not what iTerm2 will honor.
echo $ITERM_PROFILE names the live profile.ITERM_SHELL_INTEGRATION_INSTALLED=Yes in a new interactive
shell (the script no-ops in non-interactive shells, so zsh -c always looks like a failure).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hsb3/dotfiles-agents --plugin solo-skills13 skills in this plugin
/claude-code-configConfigure Claude Code itself — settings-file precedence, permissions, hooks, env vars, and MCP registration, closed by a take-effect check. Use for "change a setting", "allow/deny a command", "add or move a permission rule", "set up a hook", "run something automatically whenever X happens", "always do Y every time", "add an environment variable", "register an MCP server", or "why isn't my setting taking effect"./claude-code-expertiseExpert map of Claude Code's extension surfaces for authoring and debugging extenders — skills, subagents, hooks, commands, plugins, marketplaces, MCP servers, and settings/permissions contracts. Use to decide which surface fits a need, to look up a surface's frontmatter or config contract, to author or debug a skill, subagent, hook, command, or plugin, or to answer how any Claude Code extension surface works. Not for changing settings, permissions, or hook wiring in a project - that is claude-code-config./datavizDesign data visualizations - charts, graphs, plots, and dashboards - that are correct, legible, and honest, in any medium. Consult this BEFORE writing any chart, graph, plot, or dashboard code, whatever the library (matplotlib, plotly, d3, Recharts, inline SVG) or output (static image, notebook, web app, deck). Use whenever a task involves picking a chart type, a color palette for data, dashboard or KPI-tile layout, axis and label formatting, or making a visualization colorblind-safe and light/dark-ready. Covers the data-shape to mark-type heuristic, chart anti-patterns to refuse (pie overuse, dual axes, truncated bar axes, rainbow scales, 3D), a brand-neutral colorblind-safe palette you can rebrand, composition, interaction and static degradation, and a final validation checklist. Data charts only - structural diagrams and deck theming are out of scope.Other plugins' skills for the same job