Awesome Cohub
EN
实践卡startercohub.bp.skill-slash-discovery3 min

何时用

要让 Agent 加载具名能力(含说明与资产),而不是含糊地说「去采集/发布一下」。

结果

  • Skills visible from composer / menu
  • Invocation via /skill:name expands on send (platform discovery; Redis-backed catalog)
  • Agent executes against skill files that were actually installed/mounted

来源

SourceTypical location / mechanism
Project / Spaceworkspace .agents/skills/<name>/
User configuser-level skills (host-dependent)
Platformbuilt-in Cohub skills
Modskills shipped by mounted Spaces

npx skills add … --copy installs into agent/project skill dirs so composer/CLI can see them.

步骤

  1. 只装/挂本任务 skill。
  2. Composer 输入 / 浏览,或直接 /skill:name。
  3. 确认 skill 目录内有脚本/模板;缺资产多半是包装错(资源没打进 skill)。
  4. skill 标记后再给硬约束任务。
  5. 无头场景用 CLI/SDK 列表能力;仍以文件为准。
  6. 看不见时:重装、重挂 mod、重启沙箱、核对 name。

编写提醒

Skill packages for npx skills add must look like:

skills/<name>/
  SKILL.md
  scripts/… or template/…   # bundled assets

Root-level scripts/ next to skills/ will not install.

完成标准

  • [ ] /skill:name resolves 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