Image Editor
/install image-editor
Image Editor Skill
Core Rules (NEVER BREAK)
- Preserve original resolution — never resize, scale, or change dimensions
- Verify every output with vision model — use the
imagetool to check the result before delivering - Use PIL directly — Python PIL/Pillow for pixel-level manipulation, not external tools
Workflow
Step 1: Analyze the original image
python3 -c "
from PIL import Image
img = Image.open('PATH')
print(f'Size: {img.size}, Mode: {img.mode}')
"
Step 2: Identify target region
- Open the image with
readtool (supports jpg/png) - Use
imagetool with prompt "identify the exact pixel coordinates of [target area]" - Record: x_start, y_start, x_end, y_end
Step 3: Edit with PIL
from PIL import Image, ImageDraw, ImageFont
img = Image.open('INPUT')
draw = ImageDraw.Draw(img)
# For text replacement:
# 1. Fill background color over old text
# 2. Draw new text with matching font/color
# macOS Chinese fonts: /System/Library/Fonts/STHeiti Light.ttc
font = ImageFont.truetype('/System/Library/Fonts/STHeiti Light.ttc', size=PIXEL_SIZE)
draw.text((x, y), 'NEW TEXT', fill=(R, G, B), font=font)
img.save('OUTPUT.jpg', quality=95)
Step 4: Verify output (MANDATORY)
Use the image tool on the output file with prompt:
"Compare this edited image with the original at ORIGINAL_PATH. Is the text replacement correct? Is resolution preserved? Any artifacts?"
Step 5: Only deliver after verification passes
Common mistakes (from real failures)
- ❌ Using web_fetch to "download" an image (it resizes)
- ❌ Skipping vision verification
- ❌ Calling external APIs that don't support the format
- ❌ Saving with wrong quality/format
- ✅ PIL direct pixel manipulation
- ✅ Vision verification of every output
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install image-editor - After installation, invoke the skill by name or use
/image-editor - Provide required inputs per the skill's parameter spec and get structured output
What is Image Editor?
Use this skill when the user asks to edit, modify, replace text, or add/remove elements in an image. Always preserve original resolution. Always verify outpu... It is an AI Agent Skill for Claude Code / OpenClaw, with 27 downloads so far.
How do I install Image Editor?
Run "/install image-editor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Image Editor free?
Yes, Image Editor is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Image Editor support?
Image Editor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Image Editor?
It is built and maintained by liyafeichina (@liyafeichina); the current version is v1.0.0.