Xpersona
P

Psd Automator

CLAWHUB · Unverified

Automate PSD text replacement on Mac and Windows with Photoshop, dry-run safety, style-lock checks, rollback, and local PSD index cache. Use when requests in... Skill: Psd Automator Owner: dhrxy Summary: Automate PSD text replacement on Mac and Windows with Photoshop, dry-run safety, style-lock checks, rollback, and local PSD index cache. Use when requests in... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-25T08:47:01.861Z | user maintenance update v1.0.1 | 2026-03-16T03:45:53.642Z | user Complete the standalone package metadata, add a local package manifest, and cla

62
Rank
84
Safety
1.4k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.4K downloads reported by the source. Last updated 10/10/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:psd-automator
  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-psd-automator/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

41,179 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: psd-automator
description: Automate PSD text replacement on Mac and Windows with Photoshop, dry-run safety, style-lock checks, rollback, and local PSD index cache. Use when requests include file/path hints, layer name, and replacement text from chat channels (including DingTalk) and require no popup dialogs.
metadata: { "openclaw": { "emoji": "🖼️", "skillKey": "psd-automator" } }
---

# PSD Automator

Cross-platform PSD text automation for teams using both macOS and Windows.

## Scope

- Phase 1 + 2 only.
- Screenshot understanding is intentionally out of scope.
- Uses one task protocol and two execution engines:
  - macOS: AppleScript (`osascript`)
  - Windows: Photoshop COM (PowerShell)

## Task Protocol

Read [references/task-schema.json](references/task-schema.json) before running.

Minimal required fields:

- `taskId`
- `input.edits[]` (`layerName` + `newText`)
- `input.exactPath` or `input.fileHint`

Key optional fields:

- `workflow.sourceMode`: `inplace` or `copy_then_edit`
- `output.exports[]`: PNG export (`mode=single` or `mode=layer_sets` for sliced/block assets)
- `output.bundle.zipName`: zip name for sliced assets bundle
- `options.pathBridgeMode`: `auto` / `always` / `off` (macOS Unicode path bridge)
- `options.bundleZip`: whether to bundle `layer_sets` PNGs into one zip
- `options.matchImagePath`: screenshot path for selecting most similar exported slice

## Build and Refresh PSD Index

Create or refresh local cache:

```bash
node skills/psd-automator/scripts/build-index.js \
  --root "/Projects/Design" \
  --root "/Users/me/Desktop/assets" \
  --index "~/.openclaw/psd-index.json"
```

Incremental refresh:

```bash
node skills/psd-automator/scripts/build-index.js --incremental
```

## Run a Task

Dry-run first (recommended):

```bash
node skills/psd-automator/scripts/run-task.js \
  --task "skills/psd-automator/examples/task.mac.json" \
  --dry-run
```

Execute:

```bash
node skills/psd-automator/scripts/run-task.js \
  --task "skills/psd-automator/examples/task.mac.json"
```

Natural-language dispatch (through OpenClaw chat command, supports `.psd` and `.psb`):

```text
/psd design-mac-01 帮我找到20260225工位名牌.psd或20260225工位名牌.psb,把姓名改成琳琳,座右铭改成步履不前,稳步前进,保存成png放置在桌面 --dry-run
```

## DingTalk image handoff (required)

When replying in DingTalk and task execution is successful with PNG output, the final response MUST include this marker with an absolute path:

```text
[DINGTALK_IMAGE]{"path":"<absolute_png_path>"}[/DINGTALK_IMAGE]
```

Rules:

