/gemskills:edit-imagefrom gemskills
Edits images via natural language prompts using Gemini or OpenAI. Handles inpainting, outpainting, object replacement, and format adaptation for social media or OG images.
Ships in gemskills. 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.
Edit images using Nano Banana Pro (gemini-3-pro-image).
Use this skill when the user asks to:
Uses Gemini's multimodal capabilities to understand and edit images via natural language. The model takes the source image and a text prompt describing the desired edit, then generates a new image with the changes applied.
Semantic masking: Instead of requiring precise pixel masks, describe what to change in your prompt. The model understands context and can target specific regions.
Optional mask images: You can still provide a mask image (white = edit area) as a visual hint, but it's not required. Descriptive prompts often work better.
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/edit-image/scripts/edit.ts <input-image> "edit prompt" [options]
--mask <path> - Optional mask image (white = edit area, black = keep)--mode <inpaint|outpaint> - Edit mode--format <png|jpeg|webp> - Output format--size <1K|2K|4K|WxH> - Output size. openai also takes an exact WxH, for example 3840x1280.--aspect <ratio> - Output aspect. openai accepts any W:H from 1:3 to 3:1. Do not combine with --size WxH.--quality <low|medium|high|xhigh|max|auto> - openai only (default auto).--jpeg-quality <n> - gemini only: JPEG quality (1-100)--negative <prompt> - What to avoid in the edit--count <n> - Number of variations--seed <n> - Random seed--output <path> - Output path--transparent - Transparent PNG output (OpenAI background=transparent; also Gemini)--provider <name> - gemini or openai. Omit to auto-pick (openai when OPENAI_API_KEY is set).--model <id> - OpenAI Image 2.6 variant: sunburst / gpt-image-2.6-sunburst (default, finals) or flare / gpt-image-2.6-flare (fast drafts). Sets provider to openai.# Simple edit with descriptive prompt (no mask needed)
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/edit-image/scripts/edit.ts photo.jpg "change the background to a beach sunset"
# Edit with mask for precise control
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/edit-image/scripts/edit.ts photo.jpg "add a sunset sky" --mask sky_mask.png --mode inpaint
# Outpaint to extend image
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/edit-image/scripts/edit.ts photo.jpg "extend the landscape" --mode outpaint
# Edit with negative prompt
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/edit-image/scripts/edit.ts portrait.png "fix the teeth to look natural" --negative "gap in teeth, missing teeth"
# Replace object with multiple variations
bun run --cwd ${CLAUDE_PLUGIN_ROOT} ${CLAUDE_PLUGIN_ROOT}/skills/edit-image/scripts/edit.ts scene.jpg "replace the car with a bicycle" --count 3
Do not read generated images back into context. The script outputs only the file path. Ask the user to visually inspect the result. To inspect programmatically, optimize the image first (via the optimize-images skill) to avoid filling the context window with large uncompressed image data.
--negative "blurry, distorted" helps avoid unwanted artifacts--count 2 and pick the best oneDefault provider is gemini (gemini-3-pro-image, Nano Banana Pro) — best
for conversational/semantic edits, style-consistent edits, dedicated negatives,
and multi-image composition. No Vertex AI credentials required.
Pass --provider openai (or --model flare|sunburst) to use Image 2.6
(gpt-image-2.6-sunburst default, gpt-image-2.6-flare for fast drafts) for masked
inpainting, multi-image compositing (--mask, multiple --input), and
transparent PNG output when requested (--transparent →
background=transparent). Image 2.6 has no dedicated negative-prompt parameter
and no outpaint mode — so --negative and --mode stay on Gemini (auto-routed).
Style tiles remain Gemini-only.
After the provider is resolved, tune the prompt with the matching guide:
providers/prompts/edit.gemini.md or providers/prompts/edit.openai.md.
Models verified live: 2026-11-07 (
gpt-image-2.6-sunburst,gpt-image-2.6-flare;gemini-3-pro-imageby docs only, Gemini key was rejected, so Gemini was not live-tested). If a newer generation exists, STOP and suggest a PR tob-open-io/gemskills.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gemskills@b-open-io is listed by b-open-io/claude-plugins — review the source before installing
npx claudepluginhub b-open-io/claude-plugins --plugin gemskills19 skills in this plugin
/ask-geminiThis skill should be used when the user asks to "ask Gemini", "get Gemini's opinion", "have Gemini review", "improve writing style", "make less AI-sounding", "get feedback on article", "review this draft", "Nano Banana", "Gemini API help", "Gemini models", or needs a second opinion on content, writing, code, or design. Supports text questions and up to 10 images./avatar-portraitThis skill should be used when the user asks to "create an avatar from a photo", "generate a portrait avatar", "make a profile image", "convert headshot to styled portrait", "team member avatar", "character-style avatar", or needs likeness-preserving avatars in any style (including pixel art)./browsing-stylesThis skill should be used when the user asks to "browse art styles", "pick a style", "choose a style", "select a style", "list available styles", "search styles", "show style options", "what styles are available", "explore artistic styles", "open style browser", "style picker", or needs to see available styles for image generation. Launch the visual browser (browse.ts) when the user wants to interactively pick a style./codex-agent-setupExplicit-only installer for the Gemskills Lisa Codex custom agent. Use ONLY when the user explicitly asks to install, update, check, uninstall, or set up the Gemskills or Lisa Codex agent, including "install Lisa in Codex", "update the Gemskills Codex agent", or "check gemskills_content". Never auto-invoke for ordinary image, video, design, or media-generation requests./deck-creatorThis skill should be used when the user asks to "create a deck", "make a presentation", "build slides", "pitch deck", "investor deck", "sales presentation", "design a deck", "interactive presentation", "presenter mode", "HTML slides", "video background deck", "deck playground", "visual deck editor", "deck builder UI", "publish deck link", or needs to generate a complete deck with minimal friction. Handles low-question discovery, early Deck Creator UI launch, theme selection, copywriting, parallel slide generation, PDF stitching, optional HTML presenter, and publishing workflows./generate-iconThis skill should be used when the user asks to "generate an icon", "create a favicon", "make an app icon", "create iOS icon", "create Android icon", "generate PWA icons", "make desktop app icon", "create Windows icon", "create macOS icon", "app store icon", "Play Store icon", "App Store icon", or needs AI-generated icons with platform-specific sizing.Other plugins' skills for the same job