Openclaw-master-skills main-image-editor
Orchestrate screenshot + Chinese instruction into PSD batch edits with transaction rollback by reusing psd-automator.
install
source · Clone the upstream repo
git clone https://github.com/LeoYeAI/openclaw-master-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/main-image-editor" ~/.claude/skills/leoyeai-openclaw-master-skills-main-image-editor && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/LeoYeAI/openclaw-master-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/main-image-editor" ~/.openclaw/skills/leoyeai-openclaw-master-skills-main-image-editor && rm -rf "$T"
manifest:
skills/main-image-editor/SKILL.mdsource content
main-image-editor
Orchestration layer for "main image modification" workflows:
- Parse screenshot + Chinese instruction into structured edit tasks.
- Convert tasks into
task JSON.psd-automator - Execute serially with transaction rollback (rollback all on any failure).
- Reuse
export + bundle output.psd-automator
Usage
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
Dry-run or force execute:
node skills/main-image-editor/scripts/run-main-image-editor.js \ --request skills/main-image-editor/examples/request.sample.json \ --dry-run
node skills/main-image-editor/scripts/run-main-image-editor.js \ --request skills/main-image-editor/examples/request.sample.json \ --force
Request payload
request JSON supports:
: Chinese requirement texttext
: screenshot path (used for match + audit)screenshotPath
: optional (defaultconfidenceThreshold
)0.8
: optional pre-parsed tasks (skip regex parsing when provided)tasks
: optional runtime controls (execution
,indexPath
,dryRun
)force
When
fileHint is missing, parser will try to extract .psd/.psb filename from:
- request
text - OCR text from
(localscreenshotPath
command or macOS Vision OCR fallback)tesseract
Failure policy
- Default policy is
.rollback_all - Any single PSD failure restores all touched PSD files from transaction backups.
- Temporary outputs generated in the failed run are cleaned up before returning.