duotify/githubclawtoolkit/gemini-nanobanana
Claude Code and agent skill by duotify/githubclawtoolkit
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when users ask to generate, edit, or compose images with Gemini Nano Banana 2, including text-to-image, image editing, multi-image composition, grounding, and output sizing/saving controls.
Install
npx vskill@latest install duotify/githubclawtoolkit/gemini-nanobananaSKILL.md
Do this first
- Use a Node.js wrapper (
@google/genai) as the primary flow (multi-turn edits, grounding, advancedgenerationConfig). - Use
scripts/gemini-nanobanana-cli.jsfor quick single-turn generation/editing runs. - Do not teach raw
curl; keep guidance in JS CLI/wrapper form.
Enforce these defaults
- API key source:
GEMINI_NANOBANANA_API_KEYwith fallbackGEMINI_API_KEY. - Default model:
gemini-3.1-flash-image-preview(allow env override viaGEMINI_NANOBANANA_MODEL). - Reference images: support up to 14 total.
- Thinking strength: configurable (
minimal|low|medium|high), default High. - Aspect ratio: default Auto.
- Resolution: default 1K.
- Output mode: default Images only.
- Google Search grounding tool: default Disabled; enable with
--google-searchwhen needed. - Output directory: default
nanobanana-output/, unless the prompt explicitly asks for another location. - 512px rule: send
imageConfig.imageSizeas string"512"in API calls (never numeric512).
Read references intentionally
- Start in `references\image-generation-api.md` for operational payload rules, model behavior, sizing, thinking, grounding, and limits.
- Use `references\sources.md` to verify source provenance and jump to upstream docs.
- For canonical API behavior, read:
- Gemini image-generation docs
- Aspect ratios and image size
- Thinking process
- Grounding with Google Search
- Grounding with Google Image Search
Output formatting rules
After successful generation, always report results in this format:
✅ 圖片已產出- Each image as a markdown embed with absolute GitHub URL:

- File metadata: format (
JPEG/PNG), dimensions, file size - Artifact metadata block (enables Telegram relay to send the actual photo):
<!-- githubclaw-artifacts: {"images":[{"branch":"{BRANCH}","path":"{relative_path}"}],"html":[]} -->
Example (single image)
Assuming GITHUB_REPO=test/baoclaw-5, BRANCH=issue-3:
Example (multiple images)
Why this format
- GitHub Issue comments require absolute URLs to render images inline (relative paths won't display).
- Telegram relay detects
githubclaw-artifactsmetadata → downloads image via GitHub API → sends as photo. ?raw=trueensures GitHub serves raw image bytes instead of the HTML file viewer.
Execution pattern
- Default to Node.js wrapper flows for regular usage, especially when payload control is needed.
- Quick path (agent runs from
issue-N/; resolve the repo root first): REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || echo "../..")then
node "$REPO_ROOT/.agents/skills/gemini-nanobanana/scripts/gemini-nanobanana-cli.js" --prompt "..."
- Add references via repeated
-i/--image(up to 14). - Enable grounding via
--google-searchwhen prompt needs fresh web context. - The API key (
GEMINI_NANOBANANA_API_KEY/GEMINI_API_KEY) is injected by the workflow environment; do not hardcode it. The CLI reads it automatically from the environment.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gemini-nanobanana/SKILL.md
Popularity
- Repository stars
- 244
- Repository forks
- 51
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 3 Jun 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/duotify/githubclawtoolkit/gemini-nanobanana)