← 返回 Skills 市场
liyafeichina

Image Editor

作者 liyafeichina · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
27
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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
安全使用建议
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install image-editor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /image-editor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug image-editor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 27 次。

如何安装 Image Editor?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install image-editor」即可一键安装,无需额外配置。

Image Editor 是免费的吗?

是的,Image Editor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Image Editor 支持哪些平台?

Image Editor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Image Editor?

由 liyafeichina(@liyafeichina)开发并维护,当前版本 v1.0.0。

💬 留言讨论