@yoooclaw/cli 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,6 +53,22 @@ yc --help # 等价短 alias
53
53
 
54
54
  错误码统一前缀 `YOOOCLAW_*`(见 [src/errors.ts](src/errors.ts))。
55
55
 
56
+ ## Agent Skill
57
+
58
+ 随包发布 [skills/](skills/) 下的 SKILL.md(流式查通知、从 stdin 建灯效规则、隧道排查),教 Agent 直接调 `yoooclaw` 命令。在 openclaw 插件里这些 Skill 由 `openclaw.plugin.json` 自动注册;独立 CLI 形态下需手动安装到 Agent 的 skills 发现目录:
59
+
60
+ ```bash
61
+ yoooclaw skills list # 列出随包发布的内置 Skill
62
+ yoooclaw skills targets # 查看支持的 Agent 目标和探测结果
63
+ yoooclaw skills install # 自动探测唯一 Agent 后软链安装
64
+ yoooclaw skills install --agent codex
65
+ yoooclaw skills install --agent claude
66
+ yoooclaw skills install --copy # 复制而非软链(Windows 无管理员权限时用)
67
+ yoooclaw skills install --target <dir> --force
68
+ ```
69
+
70
+ 默认软链而非复制:`yoooclaw update self` 升级 CLI 后,Skill 内容自动跟随新版本。裸 `skills install` 只会在检测到唯一 Agent 时自动安装;否则显式传 `--agent claude` / `--agent codex` 或 `--target <dir>`。安装后重启 Agent 会话即可被发现。
71
+
56
72
  ## 数据目录
57
73
 
58
74
  `~/.yoooclaw/`(可用 `YOOOCLAW_HOME` 覆盖,便于测试 / 多实例)。布局见 [src/paths.ts](src/paths.ts) 与 PRD「数据模型」。
@@ -78,3 +94,4 @@ node dist/bin.cjs --help
78
94
  | [src/output/format.ts](src/output/format.ts) | `--format` 统一序列化 + 错误 schema |
79
95
  | [src/errors.ts](src/errors.ts) | `YOOOCLAW_*` 错误码 + `YoooclawError` |
80
96
  | [src/paths.ts](src/paths.ts) | `~/.yoooclaw/` 目录布局解析 |
97
+ | [src/commands/skills.ts](src/commands/skills.ts) | 内置 Skill 列举 / 安装到 Agent skills 目录 |