This skill generates images with Google’s Nano-Banana model, enhancing prompts for higher quality visuals and faster creative results.
npx playbooks add skill dennisonbertram/claude-media-skills --skill nano-banana
Generate images using Google's Gemini Image models.
Before generating, always enhance the user's prompt using the techniques in [PROMPTING.md](PROMPTING.md).
[Subject] + [Style] + [Lighting] + [Composition] + [Quality]
For detailed prompting techniques, templates, and style keywords, see [PROMPTING.md](PROMPTING.md).
~/.claude/skills/nano-banana/scripts/generate.sh "your prompt here"
| Option | Description | Default |
|--------|-------------|---------|
| --output PATH | Save to specific file | ~/Pictures/nano-banana/<timestamp>.png |
| --size SIZE | Resolution: 1K, 2K, 4K | 1K |
| --aspect RATIO | Aspect ratio | 1:1 |
| --flash | Use Flash model (faster, lower quality) | Pro |
1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3
Parse the user's request and map to script options:
| User says | Script call |
|-----------|-------------|
| "Generate a cat" | generate.sh "a cat" |
| "Create a 4K image of mountains" | generate.sh "mountains" --size 4K |
| "Make a landscape wallpaper" | generate.sh "landscape" --aspect 16:9 |
| "High quality portrait of a robot" | generate.sh "portrait of a robot" --pro --aspect 3:4 |
| "Generate a sunset, save to desktop" | generate.sh "a sunset" --output ~/Desktop/sunset.png |
| "4K widescreen cyberpunk city" | generate.sh "cyberpunk city" --size 4K --aspect 16:9 |
--size--pro--aspect 16:9--aspect 9:16--output~/Pictures/nano-banana/ by defaultCheck the error log:
cat ~/.claude/skills/nano-banana/last-error.log
Verify API key:
security find-generic-password -a "$USER" -s "GEMINI_API_KEY" -w | head -c 10Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.