nano-banana-assets
v0.1.1
Published
Production image asset generation skill for Codex, Claude Code, and compatible agent runtimes using Nano Banana 2 and Nano Banana Pro.
Downloads
24
Maintainers
Readme
Nano Banana Assets
Production image assets for coding agents. This skill generates, edits, describes, and regenerates usable image assets for apps, sites, games, docs, and marketing work with Nano Banana 2 or Nano Banana Pro through the Gemini API.
Repo:
- GitHub: https://github.com/qpd-v/nano-banana-assets
- Clone URL:
https://github.com/qpd-v/nano-banana-assets.git
What It Does
- Generate hero images, icons, logos, sprites, thumbnails, posters, mockups, empty states, UI surface materials, and social art.
- Edit existing assets with targeted instructions.
- Describe an image and turn it into a one-pass reconstruction prompt.
- Regenerate a prior result with focused improvement instructions.
- Default to Nano Banana 2 unless Pro is explicitly requested or clearly better suited.
- Save every run with a unique prompt-derived image filename plus
prompt.txtandmetadata.json.
Generated Examples
Generated with this skill and committed as README examples:
![]()
Compatibility
Works on Windows, macOS, and Linux as long as the host can:
- read a skill folder with
SKILL.md - run Node 20+ or equivalent shell tooling
- reach the Gemini API
Supported install/use paths in v1:
- Codex skill folders and GitHub/local skill installs
- Claude Code skill folders
- universal/manual skill folders such as
.agent/skills - direct local CLI usage from the repo root
- npm package install via
npm install -g nano-banana-assets
Install
See docs/install.md for full instructions.
Fast path:
git clone https://github.com/qpd-v/nano-banana-assets.git
cd nano-banana-assets
npm installThen either:
- install it into a host skill directory with
node scripts/install.mjs --agent codex --scope user - or run it directly from the repo with
node scripts/cli.mjs ...
Published npm package:
npm install -g nano-banana-assetsQuick Start
- Copy
.env.exampleto.env. - Put your real
GEMINI_API_KEYin.env. - Keep
.envout of git and commit.env.example. - Run a first test:
node scripts/cli.mjs generate --prompt "A simple ripe banana on a clean white background"Optional verification commands:
node scripts/doctor.mjs --check-env
npm run release:checkModel Routing
Nano Banana 2maps togemini-3.1-flash-image-previewand is the default.Nano Banana Promaps togemini-3-pro-image-preview.- Use Pro when you need higher fidelity, stricter constraint following, or more studio-style output.
- Use NB2 for cheaper iteration and most day-to-day asset work.
Natural language that triggers Pro:
use Nano Banana Prouse Promaximum fidelityhighest precision
Common Commands
generateplan-assetgenerate-assetedit-assetdescribe-imageregenerate
Command aliases also exist for explicit model selection:
generate-pro,generate-nb2plan-asset-pro,plan-asset-nb2generate-asset-pro,generate-asset-nb2edit-asset-pro,edit-asset-nb2describe-image-pro,describe-image-nb2regenerate-pro,regenerate-nb2
Modifiers And Controls
Use these when you need tighter control:
--model--model-preference--pro/--nb2--aspect-ratio--image-sizeor--resolution--quality--candidate-count--temperature--top-p--top-k--seed--reasoning-level--google-search/--grounded
Tutorial Prompts
See docs/tutorial-prompts.md for copy-paste prompt patterns, including:
- hero image prompts
- icon and logo prompts
- UI surface material prompts
- edit and regenerate flows
- project-aware asset generation prompts
Output
Each run writes a timestamped folder under generated/ with:
- the rendered image file, renamed to a unique prompt-derived asset name
prompt.txtmetadata.json
Metadata records the model, model selection reason, controls, prompt, source references, and output path.
Examples
See:
Publish And Distribution
This repo is structured for:
- GitHub-based skill installation
- local/manual installs
- npm publication
Current distribution notes:
- npm package is live as
nano-banana-assets - public listing targets and submission notes are documented in docs/where-to-list.md
Troubleshooting
Release Validation
Release validation commands:
npm test
npm run check:syntax
npm run check:skill
npm run release:check