Skip to content
cccskills
FreePublished on GitHub

nanobanana

Gemini画像生成APIでテキストから画像生成、既存画像の編集を行うスキル。「画像を生成して」「イラストを作って」「写真を編集して」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

Works withGemini
See how to install

Files included (5)

  • SKILL.md2.7 KB
  • agents/openai.yaml144 B
  • scripts/nanobanana.py5.4 KB
  • SKILL.en.md2.6 KB
  • SKILL.es.md2.9 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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

ParameterRequiredDefaultDescription
promptYes-Generation/edit instruction
--input, -iNo-Input image(s) for editing
--output, -oNoautoOutput path
--aspect-ratio, -arNo16:9Output ratio
--session, -sNo-Session name for organizing output
--force-arNofalseForce 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 foundGEMINI_API_KEY または GOOGLE_API_KEY を環境変数に設定
Input image not found--input に正しいファイルパスを指定。相対パスは実行ディレクトリ基準

Success Criteria

  • 指定アスペクト比で画像が生成されている
  • 編集モード時に元画像への変更が正しく反映されている
  • エラーなく完了している

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

A/Bテストや実験の設計・実装を支援するスキル。 「A/Bテストを設計して」「スプリットテストしたい」「仮説を立ててテストしたい」「バリアントを比較」等のリクエストで発動。 トラッキング実装は analytics-tracking を参照。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

マルチエージェントシステムのアーキテクチャ設計ツールキット。 「エージェントを設計して」「マルチエージェント構成」「エージェントのアーキテクチャ」「オーケストレーション設計」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campのローカル環境セットアップを確認するスキル。 「セットアップ確認」「環境チェック」「初期設定できてる?」「インストール確認」「依存関係チェック」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campのスラッシュコマンドをCodexでルーティングするスキル。 「/start-0-1を実行」「スラッシュコマンドを使いたい」「コマンドルーティング」「Cursorのコマンドを使いたい」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campの環境変数・認証情報を安全に管理するスキル。 「APIキーを設定」「.envを管理」「環境変数の設定」「credential managerを使いたい」「秘密情報の管理」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

ai-agent-campリポジトリの案内・オリエンテーションスキル。 「リポジトリ案内」「次のレッスンは?」「どこから始める」「ツールの違い」「aiagent概要」等のリクエストで発動。

The English summary is being prepared. Showing the original description.

minicoohei/ai-agent-camp346Updated Oct 7, 2026

See all skills by minicoohei

Report a problem with this skill