# Edit image

> Edit image is an open-source agent skill for design and media. Edits an existing image by instruction or mask: remove, add, replace, recolor, or extend. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Runware/runware-skills/tree/main/skills/edit-image
- **Repository:** https://github.com/runware/runware-skills
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** edit-image
- **Collection:** https://github.com/Runware/runware-skills
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media)
- **Listing updated:** 2026-12-03

## About

This skill changes the content of a picture the user already has, leaving untouched regions as they are. It covers adding, removing or replacing objects, recoloring or relighting a scene, inpainting a selected area, and outpainting to widen or extend the canvas. It tells the agent which Runware model fits each kind of edit, such as a prompt-less erase for removals, a prompt-guided fill for replacements, or a per-side pixel extension for outpainting.

The workflow has the agent confirm the live model and its input schema before calling it, prepare a binary mask at the exact source resolution for local edits, run the image inference, and check the result for ghosting, seams or drift. It includes guidance on mask dilation for soft edges and shadows, and on keeping outpaint output within size limits by using auto-cropping in pipelines.

The skill expects a source image as a URL, base64 string, data URI or a previous generation UUID, plus a plain instruction and optionally a mask or per-side pixel extension. It relies on Runware's model catalog and API tools, and it points to other skills for upscaling and product shots.

## When your agent uses it

> Modify an image the user already has, by instruction or by mask. Use when the user says "remove the person/wires/watermark", "add a hat", "replace the sofa", "change the wall to blue", "make it sunset", "inpaint this region", "extend the background", "make it wider", or "outpaint / expand the canvas". This is changing the content of one existing image, not generating from scratch. For quality and resolution only (upscale, denoise, deblur, restore an old photo), use restore-and-upscale. To fuse several separate images into one, use composite-scene.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Runware/runware-skills/tree/HEAD/skills/edit-image)
- [License: MIT](https://github.com/Runware/runware-skills/tree/HEAD/skills/edit-image)

## Features

- **Instruction-based edits:** Applies a plain-language change such as adding a hat or recoloring a wall while keeping the rest of the scene intact.
- **Mask-driven object removal:** Erases marked objects and reconstructs the background, with guidance on mask dilation for shadows and soft edges.
- **Inpainting a region:** Fills a masked area with content described by a prompt, for swapping one element for another.
- **Canvas outpainting:** Extends the image on chosen sides in pixels, either prompt-less or steered by a prompt.
- **Model routing by edit type:** Guides the choice between instruction, relight, inpaint, erase and outpaint models based on the verb in the request.
- **Output size limits:** Explains the outpaint ceiling of 4 MP and 2048 px per side, and how auto-cropping avoids errors.

## Good for

- Remove a person or power lines from a photo
- Add a hat or accessory to someone in a picture
- Replace the sofa in a room photo with a different one
- Change a wall color or make a photo look like sunset
- Widen a landscape photo by extending the left and right edges
- Extend the background of a portrait to create more room around the subject

## Install

### Claude Code

This skill ships in the `skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Runware/runware-skills
/plugin install skills@runware
```

Or copy only this skill to `~/.claude/skills/edit-image`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Runware/runware-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/edit-image &&
cp -R "$tmp/skills/edit-image" ~/.claude/skills/edit-image &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/edit-image` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/edit-image` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Runware/runware-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/edit-image &&
cp -R "$tmp/skills/edit-image" ~/.agents/skills/edit-image &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/edit-image` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/edit-image` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Runware/runware-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/edit-image &&
cp -R "$tmp/skills/edit-image" ~/.cursor/skills/edit-image &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/edit-image` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Runware/runware-skills.git --path skills/edit-image
```

Or copy the folder to `~/.gemini/skills/edit-image` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/edit-image`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Runware/runware-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/edit-image &&
cp -R "$tmp/skills/edit-image" ~/.copilot/skills/edit-image &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/edit-image` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Runware/runware-skills.git
```

Then copy `runware-skills/skills/edit-image` into your agent's skills folder as `edit-image`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs a source image as a URL, base64, data URI or UUID. Local edits also need a binary mask at the same resolution as the source, and outpainting needs per-side pixel values.

### Does Edit image generate new images from scratch?

No. It works on an image the user already has. Generating from a prompt alone is handled as a separate generation task.

### When should I use this instead of restoring or upscaling?

Use this skill for changing content. For quality and resolution work such as upscaling, denoising or restoring an old photo, the skill points to restore-and-upscale.

### How does object removal differ from inpainting?

Removal with FLUX Erase needs only a mask and no prompt, and it reconstructs what was behind the object. Inpainting with FLUX.1 Fill needs a prompt describing the replacement content.

### How do I install Edit image in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/edit-image to use it in all your projects, or to .claude/skills/edit-image in one project. Or install the skills plugin, which includes it: /plugin marketplace add Runware/runware-skills, then /plugin install skills@runware.

### Does Edit image run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Edit image?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Edit image?

The closest alternatives to Edit image are Imagegen, Text in image, Edit video, Product photography and Restore and upscale.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Imagegen](https://ai-powered.com/skills/imagegen): Imagegen is an open-source agent skill for design and media.
- [Text in image](https://ai-powered.com/skills/text-in-image): Text in image is an open-source agent skill for design and media.
- [Edit video](https://ai-powered.com/skills/edit-video): Edit video is an open-source agent skill for design and media.
- [Product photography](https://ai-powered.com/skills/product-photography): Product photography is an open-source agent skill for design and media.
- [Restore and upscale](https://ai-powered.com/skills/restore-and-upscale): Restore and upscale is an open-source agent skill for design and media.
- [Runware prompting](https://ai-powered.com/skills/runware-prompting): Runware prompting is an open-source agent skill for design and media.
- [Photoreal stills](https://ai-powered.com/skills/photoreal-stills): Photoreal stills is an open-source agent skill for design and media.
- [Reframe video](https://ai-powered.com/skills/reframe-video): Reframe video is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/edit-image
