Shell integration covers the APIs and patterns for building tools that extend or interact with Unix shells. This includes completion systems, prompt hooks, key bindings, terminal control, and plugin distribution across Zsh, Bash, and Fish.
When to use: Building CLI tool completions, shell plugins, prompt customizations, terminal UI, dotfile managers, installation scripts, or native binary wrappers.
When NOT to use: General-purpose scripting unrelated to shell extension (use POSIX scripting reference for standalone scripts), GUI applications, or web server development.
Zsh、Bash、Fish と統合するツールを構築するためのシェル スクリプトとターミナルの統合パターン。完了システム (compdef/compadd、complete/compgen、fish complete)、ZLE ウィジェット、フック (precmd/preexec/chpwd、PROMPT_COMMAND)、readline、bindkey、パラメーター拡張、ZDOTDIR ロード順序、イベント システム、略語、POSIX シェル スクリプト、端末制御コード (ANSI/CSI エスケープ シーケンス)、tput、stty、シグナル処理、プロセス管理 (ジョブ制御、トラップ)、およびシェル プラグインの配布パターン。 シェル プラグインの構築、完了スクリプトの作成、エスケープ シーケンスを使用したターミナル UI の実装、ドットファイルの管理、インストール スクリプトの作成、シグナルおよびプロセス管理の処理、またはネイティブ バイナリとシェル ラッパーの統合を行う場合に使用します。 ソース: oakoss/agent-skills。