Xpersona
M

Main Image Editor

CLAWHUB · Unverified

Orchestrate screenshot + Chinese instruction into PSD batch edits with transaction rollback by reusing psd-automator. Skill: Main Image Editor Owner: dhrxy Summary: Orchestrate screenshot + Chinese instruction into PSD batch edits with transaction rollback by reusing psd-automator. Tags: latest:1.0.1 Version history: v1.0.1 | 2026-03-25T08:47:14.874Z | user maintenance update v1.0.0 | 2026-03-16T01:59:17.315Z | user Initial release: PSD main image orchestration with screenshot parsing and transaction rollback Archive index: Archive

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ep23tvtyn3spbjjbf8j6zj183jznd:main-image-editor
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-dhrxy-main-image-editor/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

11,661 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

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.

_meta.json

{
  "ownerId": "kn7frhkbkm6t704dqdm2advyah82deej",
  "slug": "main-image-editor",
  "version": "1.0.1",
  "publishedAt": 1774428434874
}

skill-card.md

## Description:

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

This skill is ready for commercial/non-commercial use.

## Publisher:

[dhrxy](https://clawhub.ai/user/dhrxy)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to turn Chinese screenshot-based editing requests into PSD or PSB text edit batches, preview low-confidence work, and export PNG or ZIP deliverables through psd-automator.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can overwrite local PSD or PSB design files and the security summary notes rollback and temporary-file handling weaknesses.

Mitigation: Run dry-run first, review resolved targets and proposed edits, and keep independent backups before forced execution.

Risk: The skill reads provided screenshots and resolves PSD or PSB files through a local index, which may expose sensitive project names, copy, or source files.

Mitigation: Use it only with screenshots and design files approved for this workflow, and avoid shared machines or indexes containing sensitive unrelated projects.

Risk: Batches that edit the same PSD more than once can be harder to review and recover from.

Mitigation: Review same-file batches carefully, split high-risk edits into smaller runs, and prefer dry-run or confirmation thresholds before applying changes.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/dhrxy/skills/main-image-editor)

## Skill Output:

**Output Type(s):** [JSON, Files]

**Output Format:** [JSON execution result with PSD edit status and generated PNG or ZIP file paths]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Supports dry-run, low-confidence confirmation, rollback_all failure handling, and optional bundled exports.]

## Skill Version(s):

1.0.1 (source: ClawHub release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

examples/request.low-confidence.json

{
  "requestId": "main-image-demo-low-confidence",
  "confidenceThreshold": 0.8,
  "tasks": [
    {
      "fileHint": "demo.psd",
      "modifications": [
        {
          "op": "replace_text",
          "layerName": "主标题",
          "newText": "新品上市",
          "confidence": 0.62
        }
      ]
    }
  ],
  "execution": {
    "dryRun": false,
    "force": false,
    "rollbackPolicy": "rollback_all"
  }
}

examples/request.multi.json

{
  "requestId": "main-image-demo-multi",
  "tasks": [
    {
      "fileHint": "poster-a.psd",
      "modifications": [
        {
          "op": "replace_text",
          "layerName": "标题",
          "newText": "春日活动",
          "confidence": 0.95
        }
      ]
    },
    {
      "fileHint": "poster-b.psd",
      "modifications": [
        {
          "op": "delete_text",
          "layerName": "副标题",
          "confidence": 0.92
        }
      ]
    }
  ],
  "execution": {
    "dryRun": false,
    "force": true,
    "rollbackPolicy": "rollback_all"
  }
}

Sponsored

Ads related to Main Image Editor and adjacent AI workflows.