- Use absolute path only (for example `/Users/name/Desktop/xxx.png`).
- Do not use filename-only values.
- If `pngOutputPath` (or first item in `pngOutputPaths`) is missing, clearly report failure and do not emit a fake marker.
- For `mode=layer_sets`, `pngOutputPaths` should contain all exported block images in the output folder.
- When available, use `selectedPngPath` as the single best-match image for screenshot workflows.
- When available, send `bundleZipPath` as file attachment: `[D

_meta.json

{
  "ownerId": "kn7frhkbkm6t704dqdm2advyah82deej",
  "slug": "psd-automator",
  "version": "1.0.2",
  "publishedAt": 1774428421861
}

references/error-codes.md

# PSD Automator Error Codes

- `E_TASK_INVALID`: task JSON malformed or missing required fields.
- `E_FILE_NOT_FOUND`: target PSD was not found.
- `E_FILE_LOCKED`: PSD is locked/in use by another process.
- `E_LAYER_NOT_FOUND`: requested text layer name does not exist.
- `E_STYLE_MISMATCH`: font/size changed unexpectedly after replacement.
- `E_PHOTOSHOP_UNAVAILABLE`: Photoshop process/automation API not available.
- `E_EXEC_TIMEOUT`: Photoshop script execution timeout.
- `E_EXEC_FAILED`: Photoshop script returned a generic failure.
- `E_BACKUP_FAILED`: backup copy failed before write.
- `E_OUTPUT_WRITE_FAILED`: output save/copy failed.
- `E_EXPORT_FAILED`: export step (for example PNG) failed.
- `E_PARSE_FAILED`: natural-language parsing failed for required fields.
- `E_FILE_AMBIGUOUS`: multiple candidate PSD files match and confirmation is required.
- `E_INDEX_MISSING`: index file not found when needed for `fileHint`.
- `E_INDEX_CORRUPT`: index JSON invalid.
- `E_PLATFORM_UNSUPPORTED`: current platform is not macOS or Windows.

references/openclaw-subagent-routing.md

# OpenClaw Subagent Routing (Phase 2)

Use OpenClaw's native subagent workflow instead of building a new scheduler.

## Routing Contract

Main agent responsibilities:

1. Parse incoming DingTalk request into task JSON.
2. Resolve target machine (`agentId`) and platform capability (`mac` or `win`).
3. Dispatch to target via subagent/session spawn.
4. Collect normalized execution output and return to requester.

Target subagent responsibilities:

1. Receive task JSON.
2. Run local script:
   - `node skills/psd-automator/scripts/run-task.js --task <task.json>`
3. Return full stdout/stderr summary and machine-readable JSON result.

## Suggested Result Envelope

```json
{
  "taskId": "task-001",
  "agentId": "design-mac-01",
  "platform": "mac",
  "status": "success",
  "code": "OK",
  "resolvedPath": "/Projects/Campaign/poster.psd",
  "backupPath": "/Projects/Campaign/poster.psd.bak.20260227-140102",
  "durationMs": 4210,
  "auditLogPath": "~/.openclaw/psd-automator/audit.log"
}
```

## Guardrails

- Always attempt `dryRun` first for untrusted input.
- Enforce sender allowlists before dispatch.
- Keep one write task per PSD at a time.
- Always include `taskId` for traceability.

references/task-schema.json

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "PsdAutomatorTask",
  "type": "object",
  "required": ["taskId", "input"],
  "properties": {
    "taskId": { "type": "string", "minLength": 1 },
    "requester": { "type": "string" },
    "target": {
      "type": "object",
      "properties": {
        "agentId": { "type": "string" },
        "os": { "type": "string", "enum": ["mac", "win"] }
      },
      "additionalProperties": false
    },
    "input": {
      "type": "object",
      "properties": {
        "exactPath": { "type": "string" },
        "fileHint": { "type": "string" },
        "layerName": { "type": "string", "minLength": 1 },
        "newText": { "type": "string" },
        "edits": {
          "type": "array",
          "minItems": 1,
          "items": {
            "type": "object",
            "properties": {
              "op": { "type": "string", "enum": ["replace_text", "delete_text", "place_image"] },
              "layerName": { "type": "string" },
              "newText": { "type": "string" },
              "imagePath": { "type": "string" },
              "position": { "type": "string", "enum": ["top", "bottom", ""] },
              "visible": { "type": "boolean" },
              "targetArtboard": { "type": "string" }
            },
            "allOf": [
              {
                "if": {
                  "properties": { "op": { "const": "delete_text" } },
                  "required": ["op"]
                },
                "then": { "required": ["layerName"] },
                "else": {
                  "if": {
                    "properties": { "op": { "const": "place_image" } },
                    "required": ["op"]
                  },
                  "then": { "required": ["imagePath"] },
                  "else": { "required": ["layerName", "newText"] }
                }
              }
            ],
            "additionalProperties": false
          }
        }
      },
      "anyOf": [{ "required": ["exactPath"] }, { "required": ["fileHint"] }],
      "allOf": [
        {
          "anyOf": [{ "required": ["edits"] }, { "required": ["layerName", "newText"] }]
        }
      ],
      "additionalProperties": false
    },
    "workflow": {
      "type": "object",
      "properties": {
        "sourceMode": { "type": "string", "enum": ["inplace", "copy_then_edit"] },
        "copyToDir": { "type": "string" }
      },
      "additionalProperties": false
    },
    "output": {
      "type": "object",
      "properties": {
        "mode": { "type": "string", "enum": ["overwrite", "copy"] },
        "path": { "type": "string" },
        "psd": {
          "type": "object",
          "properties": {
            "mode": { "type": "string", "enum": ["overwrite", "copy"] },
            "path": { "type": "string" }
          },
          "additionalProperties": false
        },
        "exports": {
          "type": "array",
          "items": {
            "type": "object",
      

Sponsored

Ads related to Psd Automator and adjacent AI workflows.