Skip to content

Commit 1611fe1

Browse files
committed
Add nanobanana skill and update logo/banner-creator dependencies
- Add nanobanana skill (Gemini 3 Pro Image / Nano Banana Pro) - generate.py: single image generation with aspect ratio and size options - batch_generate.py: batch generation with auto-delay - prompts.md: prompt reference guide - Update logo-creator to use nanobanana scripts instead of MCP - Update banner-creator to use nanobanana scripts instead of MCP - Add nanobanana as dependency for logo-creator and banner-creator - Update auth requirements to include GEMINI_API_KEY
1 parent e682f6b commit 1611fe1

7 files changed

Lines changed: 922 additions & 43 deletions

File tree

skills.json

Lines changed: 49 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@
214214
"icon": "image",
215215
"color": "8B5CF6",
216216
"triggers": ["logo", "brand", "icon", "favicon", "mascot", "emblem", "create logo", "design logo"],
217-
"dependencies": [],
217+
"dependencies": ["nanobanana"],
218218
"auth": {
219219
"required": true,
220220
"type": "api_key",
221-
"env_var": "REMOVE_BG_API_KEY, RECRAFT_API_KEY",
222-
"note": "Requires remove.bg API key and Recraft API key for background removal and SVG conversion"
221+
"env_var": "GEMINI_API_KEY, REMOVE_BG_API_KEY, RECRAFT_API_KEY",
222+
"note": "Requires Gemini API key for image generation, remove.bg and Recraft API keys for background removal and SVG conversion"
223223
},
224224
"install": {
225225
"user": {
@@ -237,7 +237,7 @@
237237
}
238238
},
239239
"commands": [
240-
"nano-banana-pro___generate_image(prompt, aspectRatio, fileName)",
240+
"python3 <nanobanana>/scripts/batch_generate.py \"{prompt}\" -n 20 --ratio 1:1 -d ./logos -p logo",
241241
"python3 scripts/crop_logo.py {input.png} {output.png}",
242242
"python3 scripts/remove_bg.py {input.png} {output.png}",
243243
"python3 scripts/vectorize.py {input.png} {output.svg}"
@@ -254,11 +254,12 @@
254254
"icon": "image",
255255
"color": "F59E0B",
256256
"triggers": ["banner", "header", "hero image", "cover image", "create banner", "github banner", "twitter header", "readme banner"],
257-
"dependencies": [],
257+
"dependencies": ["nanobanana"],
258258
"auth": {
259-
"required": false,
260-
"type": null,
261-
"note": "Uses nano-banana-pro for image generation (no additional API keys needed)"
259+
"required": true,
260+
"type": "api_key",
261+
"env_var": "GEMINI_API_KEY",
262+
"note": "Requires Gemini API key for image generation (get from aistudio.google.com/apikey)"
262263
},
263264
"install": {
264265
"user": {
@@ -276,13 +277,52 @@
276277
}
277278
},
278279
"commands": [
279-
"nano-banana-pro___generate_image(prompt, aspectRatio: '21:9', fileName)",
280+
"python3 <nanobanana>/scripts/batch_generate.py \"{prompt}\" -n 20 --ratio 21:9 -d ./banners -p banner",
280281
"python3 scripts/crop_banner.py {input.png} {output.png} --ratio 2:1 --width 1280"
281282
],
282283
"links": {
283284
"github": "https://github.com/ReScienceLab/opc-skills/tree/main/skills/banner-creator",
284285
"example": "https://github.com/ReScienceLab/opc-skills/blob/main/skills/banner-creator/examples/opc-banner-creation.md"
285286
}
287+
},
288+
{
289+
"name": "nanobanana",
290+
"version": "1.0.0",
291+
"description": "Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro). Supports text-to-image, image editing, aspect ratios, and 2K/4K output.",
292+
"icon": "image",
293+
"color": "FFD700",
294+
"triggers": ["generate image", "create image", "nano banana", "nanobanana", "gemini image", "AI image"],
295+
"dependencies": [],
296+
"auth": {
297+
"required": true,
298+
"type": "api_key",
299+
"env_var": "GEMINI_API_KEY",
300+
"note": "Get API key from Google AI Studio (aistudio.google.com/apikey)"
301+
},
302+
"install": {
303+
"user": {
304+
"claude": "curl -fsSL https://raw.githubusercontent.com/ReScienceLab/opc-skills/main/install.sh | bash -s -- -t claude nanobanana",
305+
"droid": "curl -fsSL https://raw.githubusercontent.com/ReScienceLab/opc-skills/main/install.sh | bash -s -- -t droid nanobanana",
306+
"opencode": "curl -fsSL https://raw.githubusercontent.com/ReScienceLab/opc-skills/main/install.sh | bash -s -- -t opencode nanobanana",
307+
"codex": "curl -fsSL https://raw.githubusercontent.com/ReScienceLab/opc-skills/main/install.sh | bash -s -- -t codex nanobanana"
308+
},
309+
"project": {
310+
"claude": "curl -fsSL https://raw.githubusercontent.com/ReScienceLab/opc-skills/main/install.sh | bash -s -- -t claude -p nanobanana",
311+
"droid": "curl -fsSL https://raw.githubusercontent.com/ReScienceLab/opc-skills/main/install.sh | bash -s -- -t droid -p nanobanana",
312+
"cursor": "curl -fsSL https://raw.githubusercontent.com/ReScienceLab/opc-skills/main/install.sh | bash -s -- -t cursor -p nanobanana",
313+
"opencode": "curl -fsSL https://raw.githubusercontent.com/ReScienceLab/opc-skills/main/install.sh | bash -s -- -t opencode -p nanobanana",
314+
"codex": "curl -fsSL https://raw.githubusercontent.com/ReScienceLab/opc-skills/main/install.sh | bash -s -- -t codex -p nanobanana"
315+
}
316+
},
317+
"commands": [
318+
"python3 scripts/generate.py \"{prompt}\" -o {output.png}",
319+
"python3 scripts/generate.py \"{prompt}\" -i {input.jpg} -o {output.png}",
320+
"python3 scripts/batch_generate.py \"{prompt}\" -n 20 -d ./images -p image"
321+
],
322+
"links": {
323+
"github": "https://github.com/ReScienceLab/opc-skills/tree/main/skills/nanobanana",
324+
"docs": "https://ai.google.dev/gemini-api/docs/image-generation"
325+
}
286326
}
287327
]
288328
}

