← 返回
未分类 中文

Psd Batch Export

Production PSD batch workflow for analyzing PSD text layers, mapping Excel/CSV data to editable layers, previewing, exporting editable PSD plus PNG batches,...
生产级 PSD 批量工作流:分析 PSD 文本层、将 Excel/CSV 数据映射到可编辑层、预览、导出可编辑 PSD 及 PNG 批量文件。
luis1213899
未分类 clawhub v4.4.2 4 版本 100000 Key: 无需
★ 1
Stars
📥 444
下载
💾 0
安装
4
版本
#ai#ai-design#analysis#batch#cached-bg#chinese#color#coupon#design#export#font-library#font-matching#invite#latest#layer#layout#llm#member#modify#morning#ocr#poster#psd#recruit#style-detection#template#universal

概述

PSD Batch Export Skill

Use this skill for production PSD batch generation. Resolve all paths relative to the directory containing this SKILL.md; do not rely on machine-specific absolute paths.

Preferred Entry Point

Use the unified CLI first:

python scripts/psd_batch.py diagnose --json
python scripts/psd_batch.py analyze "template.psd" --data "data.xlsx" --json-out report.json
python scripts/psd_batch.py preview "template.psd" --data "data.xlsx" --out "out" --rows 3
python scripts/psd_batch.py export "template.psd" --data "data.xlsx" --out "out" --dpi 300 --verify-samples 3
python scripts/psd_batch.py verify "out" --samples 3
python scripts/psd_batch.py templates list
python scripts/psd_batch.py templates info morning

Built-in template IDs can be used instead of PSD paths: morning, tech, doodle.

Workflow

  1. Run diagnose --json before production work to check required Python packages, fonts, templates, optional OCR, and optional LLM configuration.
  2. Run analyze with the PSD and optional Excel/CSV data source. Review layers, mapping, capacity_risks, fonts, warnings, and errors.
  3. Run preview before full export. Check out/dryrun_preview/ and the JSON report.
  4. Run export to generate out/psd/, out/png/, and out/verify_report/report.json. Replacement text keeps the original PSD text-layer color; pass --color R G B only when the user explicitly requests a uniform override.
  5. Run verify again when outputs are moved or inspected separately.

Use --strict for production batches where low-confidence column matches, capacity overflow, or missing fonts should stop the run before export.

Stable Report Contract

All primary commands support --json and --json-out . The report includes:

  • status: ok or error
  • inputs: PSD, data, output, or template inputs
  • layers: detected PSD text layer details
  • mapping: data-column to layer mapping with confidence
  • capacity_risks: text fields likely to truncate
  • fonts: available fonts and matching recommendations
  • outputs: generated directories, files, and verification report paths
  • warnings: non-fatal production risks
  • errors: fatal failures
  • runtime_sec: elapsed seconds

Exit codes are stable: 0 success, 1 input error, 2 dependency/PSD compatibility error, 3 export or verification failure, 4 unexpected error.

Legacy Entrypoints

Older scripts are kept for compatibility:

python scripts/batch_from_excel.py "data.xlsx" "template.psd" "out" --dry-run
python scripts/batch_from_excel.py "data.xlsx" "template.psd" "out"
python scripts/ai_designer.py --list
python scripts/color_tools.py --recommend ticket
python scripts/smart_layout.py --preset certificate
python scripts/psd_text_editor.py "in.psd" "out.psd" "图层名=新文本"

Prefer scripts/psd_batch.py for new workflows because it provides structured reports and stable exit codes.

References

  • references/templates.json: built-in PSD template catalog and editable fields.
  • references/runtime-compat.md: Claude, Codex, OpenClaw, and ClawHub install/validation commands.

Verification

Run these before publishing or sharing the skill:

python -m compileall -q scripts
python -m pytest -q
python scripts/psd_batch.py diagnose --json

For Codex validation on Windows, run with UTF-8 mode:

$env:PYTHONUTF8='1'; python C:\Users\26240\.codex\skills\.system\skill-creator\scripts\quick_validate.py .

For OpenClaw validation, install the local skill and then check visibility:

openclaw skills install . --global --force
openclaw skills check --json

Do not publish to ClawHub unless the user explicitly asks for a release.

版本历史

共 4 个版本

  • v4.4.2 当前
    2026-06-07 12:37
  • v4.3.1
    2026-06-06 06:50
  • v4.3.0
    2026-06-01 12:43
  • v2.5.2
    2026-05-28 13:35

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

Dream Selfimproving

luis1213899
让AI每晚自动复盘对话、提取洞察、更新记忆,夜间悄然进化;无需手动记录,AI自行记住重要信息,越用越聪明。
★ 2 📥 766

令牌管理中心

luis1213899
令牌与账号密钥管理中心 v2.1 — 统一管理第三方 API 令牌、账户密码、SSH 密钥。提供分类管理、到期提醒、密码生成、加密备份、使用统计、审计日志、防暴力破解、安全删除。
★ 0 📥 411

Content Catcher

luis1213899
虾抓抓 v4.0 - 超强内容抓取,支持 Markdown、PDF、多模态提取、结构化抽取、翻译、视频下载。触发词:抓取网页、网页转Markdown、内容抓取、虾抓抓、视频下载
★ 0 📥 492