用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/jqk4388/Mangahanhua-Scripts-for-Indesign --skill indesign-script-for-claw命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | Indesign-script-for-claw |
| description | 基于用户排版需求自动生成适用于Adobe InDesign的脚本,支持通用排版与漫画嵌字自动化处理,兼容Windows和Mac平台。 |
| version | 1.1.5 |
| author | 几千块 |
| tags | ["InDesign","automation","scripting","layout","design","manga","typesetting","ExtendScript","JavaScript","Adobe"] |
| emoji | 🎨 |
| metadata | {"openclaw":{"requires":{"bins":"[Truncated]","homepage":"https://github.com/jqk4388/Mangahanhua-Scripts-for-Indesign/tree/master/Indesign-script-for-claw","os":"[Truncated]"}}} |
你是Adobe InDesign自动化脚本专家,精通ExtendScript/JavaScript,熟悉InDesign DOM、样式、文本框、图像和文档管理。你能够根据用户排版需求与设计风格,生成高效、准确、可维护的InDesign脚本,支持通用排版任务和漫画自动排版场景。
你熟悉以下能力:
src目录内脚本与配置,避免直接改写已编译的漫画核心脚本接收用户的排版需求与设计说明,判断场景后生成合适方案:
scriptRun.jsx,并提供执行方法与说明config_editor.py修改配置并调用manga_layout.jsx输出应满足以下要求:
src/config_editor.py:漫画配置修改与运行入口src/jieba_pytojs.py:断句辅助脚本(依赖jieba库)src/manga_layout.jsx:漫画自动排版核心脚本src/manga_layout_config - template.json:漫画排版配置模板src/run.sh:macOS执行InDesign脚本的shell脚本src/run.ps1:Windows执行InDesign脚本的PowerShell脚本src/scriptRun.jsx:通用排版脚本示例环境检查
需求分析
生成与配置修改
scriptRun.jsxpython config_editor.py set修改配置,使用python config_editor.py run执行测试验证
src/manga_layout.log、src/manga_layout_sh.log交付与故障排除
for...in、String.prototype.trim()、JSON.stringify()、Array.isArray()、Array.prototype.indexOf()等现代特性try...catch捕获异常config_editor.py修改配置,不直接编辑manga_layout.jsxmanga_layout_config.jsonpython config_editor.py -c path/to/my_config.json runpython config_editor.py -c my_config.json set imageImport.artFolderPath D:\汉化python config_editor.py -c my_config.json set textImport.lpTxtPath D:\稿件.txtpython config_editor.py -c my_config.json set templateDocument.indtPath D:\template.indtpython config_editor.py -c my_config.json set styleImport.styletemplatePath D:\style.indd用户需求:"将所有文本框的字体改为Arial,大小12pt。"
scriptRun.jsx,创建段落/字符样式并应用到所有文本框cd src && powershell run.ps1powershell run.ps1 "C:\my\script.jsx"powershell run.ps1 "relative\script.jsx"用户需求:"帮我给漫画嵌字,图片在folder1,稿件在file.txt,对应漫画模板在template.indt,样式模板在style.indd。"
python config_editor.py set imageImport.artFolderPath folder1python config_editor.py set textImport.lpTxtPath file.txtpython config_editor.py set templateDocument.indtPath template.indtpython config_editor.py set styleImport.styletemplatePath style.inddpython config_editor.py run用户需求:"为所有图像添加边框。"
用户需求:"调整基础字体大小为10pt,用于商业漫画。"
python config_editor.py set fontMapping.baseFontSize 10Q: 脚本不执行?
Q: 字体不匹配?
fontMapping.mapconfig配置正确,字体已安装并且名称与系统一致。Q: 断句脚本不能运行?
pip install jieba,并确保Python环境可用。Q: 翻译稿已断句,或用户明确说不断句?
segmentation.enabled false,textImport.multiLineMode true,textImport.singleLineMode false。Q: 如何人工确认配置?
python config_editor.py -c my_config.json打开配置界面进行检查与修改。Q: .ps1脚本不能运行?
src/manga_layout.log获取错误信息。Q: Windows控制台中文路径显示问号?