/install main-image-editor
main-image-editor
Orchestration layer for "main image modification" workflows:
- Parse screenshot + Chinese instruction into structured edit tasks.
- Convert tasks into
psd-automatortask JSON. - Execute serially with transaction rollback (rollback all on any failure).
- Reuse
psd-automatorexport + bundle output.
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:
text: Chinese requirement textscreenshotPath: screenshot path (used for match + audit)confidenceThreshold: optional (default0.8)tasks: optional pre-parsed tasks (skip regex parsing when provided)execution: optional runtime controls (indexPath,dryRun,force)
When fileHint is missing, parser will try to extract .psd/.psb filename from:
- request
text - OCR text from
screenshotPath(localtesseractcommand or macOS Vision OCR fallback)
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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install main-image-editor - After installation, invoke the skill by name or use
/main-image-editor - Provide required inputs per the skill's parameter spec and get structured output
What is Main Image Editor?
Orchestrate screenshot + Chinese instruction into PSD batch edits with transaction rollback by reusing psd-automator. It is an AI Agent Skill for Claude Code / OpenClaw, with 373 downloads so far.
How do I install Main Image Editor?
Run "/install main-image-editor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Main Image Editor free?
Yes, Main Image Editor is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Main Image Editor support?
Main Image Editor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Main Image Editor?
It is built and maintained by dhrxy (@dhrxy); the current version is v1.0.1.