Skip to content
nanobanana-image logo

Nano Banana Image Generation

nanobanana-image

Nano Banana (Google Gemini API) を使って画像を生成・編集するスキル。「画像を生成して」「イラストを作って」「○○の絵を描いて」「画像を作成」「この画像を編集して」「この画像をもとに○○を作って」「generate an image」「create a picture」「edit this image」などの依頼があった場合に使用。テキストからの生成、参照画像からの生成、画像編集、Google検索グラウンディングによる最新情報を反映した画像生成に対応。「最新の○○」「トレンドを反映」「リアルタイム情報」といった依頼にも対応可能。

SKILL.md

Full skill instructions

Nano Banana Image Generation

Google Gemini APIを使用した画像生成・編集スキル。

前提条件

環境変数 NANOBANANA_SKILL_GOOGLE_API_KEY が設定されていること。

未設定の場合は以下を案内:

  1. Google AI Studio でAPIキーを取得
  2. ~/​.claude/​settings.json に追加:
{
  "env": {
    "NANOBANANA_SKILL_GOOGLE_API_KEY": "取得したAPIキー"
  }
}

モデル

モデルID特徴
ノーマルflash高速・効率重視
Nano Banana Propro (デフォルト)高品質・推論強化・4K対応

ワークフロー

画像生成後は open コマンドでプレビューを提案:

python scripts/​generate_image.py "プロンプト" -o image.png && open image.png

基本コマンド

# テキストから画像生成
python scripts/​generate_image.py "夕焼けのビーチで遊ぶ犬" -o dog.png

# 参照画像から生成(image-to-image)
python scripts/​generate_image.py "この画像をアニメ風にして" -i reference.png -o anime.png

# 複数参照画像
python scripts/​generate_image.py "これらを組み合わせてロゴを作成" -i logo1.png -i logo2.png -o new_logo.png

# Google検索グラウンディング(最新情報を反映)
python scripts/​generate_image.py "2024年の最新ファッショントレンド" --search -o fashion.png

# オプション指定
python scripts/​generate_image.py "横長の風景" --aspect 16:9 -o landscape.png
python scripts/​generate_image.py "詳細な建築物" --size 4K -o building.png
python scripts/​generate_image.py "かわいい猫" -n 3 -o cat.png  # → cat_1.png, cat_2.png, cat_3.png

オプション一覧

オプション説明
-o, --output出力ファイルパス(デフォルト: output.png)
-m, --modelモデル選択: flash / pro(デフォルト: pro)
-i, --input参照画像パス(複数指定可)
-n, --count生成する画像の数
--aspectアスペクト比: 1:1, 16:9, 9:16, 4:3, 3:4 等
--size画像サイズ: 1K, 2K, 4K
--searchGoogle検索グラウンディングを使用(最新情報を反映)

プロンプトの基本

  • 具体的に: 「猫」→「窓辺で日向ぼっこする白い猫」
  • スタイル指定: 「写実的」「アニメ風」「油絵風」「ミニマリスト」
  • 構図指定: 「クローズアップ」「俯瞰」「正面から」
  • 編集時: 「〇〇を追加して」「〇〇を削除して」「〇〇を変更して」

詳細なプロンプトガイド: references/​prompt-guide.md

  • フォトリアリスティック、イラスト/ステッカー、テキスト含有、商品写真、ミニマルデザインの5パターン

エラー対応

エラー対処
401 UnauthorizedAPIキーを確認・再取得
429 Rate Limit少し待って再試行
コンテンツポリシー違反プロンプトを修正(暴力・成人向け等を避ける)
画像が生成されないプロンプトをより具体的に

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

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.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View