بنقرة واحدة
nano-banana-flash
Generate images using Google Gemini 2.5 Flash - fast, 1024x1024, up to 3 reference images
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate images using Google Gemini 2.5 Flash - fast, 1024x1024, up to 3 reference images
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | nano-banana-flash |
| description | Generate images using Google Gemini 2.5 Flash - fast, 1024x1024, up to 3 reference images |
| user_invocable | true |
| allowed_tools | ["Bash"] |
Generate images using Google's Gemini 2.5 Flash Image model. Fast, optimized for high-volume generation.
The image is the deliverable — show it the instant it's done instead of leaving the user to hunt for a path. After saving ANY generated image, immediately open it (open <abs_path> on macOS → Preview; xdg-open <abs_path> on Linux) and surface the file to the user, before writing any explanation. Lead with the image; keep commentary short. Applies to every image path.
Activate when:
/nano-banana-flash or /nbf| Property | Value |
|---|---|
| Model ID | gemini-2.5-flash-image |
| Speed | Fast (optimized for latency) |
| Resolution | 1024x1024 default |
| Max Reference Images | 3 |
GEMINI_API_KEY in .env filepip install google-genai Pillow python-dotenvGet API key: https://aistudio.google.com/app/apikey
from google import genai
from google.genai import types
from dotenv import load_dotenv
import os
load_dotenv()
client = genai.Client(api_key=os.environ.get('GEMINI_API_KEY'))
response = client.models.generate_content(
model='gemini-2.5-flash-image',
contents='YOUR PROMPT HERE',
config=types.GenerateContentConfig(
response_modalities=['IMAGE'],
),
)
# Save the image, then launch it so the user sees it immediately
import subprocess
for part in response.parts:
if part.inline_data:
image = part.as_image()
image.save('output.png')
subprocess.run(['open', 'output.png']) # macOS (use 'xdg-open' on Linux)
print('Image saved + opened: output.png')
response = client.models.generate_content(
model='gemini-2.5-flash-image',
contents='YOUR PROMPT HERE',
config=types.GenerateContentConfig(
response_modalities=['IMAGE'],
image_config=types.ImageConfig(
aspect_ratio='16:9', # Options: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
),
),
)
SDK note: older
google-genaiversions don't exposetypes.ImageConfig. Guard it withif hasattr(types, 'ImageConfig'):and only addimage_configwhen present (otherwise omit it) so the call still runs across SDK versions.
from PIL import Image
ref_image = Image.open('reference.png')
response = client.models.generate_content(
model='gemini-2.5-flash-image',
contents=['Combine these in a surreal art style', ref_image],
config=types.GenerateContentConfig(
response_modalities=['IMAGE'],
),
)
| Ratio | Use Case |
|---|---|
1:1 | Square (social media, profile pics) |
16:9 | Landscape (presentations, thumbnails) |
9:16 | Portrait (stories, mobile) |
4:3 | Standard photo |
3:4 | Portrait photo |
21:9 | Ultrawide/cinematic |
| Use Case | Model |
|---|---|
| Quick iterations | Flash |
| Batch generation | Flash |
| Cost-sensitive | Flash |
| 4K resolution needed | Pro |
| Complex prompts | Pro |
| Character consistency | Pro |
Full docs: External_Documentation/GOOGLE_GEMINI_IMAGE_GENERATION.md
Seed a brain from a LARGE existing source by TRIAGING it, then calibrating the agent's judgment on small batches, then bulk-mining. Use when the owner says "mine my [source]", "mine this export", "calibrate the mining", "idea mining", "process my archive", or "seed my brain from this export" — pointing at a sizable export (notes-app dump, chat history, voice-note archive, bookmarks, podcast snips). Phase 0 TRIAGE: categorize the source into keep/skip bins, sample the skip-bins, get owner approval per bin, build the target list. Phase 1 CALIBRATE: small batches → present COMPACT numbered proposals (verbatim quote + the agent's call + one-line reason, no tables) → owner corrects → write every correction back into the rules (CONTENT_TAXONOMY / KEYWORD_GUIDE / INTELLECTUAL_LANDSCAPE) → draft the full Template only after the calls are approved → repeat until a batch is clean. Phase 2 SET LOOSE: process the remainder autonomously, spot-check, re-calibrate on drift. Implements "invest in structure and calibrate the
Onboard a human into THEIR own second brain — the guided interview that turns this blank template into their personalized system. Use when the user says "set this up", "let's set it up", "set up my second brain", "personalize", "personalise", "make this mine", "onboard me", "help me fill this in", "walk me through PERSONALIZE", or starts a fresh session wanting to begin. Drives the whole __FILL_FROM_USER__ fill-in via an interview. Resumable — pick up where you left off. NOT for ingesting content (use /ingest-brain-dump) — this is first-run setup.
Handles connections between related ideas. Options include creating folders, adding shared keywords, merging content, or rejecting false positives. Used when ingest-brain-dump identifies related content.
Weekly self-improvement of the HARNESS itself — not project QA. Reviews the last N days of this brain's Claude Code session traces for harness-level friction (where the owner corrected the agent, repeated permission prompts, skills that misfired or weren't used, rules/memories the agent ignored, weak sub-agent prompts), drafts a proposal of findings, and the owner reviews + applies it finding-by-finding (gated — nothing auto-applies). Uses the in-session Workflow tool to fan out over trace chunks; no external services, no API keys. Use when the owner says "/harness-review", "review the harness", "self-review", "what's the agent getting wrong", or accepts the optional offer at the end of /weekly-maintenance.
Full orchestrator for stream-of-consciousness input pasted or dictated into the Claude Code session. Pipeline: explore-second-brain (find related files) → semantic segmentation → verify-idea (dedupe check) → process-content (create Template A files) → validate_template.py → user approval → save. Use when user pastes unstructured text or dictates a voice note into chat and says "brain dump", "process this", "ingest this", "save this", "what should we do with this". One paragraph may contain 3 ideas; 5 paragraphs may be 1 idea — always semantic, never algorithmic chunking. NOT for phone inbox (use a phone-inbox ingest skill if configured). NOT for podcast snips (use a snip-processing skill if configured). NOT for bookmark exports (use a bookmarks-ingest skill if configured). For a LARGE existing source export (notes-app dump, chat history, voice-note archive), use /mine — it triages the source, then calibrates the agent's judgment on small batches before the bulk pass. Preserves the owner's exact language — no
Low-level mechanic that turns raw text into Template A/B files. Segments semantically (never algorithmic chunking), classifies each segment, creates files, runs validate_template.py. Does NOT sync from external sources — text must already be in context. Called by the ingestion skills (e.g. /ingest-example) as their file-creation stage; can also be invoked directly when user pastes content and says "make files from this", "turn this into Template A", "parse this into ideas". NOT for voice/phone inbox work (use an inbox-ingest skill), NOT for searching the brain (use explore-second-brain or semantic-search). If input has multiple distinct ideas, all are processed in one invocation.