nano-banana-image-gen
Skill8 starsChanged 7 months agoMITView on GitHub
Nano Banana 2(Google Gemini gemini-3.1-flash-image-preview)を使って画像を生成するスキル。「画像を生成して」「〇〇のイラストを作って」「Nano Bananaで画像を作って」「グラレコ風の画像を生成して」などのリクエストで使用する。プロンプトを受け取りpythonスクリプトを実行、タイムスタンプ付きPNGを images/generated/ に出力する。
- Reads credentials
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- kevinbadi/ai-os-skillstheir own version, first seen Mar 28, 2026
- ozten/skillstheir own version, first seen Feb 26, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- kevinbadi/ai-os-skills★ 69same name
- ozten/skills★ 7same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- claude-md-managerSkill
- codebase-onboardingSkill
- coding-rulesSkill
- design-md-generatorSkill
- flutter-riverpod-archSkill
- image-compressorSkill
- knowledge-graph-initSkill
- media-transcriberSkill
- meti-ai-guidelineSkill
- nextjs-better-auth-postgres-dockerSkill
The file
Files
Nano Banana 画像生成
実行手順
- ユーザーのリクエストから画像生成プロンプトを確定する
- マルチモーダル指示(フレーム画像など入力画像あり)の場合は
--image引数を付ける - 以下のコマンドを実行する
テキストのみ:
python .claude/skills/nano-banana-image-gen/scripts/nano_banana_gen.py "プロンプトテキスト"画像+テキスト:
python .claude/skills/nano-banana-image-gen/scripts/nano_banana_gen.py "プロンプトテキスト" --image "画像パス"画像複数+テキスト:
python .claude/skills/nano-banana-image-gen/scripts/nano_banana_gen.py "プロンプトテキスト" --image "画像1" --image "画像2"- 出力パスを確認してユーザーに報告する
設定
プロジェクトルートの .env に以下の環境変数を設定する:
GEMINI_API_KEY=your_api_key_here
GENERATED_IMAGE_OUTPUT_PATH=images/generatedセキュリティ: .env をプロジェクトルートに置く場合は、settings.json の denyRead に .env を追加してAIが読み込めないよう設定すること。
// .claude/settings.json
{
"permissions": {
"deny": ["Read(.env)", "Read(.env.*)"]
}
}| 変数名 | 説明 |
GEMINI_API_KEY | Google Gemini APIキー(必須) |
GENERATED_IMAGE_OUTPUT_PATH | 出力先ディレクトリ(デフォルト: images/generated) |
出力
- ファイル名:
YYYYMMDD_HHMMSS.png - 保存先: プロジェクトルートの
images/generated/
依存パッケージ確認
初回エラー時は以下でインストール:
pip install google-genai pillow python-dotenvDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

