← Back to Skills Marketplace
liyafeichina

Image Editor

by liyafeichina · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
27
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install image-editor
Description
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...
README (SKILL.md)

Image Editor Skill

Core Rules (NEVER BREAK)

  1. Preserve original resolution — never resize, scale, or change dimensions
  2. Verify every output with vision model — use the image tool to check the result before delivering
  3. 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 read tool (supports jpg/png)
  • Use image tool 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
Usage Guidance
Install only if you want an agent to edit local images using Python/PIL. Review outputs carefully, especially text edits, and expect to adjust the font path or font choice on non-macOS systems.
Capability Assessment
Purpose & Capability
The stated purpose is editing images with PIL while preserving resolution and verifying output; its instructions and examples fit that purpose.
Instruction Scope
The trigger wording is somewhat broad for image-editing requests, but it remains scoped to user-requested image modification rather than unrelated actions.
Install Mechanism
The artifact contains a SKILL.md and eval JSON only, with no executable bundled scripts; metadata discloses a python3 binary requirement.
Credentials
Using local Python/PIL and local image paths is proportionate for pixel-level image edits, though the macOS-specific font path may fail or render poorly on other systems.
Persistence & Privilege
No persistence, background execution, privilege escalation, credential/session access, or external data exfiltration behavior is present in the artifacts.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install image-editor
  3. After installation, invoke the skill by name or use /image-editor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: PIL-based image editor with vision verification. Supports text replacement, element removal, drawing. Preserves original resolution. Verifies output with vision model.
Metadata
Slug image-editor
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments