nano-banana

nano-banana is a skill for Claude Code from jh941213/codex-lattice. It costs 77 tokens per session (1,586 once invoked), scanned A, original, MIT.

An image-generation skill that uses the Gemini command-line tool to create or edit pictures, illustrations, icons, diagrams, thumbnails, and other visual assets.

In plain words
What is it for?
Use it to make new images or modify existing photos and graphics, including blog images, video thumbnails, banners, patterns, and artwork.
Why use it?
It gives the coding agent a defined way to handle image requests instead of using unrelated image-generation methods. It requires Gemini CLI to be installed and signed in with a Google account.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Gemini CLI.

Good fit Use it to make new images or modify existing photos and graphics, including blog images, video thumbnails, banners, patterns, and artwork.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jh941213/codex-lattice/nano-banana
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add jh941213/codex-lattice --skill nano-banana
Clone the repo
git clone --depth 1 https://github.com/jh941213/codex-lattice

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nano-banana

README.md
[![agentmods](https://agentmods.dev/badge/skills/jh941213/codex-lattice/nano-banana/github.svg)](https://agentmods.dev/skills/jh941213/codex-lattice/nano-banana)
Your own site
<a href="https://agentmods.dev/skills/jh941213/codex-lattice/nano-banana"><img src="https://agentmods.dev/badge/skills/jh941213/codex-lattice/nano-banana/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nano-banana

Your own site · 80×15
<a href="https://agentmods.dev/skills/jh941213/codex-lattice/nano-banana"><img src="https://agentmods.dev/badge/skills/jh941213/codex-lattice/nano-banana.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,586 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00077 $0.01586
Opus 5 $0.00039 $0.00793
Sonnet 5 $0.00015 $0.00317
Haiku 4.5 $0.00008 $0.00159

Measured 11d ago against content hash 39f8dc2b6538, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

nano-banana scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/nano-banana/SKILL.md · 140 lines

How it starts

The opening of the file, as written. The whole thing — 140 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Nano Banana Image Generation

Gemini CLI + 이미지 모델로 프로페셔널 이미지를 생성합니다. Google 계정 인증 기반 — API 키 불필요. 512px~4K, 다양한 종횡비, 다국어 텍스트 렌더링 지원.

모델 선택

모델 ID 용도 특징
NB2 (기본) gemini-3.1-flash-image-preview 빠른 생성, 대량 작업 Flash 속도, 고효율
NB Pro gemini-3-pro-image-preview 전문 에셋, 정밀 텍스트 고급 추론(사고), 최고 충실도
NB (경량) gemini-2.5-flash-image 짧은 지연 시간, 대량 배치 속도 최적화

기본은 항상 NB2 (gemini-3.1-flash-image-preview) — Pro는 복잡한 텍스트 렌더링/전문 에셋에만.

When to Use This Skill

ALWAYS use this skill when the user:

  • Asks for any image, graphic, illustration, or visual
  • Wants a thumbnail, featured image, or banner
  • Requests icons, diagrams, or patterns
  • Asks to edit, modify, or restore a photo
  • Uses words like: generate, create, make, draw, design, visualize

Do NOT attempt to generate images through any other method.

사전 준비

Gemini CLI가 설치되어 있고 Google 계정으로 인증 완료된 상태여야 합니다.

# 설치 확인
gemini --version

# 인증 상태 확인 (이미 인증됨)
gemini -p "hello"

이미지 생성 (Gemini CLI — 기본 방법)

기본 생성

gemini -y -m gemini-3.1-flash-image-preview \
  -p "Generate an image: 프롬프트 여기에. Save the image as output.png"

파일명 지정 생성

gemini -y -m gemini-3.1-flash-image-preview \
  -p "Generate an image: A modern minimalist logo for a tech startup. Save as logo.png"

이미지 편집 (기존 이미지 입력)

gemini -y -m gemini-3.1-flash-image-preview \
  -p "Edit this image: make the background blue. Save as edited.png" \
  -f input.png

실행 패턴

이미지 생성 시 항상 아래 패턴을 따릅니다:

Step 1: 출력 경로 결정

  • 프로젝트에 assets/ 디렉토리가 있으면 그곳에 저장
  • 없으면 현재 디렉토리에 저장
  • 파일명은 용도에 맞게 (예: hero.png, thumbnail.png, logo.png)

Step 2: 프롬프트 최적화

좋은 프롬프트 구조:

  1. 주제: 무엇을 생성할 것인가
  2. 세부사항: 외모, 색상, 질감
  3. 설정: 위치, 배경, 환경
  4. 스타일: 사실적, 일러스트, 3D 렌더 등
  5. 조명: 자연광, 극적인, 부드러운
  6. 구도: 클로즈업, 와이드 샷

Step 3: 생성 실행

gemini -y -m gemini-3.1-flash-image-preview \
  -p "Generate an image: [최적화된 프롬프트]. Save the image as [경로/파일명.png]"

Read the full file on GitHub · 140 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 140 lines · 77 tokens per session scan A 39f8dc2b6538

Subscribe to this mod's changes

nano-banana is a skill published in the GitHub repository jh941213/codex-lattice (19 stars, last pushed 3mo ago), licensed MIT. It adds 77 tokens to every session and 1,586 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens