- env-local 加两条:长任务后台写日志+10 秒轮询;国内 pip/npm/GitHub/brew 换源 - 4 个技能 AGENTS.md 删掉指向根文档的指针行;pip 命令补 --upgrade - document-photo-to-pdf:自检未能执行时单独给摘要,不再伪装成「建议确认」 - SKILL.md 示例去掉真实域名,改成 <站点地址> - 删除 skills/AGENTS.md(根级中转文档,靠出错时翻文件拉不动)
558 B
558 B
image-process
ModuleNotFoundError: No module named 'PIL':把依赖装进 $AGENT_SKILLS_DEPS
python3 -m pip install --upgrade --target "$AGENT_SKILLS_DEPS" -r "$(dirname "$AGENT_SKILLS_DEPS")/image-process/requirements.txt"
中文水印缺少字体:传 font 参数,指向本机任意中文字体文件(ttf/ttc)
{"action":"watermark","input":"a.jpg","text":"机密","font":"<本机中文字体路径>"}
找字体:Linux fc-list :lang=zh;macOS ls /System/Library/Fonts;Windows C:\Windows\Fonts\msyh*。