Best for
- User asks to edit, modify, inpaint, or make a variation of an existing image.
- Background removal or swap on a provided asset.
- Upscaling or restyling an existing render from a prior generation run.
event4u-app/agent-config/src/skills/image-editing/SKILL.md
Edit an existing image — inpaint, background swap, variation — via providers that support it. Use when editing/modifying/inpainting an image or making variations.
Decision brief
Edit or vary an existing image: inpaint masked regions, swap backgrounds, produce variations from a seed, or upscale — routed to providers that support the edit API, with governance applied before delivery. All adapters are scaffold-tier (dry-run) until promoted to stable.
Compatibility matrix
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/event4u-app/agent-config --skill "src/skills/image-editing"Inspect the Agent Skill "image-editing" from https://github.com/event4u-app/agent-config/blob/0adf49a8ae84b0ff6e2de8759eea43257e020eff/src/skills/image-editing/SKILL.md at commit 0adf49a8ae84b0ff6e2de8759eea43257e020eff. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
1. Identify the edit type — classify the request: inpaint (replace a masked region), background (remove or swap), variation (alternate version of the same subject), or upscale (resolution increase). 2. Confirm provider support — not all providers support image editing. GPT Image…
User asks to edit, modify, inpaint, or make a variation of an existing image.
1. Edit plan — edit type, chosen provider, routing rationale, and prompt string ready to copy. 2. Provider + params — adapter file reference, source image path, mask path (if inpaint), key params (aspect ratio, strength, seed/ref-image for variation). 3. Artifact path / dry-run…
Scaffold-tier adapters produce plans, not pixels — adapters for GPT Image 2,
Do NOT assume every provider supports image editing — check provider capability
Permission review
No configured static risk pattern was detected
This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.
Evidence record
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 92/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 7 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Edit or vary an existing image: inpaint masked regions, swap backgrounds, produce
variations from a seed, or upscale — routed to providers that support the edit API,
with governance applied before delivery. All adapters are scaffold-tier (dry-run) until promoted to stable.
inpaint (replace a masked
region), background (remove or swap), variation (alternate version of the
same subject), or upscale (resolution increase).gemini-image both expose an edit/inpaint endpoint. Flux and Recraft support
variation via seed/ref-image only; Ideogram is largely generate-only. Check
the provider's capability before proceeding.image-provider-routing —
route to a provider whose adapter exposes an edit endpoint for the required edit
type. Selecting a generate-only provider for an inpaint task will fail silently.prompt-engineering-image —
write the edit prompt in the target provider's grammar. For inpaint, describe what
fills the masked region. For variation, carry the original seed/ref-image path forward.node_modules/@event4u/agent-config/src/scripts/ai-image/adapters/<provider>.sh with the assembled params including
the source image path and, for inpaint, the mask path. Validate the returned
artifact path or dry-run confirmation. All adapters are experimental
(scaffold-tier); no live editing occurs until a maintainer promotes the adapter
via provider-lifecycle-discipline.image-likeness-and-rights) when the source image or edit instruction involves
a real person's likeness, a brand mark, or a named living artist's style. Attach
the AI-disclosure footer per media-governance-routing before delivering output.provider-lifecycle-discipline."gemini-image, Flux, and Recraft are scaffold-tier (dry-run only). This skill
produces the edit blueprint + dry-run confirmation; actual edits require a
maintainer to capture a smoke trace and promote the adapter to stable. Claiming
an edited asset exists when no adapter is stable misleads the caller.image-likeness-and-rights when the source image or edit prompt
involves a real person's face, a brand mark, or a named living artist's style.image-generation instead.image-generation — generate a new image from a brief (not editing an existing one).image-provider-routing — select the right provider before writing the prompt.prompt-engineering-image — translate the edit brief into provider-specific prompt grammar.image-likeness-and-rights — rights check before editing real-person likenesses or brand marks.screenshot-hygiene — for redacting a documentation screenshot, use a deterministic opaque box/blur (never the lossy inpaint here).