Agent skill
gemini
Gemini CLI を使用してテキストと画像を生成する際にこのスキルを使用します。ユーザーが Gemini を通じてコンテンツ生成、画像生成、コードレビュー等を要求した際にトリガーされます。
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/gemini-buddypia-kaiju-voice
Metadata
Additional technical details for this skill
- short description
- Generate image/text with Gemini
SKILL.md
Gemini CLI
GoogleのGemini AIモデルをターミナルから直接使用できるCLIツールです。テキスト生成、画像生成、コード分析等、様々なAI作業を実行できます。
前提要件
Gemini CLIがインストールされている必要があります。インストールされていない場合:
# npm グローバルインストール (推奨)
npm install -g @google/gemini-cli
# または Homebrew (macOS/Linux)
brew install gemini-cli
# または npx で即時実行
npx https://github.com/google-gemini/gemini-cli
テキスト生成
対話モード
# 基本実行
gemini
# 特定モデル使用
gemini -m gemini-3-flash-preview
非対話モード (スクリプト用)
# 単一プロンプト実行
gemini -p "AIゲーム対戦プロジェクトの紹介文を作成して"
# ファイル内容を含めて分析
gemini -p "このコードをレビューして" < code.ts
# 結果をファイルに保存
gemini -p "README 草案を作成して" > README.md
コンテキスト含有
# 特定ディレクトリを含む
gemini --include-directories ./lib,./docs
# プロジェクト全体コンテキスト
gemini --include-directories .
画像生成
Gemini CLIでの画像生成はImagen MCPサーバーを通じて可能です。
MCPサーバー設定
~/.gemini/settings.json ファイルに以下を追加:
{
"mcpServers": {
"imagen": {
"command": "npx",
"args": ["-y", "@anthropic-ai/mcp-server-imagen"]
}
}
}
画像生成コマンド
# 対話モードで画像生成
gemini
> かわいい猫キャラクターアイコンを生成して
# 非対話モード
gemini -p "ミニマルスタイルのAIゲーム対戦アプリロゴを生成して"
Gemini 2.5 Flash Image モデル (ネイティブ画像生成)
# 画像生成専用モデル使用
gemini -m gemini-3-flash-preview-image -p "韓国の伝統文様が入ったバナー画像"
実行例
マーケティング文生成
gemini -p "AIゲーム対戦プロジェクト 'プロジェクト' の紹介文を作成して。
Gemini API活用、リアルタイム対戦、インタラクティブなゲーム体験を強調して。"
コードレビュー
gemini -p "このReactコンポーネントのパフォーマンス改善点を見つけて" < src/features/battle/components/BattleArena.tsx
ドキュメント草案作成
gemini -p "次の機能に関する技術ドキュメントを作成して: ユーザー学習進捗同期" \
--include-directories ./docs/DATABASE_SCHEMA > docs/SYNC_FEATURE.md
便利なオプション
| オプション | 説明 |
|---|---|
-m, --model |
使用するモデルを指定 (gemini-2.5-pro, gemini-3-flash-preview 等) |
-p, --prompt |
非対話モードで単一プロンプト実行 |
--include-directories |
コンテキストに含むディレクトリ |
--sandbox |
サンドボックスモードで実行 (ファイル変更不可) |
-y, --yes |
全ての確認プロンプトを自動承認 |
認証
- Google ログイン (推奨): 無料で毎分60回、1日1,000回リクエスト
- API キー: AI Studioで発行後
GEMINI_API_KEY環境変数に設定 - Vertex AI: エンタープライズ環境用
# API キー設定
export GEMINI_API_KEY="your-api-key"
参考資料
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?