← 返回 Skills 市场
luis1213899

PSD批量修改导出

作者 luis1213899 · GitHub ↗ · v2.5.2 · MIT-0
cross-platform ✓ 安全检测通过
90
总下载
0
收藏
0
当前安装
9
版本数
在 OpenClaw 中安装
/install psd-batch-export
功能描述
PSD批量修改导出 — 任何PSD+任何Excel → 自动替换文本图层 → 批量输出PNG。通用:支持任意PSD模板、自动匹配列名、自动检测字号颜色。触发词:PSD批量、门票生成、批量导出、Excel PSD、文本替换、观赛登记、证书批量、psd批量修改导出。
使用说明 (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
安全使用建议
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install psd-batch-export
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /psd-batch-export 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug psd-batch-export
版本 2.5.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 9
常见问题

PSD批量修改导出 是什么?

PSD批量修改导出 — 任何PSD+任何Excel → 自动替换文本图层 → 批量输出PNG。通用:支持任意PSD模板、自动匹配列名、自动检测字号颜色。触发词:PSD批量、门票生成、批量导出、Excel PSD、文本替换、观赛登记、证书批量、psd批量修改导出。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 90 次。

如何安装 PSD批量修改导出?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install psd-batch-export」即可一键安装,无需额外配置。

PSD批量修改导出 是免费的吗?

是的,PSD批量修改导出 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

PSD批量修改导出 支持哪些平台?

PSD批量修改导出 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 PSD批量修改导出?

由 luis1213899(@luis1213899)开发并维护,当前版本 v2.5.2。

💬 留言讨论