b-open-io/gemskills/edit-image
Claude Code and agent skill by b-open-io/gemskills
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "edit an image", "modify a photo", "inpaint", "outpaint", "extend an image", "replace object in image", "add element to image", "resize image for social media", "crop image", "adapt image for Twitter", "convert image to OG format", or needs AI-powered image editing with masks.
Install
npx vskill@latest install b-open-io/gemskills/edit-imageSKILL.md
Edit Image
Edit images using Nano Banana Pro (gemini-3-pro-image).
When to Use
Use this skill when the user asks to:
- Edit part of an image (inpainting)
- Extend an image beyond its borders (outpainting)
- Replace objects or regions in an image
- Add elements to an existing image
- Adapt an existing image for a different format or platform (social media, OG, Twitter card)
How It Works
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.
Usage
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 exactWxH, for example3840x1280.--aspect <ratio>- Output aspect. openai accepts anyW:Hfrom 1:3 to 3:1. Do not combine with--size WxH.--quality <low|medium|high|xhigh|max|auto>- openai only (defaultauto).--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 (OpenAIbackground=transparent; also Gemini)--provider <name>-geminioropenai. Omit to auto-pick (openai whenOPENAI_API_KEYis set).--model <id>- OpenAI Image 2.6 variant:sunburst/gpt-image-2.6-sunburst(default, finals) orflare/gpt-image-2.6-flare(fast drafts). Sets provider to openai.
Examples
Context Discipline
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.
Prompt Tips
- Be specific: "Change only the sky to golden hour lighting" works better than "make it look better"
- Describe preservation: The tool automatically adds "keep everything else the same" but you can be more specific
- Use negative prompts:
--negative "blurry, distorted"helps avoid unwanted artifacts - Iterate: Generate a few variations with
--count 2and pick the best one
Models & Providers
Default 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.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/edit-image/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 25 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/b-open-io/gemskills/edit-image)