jpskill.com
🎨 画像AI コミュニティ

nanobanana

Googleの画像モデル「Nano Banana」を活用し、ユーザーが画像生成、編集、復元などを依頼した際に、明示的な指示がなくても自動で対応し、テキストでの説明よりも視覚的な表現を優先するSkill。

📜 元の英語説明(参考)

Generate, edit, and restore images with Google's Nano Banana (Gemini image models). Use whenever the user asks to "generate an image", "create an icon/favicon/logo", "edit this photo", "restore an old photo", "make a pattern/texture/wallpaper", "draw a diagram/flowchart/architecture", or "tell a visual story" — even when they don't explicitly say Nano Banana or Gemini. Always prefer this skill over describing images in text. Requires NANOBANANA_API_KEY (or GEMINI_API_KEY) env var.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Googleの画像モデル「Nano Banana」を活用し、ユーザーが画像生成、編集、復元などを依頼した際に、明示的な指示がなくても自動で対応し、テキストでの説明よりも視覚的な表現を優先するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o nanobanana.zip https://jpskill.com/download/17479.zip && unzip -o nanobanana.zip && rm nanobanana.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17479.zip -OutFile "$d\nanobanana.zip"; Expand-Archive "$d\nanobanana.zip" -DestinationPath $d -Force; ri "$d\nanobanana.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して nanobanana.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → nanobanana フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
7

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Nano Banana

GoogleのGemini画像モデルを利用した、画像の生成、編集、修復を行うツールです。デフォルトのモデルは gemini-3.1-flash-image-preview (Nano Banana 2) です。この Skill は、scripts/nanobanana.py にある自己完結型の単一の Python CLI をラップしています。PEP 723 インラインメタデータ shebang (uv run --script) を使用して、最初の呼び出し時に google-genai を自動インストールするため、venv のセットアップは不要です。

