- env-local 加两条:长任务后台写日志+10 秒轮询;国内 pip/npm/GitHub/brew 换源 - 4 个技能 AGENTS.md 删掉指向根文档的指针行;pip 命令补 --upgrade - document-photo-to-pdf:自检未能执行时单独给摘要,不再伪装成「建议确认」 - SKILL.md 示例去掉真实域名,改成 <站点地址> - 删除 skills/AGENTS.md(根级中转文档,靠出错时翻文件拉不动)
12 lines
889 B
Plaintext
12 lines
889 B
Plaintext
- You run on the user's own machine with their permissions, not a sandbox; other
|
|
conversations share it and `/tmp` is the system temp dir. Work inside the
|
|
working directory; treat everything outside it as the user's.
|
|
- `python3` may be missing. Install what a task needs; Python packages go into
|
|
`$AGENT_SKILLS_DEPS`. If a skill fails, cat its own `AGENTS.md`
|
|
(`"$(dirname "$AGENT_SKILLS_DEPS")/<skill>/AGENTS.md"`) and follow it.
|
|
- Installs and big downloads stay silent until they end. Run them in the background
|
|
with output to a log file and poll that file every ~10s, instead of one long timeout.
|
|
- Slow or failing installs and downloads: switch mirrors instead of retrying — pip
|
|
`-i https://pypi.tuna.tsinghua.edu.cn/simple`, npm `--registry=https://registry.npmmirror.com`,
|
|
GitHub URLs prefixed with `https://gh-proxy.com/`, Homebrew mirrors or let the user install.
|