返回顶部
m

main-image-editor主图编辑器

Orchestrate screenshot + Chinese instruction into PSD batch edits with transaction rollback by reusing psd-automator.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
292
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

main-image-editor

main-image-editor

“主图像修改”工作流的编排层:

  1. 1. 将截图 + 中文指令解析为结构化编辑任务。
  2. 将任务转换为 psd-automator 任务 JSON。
  3. 串行执行并支持事务回滚(任何失败时回滚所有操作)。
  4. 复用 psd-automator 的导出与打包输出。

使用方法

bash
node skills/main-image-editor/scripts/run-main-image-editor.js \
--request skills/main-image-editor/examples/request.sample.json \
--index ~/.openclaw/psd-index.json

预演或强制执行:

bash
node skills/main-image-editor/scripts/run-main-image-editor.js \
--request skills/main-image-editor/examples/request.sample.json \
--dry-run

bash
node skills/main-image-editor/scripts/run-main-image-editor.js \
--request skills/main-image-editor/examples/request.sample.json \
--force

请求负载

request JSON 支持以下字段:

  • - text:中文需求文本
  • screenshotPath:截图路径(用于匹配和审核)
  • confidenceThreshold:可选(默认值为 0.8)
  • tasks:可选,预解析的任务(提供时跳过正则解析)
  • execution:可选,运行时控制参数(indexPath、dryRun、force)

当 fileHint 缺失时,解析器会尝试从以下来源提取 .psd/.psb 文件名:

  1. 1. 请求中的 text
  2. screenshotPath 对应的 OCR 文本(本地 tesseract 命令或 macOS Vision OCR 回退方案)

失败策略

  • - 默认策略为 rollback_all。
  • 任何单个 PSD 失败时,将从事务备份中恢复所有被修改的 PSD 文件。
  • 失败运行中生成的临时输出会在返回前清理干净。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 main-image-editor-1776063509 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 main-image-editor-1776063509 技能

通过命令行安装

skillhub install main-image-editor-1776063509

下载

⬇ 下载 main-image-editor v1.0.1(免费)

文件大小: 15.22 KB | 发布时间: 2026-4-15 13:20

v1.0.1 最新 2026-4-15 13:20
maintenance update

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部