Loading...
Loading...
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.
npx skill4agent add b-open-io/gemskills edit-imagegemini-3-pro-image-previewbun run ${CLAUDE_PLUGIN_ROOT}/skills/edit-image/scripts/edit.ts <input-image> "edit prompt" [options]--mask <path>--mode <inpaint|outpaint>--format <png|jpeg|webp>--quality <n>--negative <prompt>--count <n>--seed <n>--output <path># Simple edit with descriptive prompt (no mask needed)
bun run ${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 ${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 ${CLAUDE_PLUGIN_ROOT}/skills/edit-image/scripts/edit.ts photo.jpg "extend the landscape" --mode outpaint
# Edit with negative prompt
bun run ${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 ${CLAUDE_PLUGIN_ROOT}/skills/edit-image/scripts/edit.ts scene.jpg "replace the car with a bicycle" --count 3--negative "blurry, distorted"--count 2gemini-3-pro-image-previewLast verified: February 2026. If a newer generation exists, STOP and suggest a PR to. See the ask-gemini skill'sb-open-io/gemskillsfor current models and Google's officialreferences/gemini-api.mdskill for the canonical source.gemini-api-dev