Skip to content
Back to skills

Main Image Editor

ASecurity

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

  • 2,237 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added November 6, 2026
ai-agentsbashnode

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned November 6, 2026

npx -y skills add LeoYeAI/agent-master-skills --skill main-image-editor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Main Image Editor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Main Image Editor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leoyeai-main-image-editor-agent-master-skills/badge)](https://www.skillsdirectory.com/skills/leoyeai-main-image-editor-agent-master-skills)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: main-image-editor
description: "Orchestrate screenshot + Chinese instruction into PSD batch edits with transaction rollback by reusing psd-automator."
command-dispatch: tool
command-tool: main_image_editor
command-arg-mode: raw
metadata:
  openclaw:
    userInvocable: true
    commandDispatch: tool
    commandTool: main_image_editor
    commandArgMode: raw
---

# main-image-editor

Orchestration layer for "main image modification" workflows:

1. Parse screenshot + Chinese instruction into structured edit tasks.
2. Convert tasks into `psd-automator` task JSON.
3. Execute serially with transaction rollback (rollback all on any failure).
4. Reuse `psd-automator` export + bundle output.

## Usage

```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
```

Dry-run or force execute:

```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 payload

`request` JSON supports:

- `text`: Chinese requirement text
- `screenshotPath`: screenshot path (used for match + audit)
- `confidenceThreshold`: optional (default `0.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:

1. request `text`
2. OCR text from `screenshotPath` (local `tesseract` command 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.

Files in this skill

  • .clawhub/origin.json149 B
  • SKILL.md1.9 KB
  • _meta.json136 B
  • command-tool.ts1.5 KB
  • examples/request.low-confidence.json429 B
  • examples/request.multi.json586 B
  • examples/request.sample.json354 B
  • examples/request.screenshot3.test.json532 B
  • lib/intent-parser.js11.9 KB
  • lib/task-orchestrator.js12.4 KB
  • scripts/run-main-image-editor.js3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.