← Back to Skills Marketplace
luis1213899

PSD批量修改导出

by luis1213899 · GitHub ↗ · v2.5.2 · MIT-0
cross-platform ✓ Security Clean
90
Downloads
0
Stars
0
Active Installs
9
Versions
Install in OpenClaw
/install psd-batch-export
Description
PSD批量修改导出 — 任何PSD+任何Excel → 自动替换文本图层 → 批量输出PNG。通用:支持任意PSD模板、自动匹配列名、自动检测字号颜色。触发词:PSD批量、门票生成、批量导出、Excel PSD、文本替换、观赛登记、证书批量、psd批量修改导出。
README (SKILL.md)

\r \r

PSD 批量修改导出\r

\r 通用 PSD 批量导出工具。任何 PSD + 任何 Excel → 一键 PNG。\r \r

安装\r

\r

# 方式一:ClawHub 安装(推荐)\r
clawhub install luis1213899/psd-batch-export\r
\r
# 方式二:解压 ZIP 到任意目录,进入 scripts/ 运行\r
cd psd-batch-export/scripts/\r
python batch_from_excel.py 名单.xlsx 模板.psd output/\r
```\r
\r
## 快速开始\r
\r
```bash\r
# 预览\r
python batch_from_excel.py 名单.xlsx 模板.psd --dry-run\r
\r
# 导出\r
python batch_from_excel.py 名单.xlsx 模板.psd output/ --color 0 0 0 --size 54\r
```\r
python batch_from_excel.py 名单.xlsx 模板.psd output/ --cols 姓名,学校,赛区\r
```\r
\r
## 流程\r
\r
Excel + PSD → [batch_from_excel] → 批量PSD → 批量PNG(300DPI)\r
\r
## 三个脚本\r
\r
| 脚本 | 用途 |\r
|------|------|\r
| [batch_from_excel.py](./scripts/batch_from_excel.py) | 一键流程 |\r
| [psd_text_editor.py](./scripts/psd_text_editor.py) | PSD文本二进制修改 |\r
| [render_psd_batch.py](./scripts/render_psd_batch.py) | PSD→PNG渲染 |\r
\r
## 参数\r
\r
| 参数 | 说明 | 默认 |\r
|------|------|------|\r
| `--font` | 字体路径 | 系统黑体 |\r
| `--color R G B` | 文字颜色 | PSD原色 |\r
| `--size N` | 字号 | PSD原字号 |\r
| `--align` | 对齐 | center |\r
| `--dpi` | 输出DPI | 300 |\r
| `--cols` | 列映射 | 自动匹配 |\r
\r
## 自动列匹配\r
\r
1. 精确包含匹配\r
2. 同义词:名字↔姓名、学校↔school、赛区↔division\r
3. 按 PSD 图层顺序对应 Excel 列顺序\r
\r
## 字体\r
\r
字体合集:[百度网盘](https://pan.baidu.com/s/16mr469ucSXcNpm-6GD_QeA) 提取码 `kxrv`\r
\r
下载后解压到 [fonts/](./fonts/) 目录即可自动生效。\r
\r
```bash\r
# 或使用自动下载\r
python fonts/download_fonts.py --all\r
```\r
\r
## 限制\r
\r
- 新文本字节数 ≤ 原文字节数(超出自动截断)\r
- 依赖: `psd-tools`, `Pillow`, `pandas`, `openpyxl`\r
Usage Guidance
Use this skill only with PSD templates and spreadsheets you intend to process, especially if the Excel file contains personal data. Run the dry-run mode first, choose a dedicated output directory because numbered PSD/PNG files may be overwritten, and only use the optional font download from sources you trust.
Capability Assessment
Purpose & Capability
The artifacts coherently support the stated purpose: they read a user-provided Excel file and PSD template, replace PSD text fields, generate PSD copies, and render PNG outputs.
Instruction Scope
The trigger phrases are broad enough to activate for related document-generation requests, but they are still tied to PSD, Excel, and batch export behavior that the skill discloses.
Install Mechanism
Installation is described as a normal ClawHub install or manual local script execution; no hidden installer, startup hook, or privilege-changing setup is present.
Credentials
The scripts read local PSD/Excel inputs, scan local font directories, write chosen output files, and optionally download a public font, which is proportionate for the purpose but should be user-directed.
Persistence & Privilege
No background service, autostart, credential/session access, privilege escalation, destructive commands, or durable agent behavior was found; persistence is limited to generated files and optional downloaded fonts.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install psd-batch-export
  3. After installation, invoke the skill by name or use /psd-batch-export
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.5.2
v2.5.2: Removed all hardcoded paths. Scripts use relative paths (__file__). SKILL.md uses ClawHub install + generic instructions.
v2.5.1
v2.5.1: Added Baidu Pan font collection link. One-click font library setup. Updated README with direct download link.
v2.5.0
v2.5: Built-in font library. fonts/ directory auto-scanned. download_fonts.py auto-downloader for open-source Chinese fonts. README with recommended fonts and links.
v2.4.0
v2.4: Smart font matching engine. 3-tier match (exact/family/similar) with visual indicator. Shows which system font matches PSD font and confidence level. Clear 'NOT FOUND - use --font' guidance.
v2.3.0
v2.3: Background pre-rendering cache for major perf boost. Cross-platform font discovery (Win/Mac/Linux). Streamlined batch flow with cached composite.
v2.2.0
v2.2: Precise font/style detection. Reads FontSize (exact pt), FontFamily, FillColor, StrokeColor, Position from PSD engine dict. --show-styles flag. Integrated style preview in batch_from_excel dry-run.
v2.1.0
v2.1: Smart column matching with confidence levels + warnings. Text capacity preview (max ASCII/CJK chars). --dry-run preview mode. Auto font discovery. Progress bar with percentage.
v2.0.0
v2.0: Universal batch export. Any PSD + any Excel -> batch PNG. Auto column matching, auto font/color/size detection, unified batch_from_excel.py one-click workflow.
v1.0.0
Renamed from psd-ticket-batch. PSD批量修改导出:Excel + PSD -> batch PNG.
Metadata
Slug psd-batch-export
Version 2.5.2
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 9
Frequently Asked Questions

What is PSD批量修改导出?

PSD批量修改导出 — 任何PSD+任何Excel → 自动替换文本图层 → 批量输出PNG。通用:支持任意PSD模板、自动匹配列名、自动检测字号颜色。触发词:PSD批量、门票生成、批量导出、Excel PSD、文本替换、观赛登记、证书批量、psd批量修改导出。 It is an AI Agent Skill for Claude Code / OpenClaw, with 90 downloads so far.

How do I install PSD批量修改导出?

Run "/install psd-batch-export" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is PSD批量修改导出 free?

Yes, PSD批量修改导出 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does PSD批量修改导出 support?

PSD批量修改导出 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created PSD批量修改导出?

It is built and maintained by luis1213899 (@luis1213899); the current version is v2.5.2.

💬 Comments