何时用
要让 Agent 加载具名能力(含说明与资产),而不是含糊地说「去采集/发布一下」。
结果
- Skills visible from composer
/menu - Invocation via
/skill:nameexpands on send (platform discovery; Redis-backed catalog) - Agent executes against skill files that were actually installed/mounted
来源
| Source | Typical location / mechanism |
|---|---|
| Project / Space | workspace .agents/skills/<name>/ |
| User config | user-level skills (host-dependent) |
| Platform | built-in Cohub skills |
| Mod | skills shipped by mounted Spaces |
npx skills add … --copy installs into agent/project skill dirs so composer/CLI can see them.
步骤
- 只装/挂本任务 skill。
- Composer 输入
/浏览,或直接/skill:name。 - 确认 skill 目录内有脚本/模板;缺资产多半是包装错(资源没打进 skill)。
- skill 标记后再给硬约束任务。
- 无头场景用 CLI/SDK 列表能力;仍以文件为准。
- 看不见时:重装、重挂 mod、重启沙箱、核对 name。
编写提醒
Skill packages for npx skills add must look like:
skills/<name>/
SKILL.md
scripts/… or template/… # bundled assetsRoot-level scripts/ next to skills/ will not install.
完成标准
- [ ]
/skill:nameresolves in composer (or explicit path fallback works) - [ ] Smoke action succeeded using skill assets
- [ ] No mystery duplicate skill names
示例
Account-wide web search → put hyper-search in config Space (see search-layers), not only in one project.
别这样做
- Pasting entire SKILL.md into every prompt instead of invoking it
- Relying on skill names that never shipped to the Space
- Dumping 30 skills then wondering why the Agent flails