skills/banner-creator/SKILL.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ Create professional banners through AI image generation with an iterative design
1818

1919
## Prerequisites
2020

21-
**Required Tools:**
22-
- `nano-banana-pro___generate_image` - AI image generation
21+
**Required API Keys (set in environment):**
22+
- `GEMINI_API_KEY` - Get from [Google AI Studio](https://aistudio.google.com/apikey)
23+
24+
**Required Skills:**
25+
- `nanobanana` - AI image generation (Gemini 3 Pro Image)
26+
27+
**Optional Tools:**
2328
- `chrome-devtools` MCP - For previewing banners in browser
2429

2530
## File Output Location
@@ -79,31 +84,27 @@ Before generating, gather requirements from user:
7984

8085
### Step 2: Generate Banner Variations
8186

82-
Generate 20 banner variations using `nano-banana-pro___generate_image`:
87+
Generate 20 banner variations using the `nanobanana` skill:
8388

84-
```
85-
nano-banana-pro___generate_image(
86-
prompt: "{style} banner for {brand}, {description}, {text elements}",
87-
aspectRatio: "21:9",
88-
fileName: "/path/to/.skill-archive/banner-creator/<date-name>/banner-01.png"
89-
)
89+
```bash
90+
# Generate single banner
91+
python3 <nanobanana_skill_dir>/scripts/generate.py "{style} banner for {brand}, {description}, {text elements}" \
92+
--ratio 21:9 -o .skill-archive/banner-creator/<date-name>/banner-01.png
93+
94+
# Batch generate 20 banners
95+
python3 <nanobanana_skill_dir>/scripts/batch_generate.py "{style} banner for {brand}, {description}, {text elements}" \
96+
-n 20 --ratio 21:9 -d .skill-archive/banner-creator/<date-name> -p banner
9097
```
9198

9299
**Guidelines:**
93100
- Generate at `21:9` ratio (widest available), crop later to target
94-
- Generate in batches of 10 (API rate limit: 20/minute)
95-
- Wait 60 seconds between batches if hitting limits
101+
- Use batch_generate.py for multiple variations (includes auto-delay)
96102
- Use sequential naming: `banner-01.png`, `banner-02.png`, etc.
97103

98-
**Character Consistency:**
99-
If incorporating an existing logo character, use the `image` parameter:
100-
```
101-
nano-banana-pro___generate_image(
102-
prompt: "...",
103-
aspectRatio: "21:9",
104-
image: "/path/to/existing-logo.png",
105-
fileName: "..."
106-
)
104+
**Image Editing (for incorporating existing logo):**
105+
```bash
106+
python3 <nanobanana_skill_dir>/scripts/generate.py "add {logo character} to the left side of the banner" \
107+
-i /path/to/existing-logo.png --ratio 21:9 -o banner-with-logo.png
107108
```
108109

109110
### Step 3: Create HTML Preview
@@ -189,7 +190,7 @@ Abstract {style} banner, {colors} gradient, geometric patterns, modern tech feel
189190
{Style} illustration banner, {scene description}, {character} in {action}, "{brand}" text overlay, {colors}
190191
```
191192

192-
### Aspect Ratios for nano-banana
193+
### Supported Aspect Ratios
193194

194195
Generate at widest ratio, then crop:
195196
- `21:9` - Ultra-wide (recommended for generation)

skills/logo-creator/SKILL.md

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ Create professional logos through AI image generation with an iterative design p
1919
## Prerequisites
2020

2121
**Required API Keys (set in environment):**
22+
- `GEMINI_API_KEY` - Get from [Google AI Studio](https://aistudio.google.com/apikey)
2223
- `REMOVE_BG_API_KEY` - Get from [remove.bg](https://www.remove.bg/api)
2324
- `RECRAFT_API_KEY` - Get from [recraft.ai](https://www.recraft.ai/)
2425

25-
**Required Tools:**
26-
- `nano-banana-pro___generate_image` - AI image generation
26+
**Required Skills:**
27+
- `nanobanana` - AI image generation (Gemini 3 Pro Image)
28+
29+
**Optional Tools:**
2730
- `chrome-devtools` MCP - For previewing logos in browser
2831

2932
## File Output Location
@@ -87,19 +90,20 @@ Before generating, gather requirements from user:
8790

8891
### Step 2: Generate Logo Variations
8992

90-
Generate 20 logo variations (default) using `nano-banana-pro___generate_image`:
93+
Generate 20 logo variations (default) using the `nanobanana` skill:
9194

92-
```
93-
nano-banana-pro___generate_image(
94-
prompt: "{style} logo for {brand}, {description}, {colors}",
95-
aspectRatio: "1:1",
96-
fileName: "/path/to/project/logos/logo-01.png"
97-
)
95+
```bash
96+
# Generate single logo
97+
python3 <nanobanana_skill_dir>/scripts/generate.py "{style} logo for {brand}, {description}, {colors}" \
98+
--ratio 1:1 -o .skill-archive/logo-creator/<date-name>/logo-01.png
99+
100+
# Batch generate 20 logos
101+
python3 <nanobanana_skill_dir>/scripts/batch_generate.py "{style} logo for {brand}, {description}, {colors}" \
102+
-n 20 --ratio 1:1 -d .skill-archive/logo-creator/<date-name> -p logo
98103
```
99104

100105
**Guidelines:**
101-
- Generate in batches of 10 (API rate limit: 20/minute)
102-
- Wait 60 seconds between batches if hitting limits
106+
- Use batch_generate.py for multiple variations (includes auto-delay)
103107
- Save to `.skill-archive/logo-creator/<yyyy-mm-dd-summaryname>/` directory
104108
- Use sequential naming: `logo-01.png`, `logo-02.png`, etc.
105109

@@ -200,9 +204,9 @@ Cute {animal/character} mascot logo, friendly expression, {style} style, {colors
200204
Letter "{letter}" logo, modern typography, {style} design, {colors}, clean professional look
201205
```
202206

203-
### Aspect Ratios for nano-banana
207+
### Supported Aspect Ratios
204208

205-
- `1:1` - Square
209+
- `1:1` - Square (default for logos)
206210
- `2:3`, `3:2` - Portrait/Landscape
207211
- `3:4`, `4:3` - Standard
208212
- `4:5`, `5:4` - Photo

0 commit comments

Comments
 (0)