Skip to content
Skill

Edit image

Edits an existing image by instruction or mask: remove, add, replace, recolor, or extend

Edit image is an open-source agent skill for design and media. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
8
Last commit
License
MIT
Listing updated

Similar skills

About Edit image

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (17 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Edit image 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.

More from Runware/runware-skills

  1. Checks which parts of a Fal.ai API call map to Runware and which need changes

    • Open source
    • 8 GitHub stars
    • Developer tools
  2. Checks which parts of a Replicate API call map to Runware and which need changes

    • Open source
    • 8 GitHub stars
    • AI models and LLM tooling
  3. Checks which parts of a WaveSpeed API call map to Runware and which need changes

    • Open source
    • 8 GitHub stars
    • Developer tools
  4. Adds synced sound effects to a silent video clip, with narration and music routed

    • Open source
    • 8 GitHub stars
    • Design and media
  5. Turns a still image into a short video clip with directed camera and subject motion

    • Open source
    • 8 GitHub stars
    • Design and media
  6. Imports your own LoRA or checkpoint into Runware so you can generate with it

    • Open source
    • 8 GitHub stars
    • AI models and LLM tooling