A Claude Code skill for generating and editing images using the Gemini CLI's nanobanana extension.
$ npx -y skills add kkoppenhaver/cc-nano-banana --agent claude-code
What's inside
A Claude Code skill for generating and editing images using the Gemini CLI's nanobanana extension.
npm install -g @google/gemini-cli
export NANOBANANA_GEMINI_API_KEY="your-api-key"
gemini extensions install https://github.com/gemini-cli-extensions/nanobanana
Copy the SKILL.md file to your Claude Code skills directory:
mkdir -p ~/.claude/skills/nano-banana
cp SKILL.md ~/.claude/skills/nano-banana/
Or clone this repository directly:
git clone https://github.com/kkoppenhaver/cc-nano-banana ~/.claude/skills/nano-banana
Once installed, Claude Code will automatically use this skill when you ask for image generation. Examples:
| Command | Description |
|---|---|
/generate | Text-to-image generation |
/edit | Modify existing images |
/restore | Repair damaged photos |
/icon | Generate app icons |
/diagram | Create flowcharts and diagrams |
/pattern | Generate seamless patterns |
/story | Create sequential/narrative images |
/nanobanana | Natural language interface |
| Option | Description |
|---|---|
--count=N | Generate N variations (1-8) |
--preview | Auto-open generated images |
--styles="style1,style2" | Apply artistic styles |
--seed=N | Seed for reproducible results |
Generated images are saved to ./nanobanana-output/ in your current working directory.
Default model: gemini-2.5-flash-image (~$0.04/image)
For higher quality output:
export NANOBANANA_MODEL=gemini-3-pro-image-preview
MIT
Contributions are welcome! Please open an issue or submit a pull request.
LICENSE README.md SKILL.md
FAQ
cc-nano-banana is a Claude Code plugin with 1 hand-picked skill for image generation work, indexed on Flowy. Install it with the command on its page. It includes cc-nano-banana. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.