home / skills / tara-shopos / shopos-prototype / image_editing
This skill helps you edit images by applying user-specified changes such as background, color, or style modifications to uploaded images.
npx playbooks add skill tara-shopos/shopos-prototype --skill image_editingReview the files below or copy the command above to add this skill to your agents.
---
name: image_editing
description: Edit, modify, or enhance existing images using natural language instructions. Use this skill when the user wants to change colors, remove backgrounds, add objects, or modify the style of an image they have uploaded or generated.
license: Apache-2.0
metadata:
version: "1.0"
author: ShopOS
allowed-tools:
- editImage
---
# Image Editing Skill
## When to use this skill
Use this skill when the user provides an image (or refers to a previous image) and asks to modify it. Common intents include:
- "Make the background blue"
- "Remove the background"
- "Add a shadow"
- "Change the shoe to red"
- "Make it look cinematic"
## Instructions
1. **Identify the image**: Ensure you have the URL or ID of the image to be edited. If not provided, ask the user to upload or select one.
2. **Analyze the request**: Determine the specific editing operation (mask-based edit, global style transfer, background removal).
3. **Construct the tool call**:
- Call the `editImage` tool.
- `prompt`: A clear description of the desired output (e.g., "a red shoe on a white background").
- `image`: The source image data or URL.
- `mask_description`: If editing a specific part, describe what to mask (e.g., "the shoe").
## Examples
### Input
> User: "Change the background to a sunny beach" (attached image of a bottle)
### Execution
- **Tool**: `editImage`
- **Arguments**:
- `prompt`: "bottle on a sunny beach"
- `image`: [Image Data]
- `editType`: "background-replacement"
---
### Input
> User: "Make it a sketch"
### Execution
- **Tool**: `editImage`
- **Arguments**:
- `prompt`: "sketch of the bottle"
- `editType`: "style-transfer"
This skill edits, modifies, and enhances existing images using natural language instructions. It handles targeted changes like color swaps, background replacement, object addition/removal, and global style transfers. Use it when you have an image URL or upload and want precise, conversational edits.
Provide or reference the image to edit, then describe the desired change in plain language. The skill analyzes the request to choose an edit type (mask-based local edit, background replacement, or style transfer) and constructs a clear edit call with a prompt, the source image, and an optional mask description. The tool returns an updated image that reflects the requested modifications.
What image formats are supported?
Common web formats like JPEG, PNG, and transparent PNGs are supported; provide the image URL or upload the file.
How do I target only part of an image?
Specify a mask_description naming the part to edit (for example, "mask: the background" or "mask: left shoe"), and include any edges or tolerance guidance if needed.
Can I request multiple edits at once?
Yes — combine edits in one prompt (e.g., "change the shirt to blue and replace the background with a beach"), but clearer results often come from sequential, focused edits.