/mays:gemini-image-generatorfrom mays
Generates or edits raster images via Google's Nano Banana model through the Antigravity CLI. Use when the user mentions Gemini, Nano Banana, or Antigravity.
Ships in mays. 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.
The Antigravity CLI (agy) has a built-in generate_image tool backed by Google's Nano Banana model. This skill wraps one headless agy call around that tool, copies the image out of the Antigravity brain directory, and verifies the file. No API key is needed; agy uses its own Antigravity login.
Delegate the run to a general-purpose subagent pinned to model: "sonnet". A run takes about 15 to 30 seconds and the result is a file check, so the session must not block on it. Give the subagent the exact command and the exit codes below.
"${CLAUDE_SKILL_DIR}/scripts/generate.sh" \
--prompt "<image description>" \
--output <path>.jpg \
[--aspect 16:9] [--reference <image>]... [--open]
--prompt: describe subject, composition, action, location, and style. The Prompting section lists Google's guidance.--output: the final path, ending in .jpg, .jpeg, or .png. The script creates the parent directory and refuses to replace an existing file.--aspect: one of 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, or 16:9. The default is 1:1.--reference: passes a local image to edit, blend, or use as a style reference. Repeat it up to 3 times. Say in the prompt which role each reference plays and what must stay unchanged. In testing, a color-only edit kept the composition, background, and aspect ratio.--model: the agy driver model that calls generate_image. The default gemini-3.8-flash-low is the cheapest slug and drives the tool in about 15 seconds. The driver never changes the image model.--timeout: seconds before agy gives up. The default is 240.--open: opens the verified image in Preview. Use it for one-off requests so the user sees the result. Skip it for assets that code consumes.The script prints the absolute path on line 1. Line 2 holds the file description, byte size, elapsed seconds, driver model, and agy conversation ID. The exit codes are:
2: bad usage, a missing reference, a fourth reference, or an existing file at --output.3: agy or jq is missing from PATH, or sips is missing when a format conversion is needed.4: agy exited nonzero. Stderr holds the log path and its last 20 lines.5: agy finished without leaving an image. A warning: agy denied line on stderr means headless mode blocked a tool that the driver tried instead of generate_image.The generate_image tool takes only a prompt, an image name, an aspect ratio, and reference paths. It has no resolution, format, or model parameter, so asking for "4K" or "transparent PNG" in the prompt changes nothing.
This skill (agy) | Direct Gemini API (not wrapped) | |
|---|---|---|
| Model | Nano Banana 2 (gemini-3.1-flash-image); Nano Banana Pro (gemini-3-pro-image) where the account has it; no choice | Flash or Pro, chosen per call |
| Resolution | 1K tier only: 1024x1024 at 1:1, 1264x848 at 3:2, 1376x768 at 16:9 | Flash 0.5K, 1K, 2K, 4K; Pro 1K, 2K, 4K |
| Format | Always JPEG (JFIF, 300 DPI) | PNG or JPEG |
| Transparency | None | None |
| Aspect ratios | 7: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9 | 10: adds 21:9, 5:4, 4:5 |
| References | Up to 3 | Up to 14 |
| Cost | Nothing per image; Antigravity login and quota; no API key | Flash $0.067 at 1K, $0.101 at 2K, $0.151 at 4K; Pro $0.134 at 1K or 2K, $0.24 at 4K |
| Watermark | SynthID, cannot be disabled | SynthID, cannot be disabled |
2K and 4K output, PNG output, the 21:9, 5:4, and 4:5 ratios, and more than 3 references need the direct Gemini API. This skill does not wrap that API. When a request needs one of them, tell the user the per-image price from the table before you switch paths.
A .png output is a container conversion by sips from the JPEG source. The conversion adds no alpha channel. When the user needs real transparency, offer codex-image-generator, which accepts a transparent-background request.
Reference images can be PNG, JPEG, or WebP. Gemini scales each one down to at most 3072x3072.
The tool saves under ~/.gemini/antigravity-cli/brain/<conversation_id>/. That directory is ephemeral, so only the copy at --output is durable.
Sources: Antigravity models, Nano Banana Pro in Antigravity, Gemini API image generation, Gemini API pricing, Firebase AI Logic input file requirements, Antigravity agent skills: image generation.
Google's guidance for Nano Banana:
#00FF00) background with flat lighting and sharp edges. Then key out the green in a separate step.Sources: Gemini API image generation, Gemini image prompt guide.
hero-v2.jpg.agy is missing or not logged in, say so and stop.gemini-3.8-flash-low unless the user names another slug from agy models.--dangerously-skip-permissions to agy. The generate_image tool needs no permission..png output only when a consumer needs the PNG container, because the conversion adds no alpha.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
image-generation, antigravity-cli, google-gemini, nano-banana
npx claudepluginhub stevenmays/dotfiles --plugin mays14 skills in this plugin
/adversarial-reviewTwo-family adversarial review of a plan or a diff — one fresh Claude subagent and one external run (GPT through Codex, or Grok through Cursor) on identical briefs, launched concurrently, then triaged into verified blockers, concerns, and rejected findings. Use before approving a plan, before shipping a change, or whenever a workflow asks for an adversarial review./claims-verificationCheck the factual claims a plan makes about existing code against the repo — extract atomic claims, have a fresh subagent answer neutral questions without seeing the plan, then score each claim. Use after a plan is drafted and before adversarial review, or whenever a workflow asks to verify a plan's claims./claude-subagentsDispatch planning, review, implementation, or a scoped question to a fresh Claude subagent with the Agent tool — which subagent type and model to pick, what the prompt must carry, and how to check what comes back. Use whenever a workflow hands work to a Claude subagent, including the Claude half of adversarial-review./codex-image-generatorDefault image generation path. Generate or edit raster images (hero images, illustrations, textures, product shots, mockups, transparent cutouts) through the Codex CLI's built-in image_gen tool, run in a subagent. Use whenever the user asks for an image, picture, illustration, or visual asset and does not name a provider. Not for SVG, icons, or diagrams that belong in code./deslopClean up AI slop in existing code — measure complexity with real tools, delete dead and redundant code, refactor the worst hotspots first, and prove behavior is unchanged. Use when the user asks to clean up slop, deslop, reduce complexity, untangle spaghetti, simplify a god function, or make AI-generated code maintainable. Not a review skill — extreme-code-quality-review covers review; this one changes the code./external-subagentsRun a planning, research, review, or implementation task on a second model family as a background subagent that cannot hang the session — GPT through the Codex CLI, or the newest Grok through the Cursor CLI where Codex is missing. A wrapper kills stalled runs and salvages partial output. Use whenever a workflow sends work to Codex, Cursor, GPT, Grok, a second model, or a non-Claude subagent, including the external half of adversarial-review. Not for images.Other plugins' skills for the same job