Gemini CLI の仕様と使い方に関する知識を提供。モデル選択、スラッシュコマンド、組み込みツール、拡張機能について回答。Use when user asks about Gemini CLI, gemini command, model selection, /model, /settings, google_web_search, web_fetch, run_shell_command, or Gemini extensions. Also use when user says Gemini CLI について, gemini の使い方, モデル選択.
Provides guidance on Gemini CLI usage, model selection, slash commands, and built-in tools.
/plugin marketplace add biwakonbu/cc-plugins/plugin install gemini-cli-spec@cc-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Gemini CLI の仕様と使い方に関する包括的な知識を提供するスキル。
| モデル | 説明 |
|---|---|
| Auto (Gemini 3) | システムがタスクに最適な Gemini 3 モデルを自動選択 |
| Auto (Gemini 2.5) | システムがタスクに最適な Gemini 2.5 モデルを自動選択 |
| モデル | 特徴 | 用途 |
|---|---|---|
| gemini-3-pro-preview | 高度な推論、創造性 | 複雑なタスク、深い分析 |
| gemini-3-flash-preview | 高速レスポンス | シンプルなタスク、クイック応答 |
| gemini-2.5-pro | Pro の安定版 | 本番環境での複雑なタスク |
| gemini-2.5-flash | Flash の安定版 | 本番環境での高速処理 |
# セッション中に変更
/model
# 起動時に指定
gemini --model gemini-3-pro-preview
注意: /model コマンドはサブエージェントのモデルを上書きしない。
Gemini 3 プレビューモデルを使用するには:
/settings コマンドを実行| コマンド | 説明 |
|---|---|
/chat save <tag> | 現在の会話履歴をタグ付きで保存 |
/chat resume <tag> | 保存した会話を再開 |
/chat list | 保存済みタグの一覧表示 |
/compress | チャット文脈全体を要約に置き換えてトークン節約 |
| コマンド | 説明 |
|---|---|
/clear | ターミナル画面をクリア(Ctrl+L でも可) |
/settings | 設定エディタを開く |
/theme | ビジュアルテーマを変更 |
/model | Gemini モデルを選択 |
| コマンド | 説明 |
|---|---|
/tools | 利用可能なツールのリスト表示 |
/mcp | Model Context Protocol サーバーを管理 |
/memory | AI の教示的文脈を管理(GEMINI.md から読み込み) |
/extensions | アクティブな拡張機能を表示 |
| コマンド | 説明 |
|---|---|
/bug <説明> | GitHub に問題を報告 |
/help | ヘルプ情報を表示 |
/quit | Gemini CLI を終了 |
| ツール | 別名 | 説明 |
|---|---|---|
list_directory | ReadFolder | ディレクトリ内のファイル一覧表示。glob パターン対応、.gitignore 尊重オプション |
read_file | ReadFile | テキスト、画像(PNG, JPG, GIF)、オーディオ、PDF 読み込み。行範囲指定可能 |
write_file | WriteFile | ファイル書き込み。存在しない場合は作成、親ディレクトリも自動生成 |
glob | FindFiles | glob パターンでファイル検索。修正時刻でソート |
search_file_content | SearchText | 正規表現でファイル内検索。行番号付きで結果返却 |
replace | Edit | ファイル内テキスト置換。前後3行以上のコンテキスト必要 |
run_shell_command
シェルコマンドを実行するツール。
| プラットフォーム | シェル |
|---|---|
| Windows | PowerShell |
| その他 | bash |
引数:
command (必須): 実行するシェルコマンドdescription (オプション): コマンドの説明directory (オプション): 実行ディレクトリ返却値:
対話モード有効化:
settings > tools.shell.enableInteractiveShell: true
web_fetch
URL からコンテンツを取得。
google_web_search
Google Search 経由で Web 検索を実行。
使用例:
google_web_search(query="AI 最新ニュース 2025")
save_memory
セッション間で情報を保存・回想。
~/.gemini/GEMINI.md使用例:
save_memory(fact="My preferred programming language is Python.")
write_todos
複雑なタスクを管理するためのツール。
| フラグ | 説明 |
|---|---|
--yolo | ツール実行の許可プロンプトをスキップ(自動実行) |
--model <model> | 起動時に使用モデルを指定 |
使用例:
# 許可プロンプトなしで実行
gemini --yolo "ファイル一覧を表示して"
# モデル指定で起動
gemini --model gemini-3-pro-preview
Gemini CLI 拡張機能は、プロンプト、MCP サーバー、カスタムコマンドを使いやすい形式にパッケージ化するツール。
my-extension/
├── gemini-extension.json # マニフェスト
├── commands/ # カスタムコマンド(TOML 形式)
│ └── my-command.toml
├── hooks/
│ └── hooks.json # フック定義
└── prompts/ # プロンプトテンプレート
commands/ ディレクトリに TOML ファイルを配置。
例: gcp 拡張機能
/deploy コマンド/gcs:sync コマンドhooks/hooks.json で定義。特定のライフサイクルイベントで Gemini CLI の動作をインターセプト・カスタマイズ可能。
gemini-extension.json の mcpServers マップで設定。起動時に自動読み込み。
優先度: settings.json > 拡張機能設定
| 変数 | 説明 |
|---|---|
${extensionPath} | 拡張機能のルートディレクトリ |
${workspacePath} | 現在のワークスペースパス |
# インストール
gemini extensions install <name>
# アンインストール
gemini extensions uninstall <name>
# 有効化/無効化
gemini extensions enable <name>
gemini extensions disable <name>
~/.gemini/GEMINI.md ファイルで AI の教示的文脈を管理。
# CLI から管理
/memory
# 手動編集も可能
vim ~/.gemini/GEMINI.md
--yolo フラグでスキップ可能rootDirectory 内でのみ動作tools.core と tools.exclude で許可・ブロックするコマンドを指定。
注意: 制限機能はセキュリティメカニズムではなく、信頼できないコードの実行には不適切。
# npm
npm install -g @google/gemini-cli
# Homebrew
brew install gemini-cli
/model
または起動時に --model フラグ。
/chat save my-session
/chat resume my-session
プロンプトで検索を依頼するだけ。Gemini が自動的に google_web_search を使用。
gemini --yolo "コマンド"
This skill should be used when the user asks about libraries, frameworks, API references, or needs code examples. Activates for setup questions, code generation involving libraries, or mentions of specific frameworks like React, Vue, Next.js, Prisma, Supabase, etc.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.