/nanobanana
Gemini画像生成APIでテキストから画像生成、既存画像の編集を行うスキル。 「画像を生成して」「イラストを作って」「写真を編集して」等のリクエストで発動。
$ npx -y skills add minicoohei/ai-agent-camp --skill nanobanana --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/nanobanana
Context preview
The summary Claude sees to decide when to auto-load this skill.
Gemini画像生成APIでテキストから画像生成、既存画像の編集を行うスキル。 「画像を生成して」「イラストを作って」「写真を編集して」等のリクエストで発動。
SKILL.md
nanobanana.SKILL.mdname: nanobanana
description: "Gemini画像生成APIでテキストから画像生成、既存画像の編集を行うスキル。 「画像を生成して」「イラストを作って」「写真を編集して」等のリクエストで発動。"
triggers:
- 画像を生成して
- イラストを作って
- 写真を編集して
- 画像を作成
- nanobanana
- image generation
- ロゴをデザインして
Nano Banana Pro - Image Generation & Editing
Generate or edit images using Gemini Image Generation API.
Modes
1. **Text-to-Image**: Generate new images from text prompts 2. **Image Editing**: Edit existing images with instructions
Usage
# Text-to-image
python scripts/nanobanana.py "{prompt}" --aspect-ratio "{ratio}"
# Image editing
python scripts/nanobanana.py "{prompt}" --input "{image_path}"
# Multiple reference images
python scripts/nanobanana.py "{prompt}" --input "{image1}" --input "{image2}"Parameters
| Parameter | Required | Default | Description | |-----------|----------|---------|-------------| | prompt | Yes | - | Generation/edit instruction | | --input, -i | No | - | Input image(s) for editing | | --output, -o | No | auto | Output path | | --aspect-ratio, -ar | No | 16:9 | Output ratio | | --session, -s | No | - | Session name for organizing output | | --force-ar | No | false | Force aspect ratio in edit mode |
Aspect Ratios
`1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `21:9`
Examples
# Generate landscape
python scripts/nanobanana.py "Mt. Fuji at sunset, photorealistic"
# Edit image
python scripts/nanobanana.py "Remove the background" --input photo.jpg
# Combine images
python scripts/nanobanana.py "Merge these into one composition" --input img1.png --input img2.png
# With session organization
python scripts/nanobanana.py "Company logo design" --session "brand_assets" --aspect-ratio 1:1
Requirements
- GEMINI_API_KEY or GOOGLE_API_KEY in environment
- Python packages: google-genai, Pillow, python-dotenv
Overview
Gemini Image Generation APIを使って、テキストプロンプトからの画像生成や、既存画像の編集を行う汎用画像生成スキルです。複数参照画像の合成にも対応。
Troubleshooting
| エラー | 解決方法 | |--------|---------| | API key not found | `GEMINI_API_KEY` または `GOOGLE_API_KEY` を環境変数に設定 | | Input image not found | `--input` に正しいファイルパスを指定。相対パスは実行ディレクトリ基準 |
Success Criteria
- [ ] 指定アスペクト比で画像が生成されている
- [ ] 編集モード時に元画像への変更が正しく反映されている
- [ ] エラーなく完了している
Read more
name: nanobanana description: "Gemini画像生成APIでテキストから画像生成、既存画像の編集を行うスキル。 「画像を生成して」「イラストを作って」「写真を編集して」等のリクエストで発動。" triggers: - 画像を生成して - イラストを作って - 写真を編集して - 画像を作成 - nanobanana - image generation - ロゴをデザインして
Nano Banana Pro - Image Generation & Editing
Generate or edit images using Gemini Image Generation API.
Modes
1. **Text-to-Image**: Generate new images from text prompts 2. **Image Editing**: Edit existing images with instructions
Usage
# Text-to-image
python scripts/nanobanana.py "{prompt}" --aspect-ratio "{ratio}"
# Image editing
python scripts/nanobanana.py "{prompt}" --input "{image_path}"
# Multiple reference images
python scripts/nanobanana.py "{prompt}" --input "{image1}" --input "{image2}"Parameters
| Parameter | Required | Default | Description | |-----------|----------|---------|-------------| | prompt | Yes | - | Generation/edit instruction | | --input, -i | No | - | Input image(s) for editing | | --output, -o | No | auto | Output path | | --aspect-ratio, -ar | No | 16:9 | Output ratio | | --session, -s | No | - | Session name for organizing output | | --force-ar | No | false | Force aspect ratio in edit mode |
Aspect Ratios
`1:1`, `4:3`, `3:4`, `16:9`, `9:16`, `21:9`
Examples
# Generate landscape python scripts/nanobanana.py "Mt. Fuji at sunset, photorealistic" # Edit image python scripts/nanobanana.py "Remove the background" --input photo.jpg # Combine images python scripts/nanobanana.py "Merge these into one composition" --input img1.png --input img2.png # With session organization python scripts/nanobanana.py "Company logo design" --session "brand_assets" --aspect-ratio 1:1
Requirements
- GEMINI_API_KEY or GOOGLE_API_KEY in environment
- Python packages: google-genai, Pillow, python-dotenv
Overview
Gemini Image Generation APIを使って、テキストプロンプトからの画像生成や、既存画像の編集を行う汎用画像生成スキルです。複数参照画像の合成にも対応。
Troubleshooting
| エラー | 解決方法 | |--------|---------| | API key not found | `GEMINI_API_KEY` または `GOOGLE_API_KEY` を環境変数に設定 | | Input image not found | `--input` に正しいファイルパスを指定。相対パスは実行ディレクトリ基準 |
Success Criteria
- [ ] 指定アスペクト比で画像が生成されている
- [ ] 編集モード時に元画像への変更が正しく反映されている
- [ ] エラーなく完了している
AI Agent Training for Non-Engineers - Complete Guide to Claude Code / Cursor / Codex ### ⚠️ Before you clone Official repository (maintained by the authors): Running AI agents from this repo grants them shell, file-write, and external-API permissions on your
Other skills on ai-agent-camp.
- /ab-test-setup
A/Bテストや実験の設計・実装を支援するスキル。 「A/Bテストを設計して」「スプリットテストしたい」「仮説を立ててテストしたい」「バリアントを比較」等のリクエストで発動。 トラッキング実装は analytics-tracking を参照。
Open skill - /agent-designer
マルチエージェントシステムのアーキテクチャ設計ツールキット。 「エージェントを設計して」「マルチエージェント構成」「エージェントのアーキテクチャ」「オーケストレーション設計」等のリクエストで発動。
Open skill - /analytics-tracking
アナリティクスのトラッキング設定・改善・監査を支援するスキル。 「トラッキングを設定」「GA4を導入」「コンバージョン計測」「イベントトラッキング」「UTMパラメータ」「GTMの設定」等のリクエストで発動。 A/Bテスト計測は ab-test-setup を参照。
Open skill - /article-writer
テーマからアウトライン生成→文体プロファイル適用→Markdown記事出力を行う記事執筆スキル。 挿絵マーカーの自動挿入、style-analyzerプロファイル参照による文体統一に対応。 「記事を書いて」「ブログ作成」「テーマで記事生成」等のリクエストで発動。
Open skill - /banner-creator
各種SNS・広告プラットフォーム向けのバナー/クリエイティブを生成するスキル。 X, Facebook, Instagram, PRTimes, YouTube, LINE, Web広告に対応。 「バナーを作って」「広告画像を生成」「SNS用の画像」「クリエイティブ制作」等のリクエストで発動。
Open skill - /bigquery-auth
GCPプロジェクト単位でBigQuery認証を設定するスキル。 gcloud設定プロファイルで複数プロジェクトを安全に分離管理。 「BigQueryに繋ぎたい」「BQ認証」「gcloud認証」「データ分析の認証設定」等のリクエストで発動。
Open skill