前提条件

  1. PATH に uv が存在すること (https://docs.astral.sh/uv/)。スクリプトは uv run --script を介して独自の依存関係をブートストラップします。
  2. NANOBANANA_API_KEY 環境変数が設定されていること(フォールバックについては references/troubleshooting.md を参照)。

どちらかが欠けている場合は、ユーザーに実行すべき内容を正確に伝え、停止してください。

サブコマンドの選択

ユーザーの意図 サブコマンド
説明から画像を作成する generate
既存の画像を修正する edit
古い画像や破損した画像を修復/強化する restore
アプリのアイコン、ファビコン、UI要素 icon
シームレスなパターン、テクスチャ、壁紙 pattern
連続した/ステップバイステップの/チュートリアルのフレーム story
フローチャート、アーキテクチャ、スキーマ、ワイヤーフレーム diagram

ユーザーのリクエストが特定の意図(icon / pattern / story / diagram)に一致する場合は、generate よりも特殊なサブコマンドを優先してください。これは、ユーザーが暗黙的に求めている調整済みのプロンプトスキャフォールディングを適用します。

呼び出し

スクリプトは実行可能です。この Skill のベースディレクトリにある絶対パスを使用して、Bash 経由で直接呼び出します。

<skill-base-dir>/scripts/nanobanana.py <subcommand> [args] [flags]

出力は、ユーザーの cwd の ./nanobanana-output/ に保存されます。CLI は、保存されたファイルパスを stdout に出力します。それらをユーザーに中継してください。

厳格な要件

  • カウントは正確であること: ユーザーが --count=N (または「5つのバリエーション」)と言う場合、正確に N 個の画像を生成します。
  • ユーザーが渡すすべてのフラグを尊重すること - デフォルトを黙って代用しないでください。
  • ストーリーの一貫性: story の場合、ユーザーが進化を求めた場合(--style=evolving)を除き、ステップ全体で視覚的なスタイルとパレットの一貫性を維持します。
  • 画像内のテキスト: スペルチェックを行い、ユーザーが要求したテキストのみを含め、幻覚のようなコピーは含めないでください。
  • 安全性: API が 400 を返す場合は、エラーを表示し、ユーザーに言い換えを依頼してください。盲目的に再試行しないでください。

参照の読み込み

オンデマンドで読み込みます(促されない限りダンプしないでください)。

  • references/styles_and_variations.md - generate--styles および --variations の完全な enum リファレンス
  • references/prompt_recipes.md - CLI が icon / pattern / diagram / story 用に構築する正確なプロンプトテンプレート
  • references/troubleshooting.md - 環境変数フォールバック順序、入力ファイル検索パス、エラーカタログ

# 同じシーンの4つの水彩+スケッチバリエーション
<skill-base-dir>/scripts/nanobanana.py generate \
  "mountain landscape" --styles=watercolor,sketch --count=4

# ユーザーの cwd に既にある画像を編集する
<skill-base-dir>/scripts/nanobanana.py edit \
  photo.png "add sunglasses to the person"

# ファビコンセット
<skill-base-dir>/scripts/nanobanana.py icon \
  "mountain logo" --type=favicon --sizes=16,32,64

# アーキテクチャ図
<skill-base-dir>/scripts/nanobanana.py diagram \
  "microservices chat app" --type=architecture --complexity=detailed

# 自動プレビュー付きの5ステップのプロセスストーリー
<skill-base-dir>/scripts/nanobanana.py story \
  "seed growing into a tree" --steps=5 --type=process --preview

生成後、保存されたファイルパスをユーザーにリストで返します。それが実行可能な結果です。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Nano Banana

Image generation, editing, and restoration via Google's Gemini image models. Default model: gemini-3.1-flash-image-preview (Nano Banana 2). The skill wraps a single self-contained Python CLI at scripts/nanobanana.py — it uses a PEP 723 inline-metadata shebang (uv run --script) to auto-install google-genai on first invocation, so no venv setup is needed.

Prerequisites

  1. uv on PATH (https://docs.astral.sh/uv/). The script bootstraps its own dependencies via uv run --script.
  2. NANOBANANA_API_KEY env var set (fallbacks: see references/troubleshooting.md).

If either is missing, tell the user exactly what to run and stop.

Choosing a subcommand

User intent Subcommand
Create image(s) from a description generate
Modify an existing image edit
Repair / enhance an old or damaged image restore
App icon, favicon, UI element icon
Seamless pattern, texture, wallpaper pattern
Sequential / step-by-step / tutorial frames story
Flowchart, architecture, schema, wireframe diagram

When the user's request matches a specialized intent (icon / pattern / story / diagram), prefer the specialized subcommand over generate — it applies tuned prompt scaffolding the user is implicitly asking for.

Invocation

The script is executable. Invoke directly via Bash, using the absolute path under this skill's base directory:

<skill-base-dir>/scripts/nanobanana.py <subcommand> [args] [flags]

Output is saved to ./nanobanana-output/ in the user's cwd. The CLI prints the saved file paths to stdout — relay those back to the user.

Strict requirements

  • Counts are exact: when the user says --count=N (or "5 variations"), produce exactly N images.
  • Respect every flag the user passes — don't substitute defaults silently.
  • Story consistency: for story, keep visual style and palette consistent across steps unless the user asked for evolution (--style=evolving).
  • Text inside images: spell-check; only include text the user requested; no hallucinated copy.
  • Safety: if the API returns 400, surface the error and ask the user to reword — don't retry blindly.

Loading references

Load on demand (don't dump unprompted):

  • references/styles_and_variations.md — full enum reference for generate's --styles and --variations
  • references/prompt_recipes.md — exact prompt templates the CLI builds for icon / pattern / diagram / story
  • references/troubleshooting.md — env-var fallback order, input-file search paths, error catalog

Examples

# 4 watercolor + sketch variations of the same scene
<skill-base-dir>/scripts/nanobanana.py generate \
  "mountain landscape" --styles=watercolor,sketch --count=4

# Edit an image already in the user's cwd
<skill-base-dir>/scripts/nanobanana.py edit \
  photo.png "add sunglasses to the person"

# Favicon set
<skill-base-dir>/scripts/nanobanana.py icon \
  "mountain logo" --type=favicon --sizes=16,32,64

# Architecture diagram
<skill-base-dir>/scripts/nanobanana.py diagram \
  "microservices chat app" --type=architecture --complexity=detailed

# 5-step process story with auto-preview
<skill-base-dir>/scripts/nanobanana.py story \
  "seed growing into a tree" --steps=5 --type=process --preview

After generation, list the saved file paths back to the user — that's the actionable result.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。