{"id":"nanobanana-skill","name":"nanobanana-skill","summary":"Google Gemini(ナノバナナ)を使って画像を作成・編集できます。これはデフォルトの画像スキルで、ユーザーが画像の生成、作成、編集を依頼し、他のプロバイダーに名前を付けない場合に使用します。","body":"# Nanobanana Image Generation Skill\n\nGenerate or edit images using Google Gemini API through the nanobanana tool.\n\n## Requirements\n\n1. **GEMINI_API_KEY**: Must be configured in `~/.nanobanana.env` or `export GEMINI_API_KEY=<your-api-key>`\n2. **Python3 with dependent packages installed**: google-genai, Pillow, python-dotenv. They could be installed via `python3 -m pip install -r ${CLAUDE_SKILL_DIR}/requirements.txt` if not installed yet.\n3. **Executable**: `${CLAUDE_SKILL_DIR}/nanobanana.py`\n\n## Instructions\n\n### For image generation\n\n1. Ask the user for:\n   - What they want to create (the prompt)\n   - Desired aspect ratio/size (optional, defaults to 9:16 portrait)\n   - Output filename (optional, auto-generates UUID if not specified)\n   - Model preference (optional, defaults to gemini-3.1-flash-image-preview)\n   - Resolution (optional, defaults to 1K)\n\n2. Run the nanobanana script with appropriate parameters:\n\n   ```bash\n   python3 ${CLAUDE_SKILL_DIR}/nanobanana.py --prompt \"description of image\" --output \"filename.png\"\n   ```\n\n3. Show the user the saved image path when complete\n\n### For image editing\n\n1. Ask the user for:\n   - Input image file(s) to edit\n   - What changes they want (the prompt)\n   - Output filename (optional)\n\n2. Run with input images:\n\n   ```bash\n   python3 ${CLAUDE_SKILL_DIR}/nanobanana.py --prompt \"editing instructions\" --input image1.png image2.png --output \"edited.png\"\n   ```\n\n## Available Options\n\n### Aspect Ratios (--size)\n\n- `1024x1024` (1:1) - Square\n- `832x1248` (2:3) - Portrait\n- `1248x832` (3:2) - Landscape\n- `864x1184` (3:4) - Portrait\n- `1184x864` (4:3) - Landscape\n- `896x1152` (4:5) - Portrait\n- `1152x896` (5:4) - Landscape\n- `768x1344` (9:16) - Portrait (default)\n- `1344x768` (16:9) - Landscape\n- `1536x672` (21:9) - Ultra-wide\n\n### Models (--model)\n\n- `gemini-3.1-flash-image-preview` (default) - Latest, fast generation\n- `gemini-3-pro-image-preview` - Higher quality, supports thinking/reasoning\n\n### Resolution (--resolution)\n\n- `1K` (default)\n- `2K`\n- `4K`\n\n### Other Options\n\n- `--no-search` - Disable Google Search grounding (enabled by default)\n- `--no-think` - Disable thinking/reasoning mode\n\n## Examples\n\n### Generate a simple image\n\n```bash\npython3 ${CLAUDE_SKILL_DIR}/nanobanana.py --prompt \"A serene mountain landscape at sunset with a lake\"\n```\n\n### Generate with specific size and output\n\n```bash\npython3 ${CLAUDE_SKILL_DIR}/nanobanana.py \\\n  --prompt \"Modern minimalist logo for a tech startup\" \\\n  --size 1024x1024 \\\n  --output \"logo.png\"\n```\n\n### Generate landscape image with high resolution\n\n```bash\npython3 ${CLAUDE_SKILL_DIR}/nanobanana.py \\\n  --prompt \"Futuristic cityscape with flying cars\" \\\n  --size 1344x768 \\\n  --resolution 2K \\\n  --output \"cityscape.png\"\n```\n\n### Edit existing images\n\n```bash\npython3 ${CLAUDE_SKILL_DIR}/nanobanana.py \\\n  --prompt \"Add a rainbow in the sky\" \\\n  --input photo.png \\\n  --output \"photo-with-rainbow.png\"\n```\n\n### Use pro model for higher quality\n\n```bash\npython3 ${CLAUDE_SKILL_DIR}/nanobanana.py \\\n  --prompt \"Detailed portrait of a cat in watercolor style\" \\\n  --model gemini-3-pro-image-preview \\\n  --output \"cat-portrait.png\"\n```\n\n## Error Handling\n\nIf the script fails:\n\n- Check that `GEMINI_API_KEY` is exported or set in ~/.nanobanana.env\n- Verify input image files exist and are readable\n- Ensure the output directory is writable\n- If no image is generated, try making the prompt more specific about wanting an image\n\n## Best Practices\n\n1. Be descriptive in prompts - include style, mood, colors, composition\n2. For logos/graphics, use square aspect ratio (1024x1024)\n3. For social media posts, use 9:16 for stories or 1:1 for posts\n4. For wallpapers, use 16:9 or 21:9\n5. Start with 1K resolution for testing, upgrade to 2K/4K for final output\n6. Use gemini-3-pro-image-preview for best quality, gemini-3.1-flash-image-preview (default) for speed","author":"@feiskyer","ownerProfile":null,"authorContacts":null,"sourceUrl":"https://github.com/feiskyer/claude-code-settings/tree/main/skills/nanobanana-skill","license":"MIT","category":"coding","lang":"en","tokens":1113,"stars":0,"calls30d":2,"claimed":false,"visibility":"public","origin":"crawler","version":"0.1.0","createdAt":"2026-08-22","updatedAt":"2026-08-22","files":[{"path":"nanobanana.py","size":5204,"sha256":"1e940b0d798034b881303ba08327a9eae5e8ebc9526e706eb545581e2e3d328f"},{"path":"requirements.txt","size":47,"sha256":"c6e83160c50d16021c72ab93212431ff9327d84d6283a3a1daaaaf728dce70d9"}],"requires":{"mcp":[],"tools":["Read","Write","Glob","Grep","Task","Bash(cat:*)","Bash(ls:*)","Bash(tree:*)","Bash(python3:*)"]},"safety":{"flags":[],"scannedAt":"2026-08-22","hasScripts":true,"networkEndpoints":[]}}