docs(skills): AGENTS.md 平台中立化,国内网络换源抽到技能根目录一份

This commit is contained in:
2026-11-11 19:38:21 +08:00
parent 10bf2f554b
commit d03d8ba95b
7 changed files with 45 additions and 19 deletions
+6 -4
View File
@@ -1,15 +1,17 @@
# image-process
`ModuleNotFoundError: No module named 'PIL'`
`ModuleNotFoundError: No module named 'PIL'`:把依赖装进 `$AGENT_SKILLS_DEPS`
```sh
python3 -m pip install --target "$AGENT_SKILLS_DEPS" -r "$(dirname "$AGENT_SKILLS_DEPS")/image-process/requirements.txt"
```
`中文水印缺少字体`:传 `font` 参数
`中文水印缺少字体`:传 `font` 参数,指向本机任意中文字体文件(ttf/ttc)
```json
{"action":"watermark","input":"a.jpg","text":"机密","font":"/System/Library/Fonts/Hiragino Sans GB.ttc"}
{"action":"watermark","input":"a.jpg","text":"机密","font":"<本机中文字体路径>"}
```
字体:macOS `/System/Library/Fonts/Hiragino Sans GB.ttc`;Linux `/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc`;Windows `C:\Windows\Fonts\msyh.ttc`。
找字体:Linux `fc-list :lang=zh`;macOS `ls /System/Library/Fonts`;Windows `C:\Windows\Fonts\msyh*`。
网络慢或装不上(pip / GitHub 等):见技能根目录的 `AGENTS.md`。