/skill-madness:nano-bananafrom skill-madness
Generates images using Google's Gemini image generation API and saves them to the project. Handles product photos, banners, lifestyle shots, and batch generation with multiple aspect ratios.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate images using Google's Gemini Image Generation API and save them directly into the project.
Nano Banana is Google's native image generation built into Gemini models. It accepts text prompts and returns high-quality photorealistic images. The API returns base64-encoded image data which gets decoded and saved to disk.
The bundled script uses gemini-2.5-flash-image — Google's current image generation model. It handles product photos, hero banners, lifestyle shots, and detail close-ups well at ~$0.04/image.
Note: The script also accepts
--model flashand--model profor future model tiers as Google releases them. If those fail, fall back tostandard.
Do not pre-check for the key with env | grep or find, and never ask the user to supply a key before you have actually run the script. The script finds the key by itself, and a manual check will lie to you.
Exported GEMINI_API_KEY takes precedence. Native symlinks resolve to the canonical checkout and retain its single root .env loader. An installed copy does not inherit credentials: the owner must inject the key or explicitly select an approved root .env with ATS_ENV_FILE. Never search home/ancestor/per-skill env files or copy credentials into a bundle. Resource availability does not authorize paid image calls; obtain task/provider/budget approval before generation.
The workflow is just: run the script. It is self-sufficient about the key. The only trustworthy signal that the key is truly absent is the script exiting with its own GEMINI_API_KEY ... is not set error (which also prints the .env files it searched). Treat that error — and nothing else — as "key missing." Only then guide the user:
GEMINI_API_KEY=... to the skills repo-root .env (see .env.example), or export GEMINI_API_KEY=... in the shell.When the user asks for image generation, figure out exactly what's needed:
The script lives under this skill's actual resource root. Set SKILL_ROOT from the installed prompt's resource contract (or the canonical skill directory):
# Resolve SKILL_ROOT from the actual installed resource root / .ats-runtime.json.
# Do not assume Claude home. Reading --help is offline; generation is paid.
python3 "$SKILL_ROOT/scripts/generate_image.py" --help
Then run it:
python3 <script-path>/generate_image.py \
--prompt "the full prompt text" \
--output "path/to/output.png" \
--aspect-ratio "3:4" \
--model standard \
--resolution 2K
Parameters:
--prompt — The full prompt text (quote it carefully in the shell)--output — Where to save the file (use .png — the API returns PNG data)--aspect-ratio — Match the intended use (default: 3:4)--model — standard (default), flash, or pro--resolution — 512, 1K, 2K (default), or 4KFor batch generation, run images sequentially — the API has rate limits so avoid parallel calls.
After generation:
GEMINI_API_KEY ... is not set — never your own grep/find (see Setup for why that lies). If it genuinely is missing, guide the user to Google AI Studio and to add it to the repo-root .env.--model standard which is the most reliableGood prompts make the difference between generic and stunning output. When helping users write prompts:
Structure: Open with shot type and subject, then add material/texture details, setting, lighting, and composition notes.
Example — Product shot:
Create a photorealistic editorial product photograph of a leather messenger bag laid on an aged oak table. The bag is made from full-grain vegetable-tanned leather with visible patina and hand-stitched details. Warm side lighting from a tall window casts soft directional shadows. Shot on a medium format camera with natural lighting. No AI artifacts. Photorealistic. Clean composition, suitable for e-commerce product grid.
Example — Hero banner:
A dramatic wide-angle photograph of a mountain trail at golden hour. Warm amber sunlight cuts through pine trees, casting long shadows across the rocky path. Atmospheric fog in the valley below creates depth. Cinematic composition, editorial quality. Photorealistic.
Prompt modifiers (append as needed):
The key elements that improve output quality:
references/imagen-4-prompting.md — deep-dive prompt engineering guide for Imagen 4 (the model behind Nano Banana). Read this when default output isn't hitting the mark, or when working with text-in-image, complex compositions, or specific photography styles. Covers the SCULPT framework, contextual priming techniques, the enhancePrompt parameter, and natural-language patterns that beat keyword soup.references/example-project-config.md — pattern for documenting per-project image conventions (paths, prompt style guide, anti-pattern modifiers, tracking spreadsheet). Suggest this to the user when starting a project that will generate many images, so the project's prompts stay consistent across sessions.What SKILL.md sets; muted values are Claude Code's defaults
87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/architecture-rescueFind deepening opportunities in a codebase (shallow modules, missing seams, leaky abstractions) and present them as numbered candidates for a grilling session before any interface is proposed. Use when the code feels tangled or hard to test. Trigger on "improve architecture", "rescue this codebase", "find refactoring opportunities", "ball of mud", "shallow modules"./artifact-publishPublish a visual or interactive result as a Claude Code Artifact: a self-contained HTML or Markdown page on a private, shareable claude.ai link instead of a local file. Use when a dashboard, report, chart, diagram or prototype reads better as a page. Not the claude.ai design canvas (claude-design-brief). Trigger on "publish this as an artifact", "make a shareable link", "give me a link to this"./babysitKeep an open PR healthy on a schedule: poll for review activity, auto-address bot and Copilot nits and routine rebases, re-run the gate, until the PR is mergeable. HITL on anything irreversible; never auto-merges. The scheduled loop around git-pr-feedback, run as "/loop 5m /babysit". Trigger on "babysit my PR", "watch this PR", "keep my PR green", "keep the PR rebased"./backend-agentBuild API servers, business logic and data layers against authored contracts. Use in native orchestrator dispatch or explicitly requested solo backend implementation; load it when the orchestrator assigns this role or the user asks for it.npx claudepluginhub ivy00johns/skill-madness --plugin skill-madnessOther plugins' skills for the same job