From c593f94a5e0c8c14b6c7e19817a8b7153f84ee32 Mon Sep 17 00:00:00 2001 From: ypshidifu Date: Wed, 23 Sep 2026 19:55:48 +0800 Subject: [PATCH] =?UTF-8?q?README=EF=BC=9A=E8=A1=A5=E5=9B=9Eskill=E6=8E=A8?= =?UTF-8?q?=E6=8B=89=E7=AB=A0=E8=8A=82=EF=BC=88=E5=B9=B6=E8=A1=8C=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E8=A6=86=E7=9B=96=E4=B8=A2=E5=A4=B1=E5=9B=9E=E8=A1=A5?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a6e0b99..8b2dbaf 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,18 @@ WSL 侧同理:`file:///root/.config/opencode/tui-plugins/oc-session-all.js`。 | `Ctrl+o` | — | 打开会话选择器 | | `/sessions-all` | `resume-all`, `continue-all` | 斜杠命令 | | — | `/mcpon` `/mcpoff` | MCP 开关(对调 + 推送兜底 + 热重载) | -| — | 任意位置 `/home` 等 | CLI 菜单(`wsl-round-mcp/oc.py`)跳回顶层,见其 README | +| — | 任意位置 `/home` 等 | CLI 菜单(`wsl-round-mcp/oc.py`)跳回顶层,见下节 | + +## skill 推拉(wsl-round-mcp) + +菜单入口 `oc.py`(任意位置 `/home` 回顶层),skill 管理简化为三动作,**输出路径用户不可选**: + +- **推送 push**:只输入源路径(带引号自动剥离成对引号,单侧引号不动)→ 输出固定为 WSL OC skill 目录; + 先只读探查同名文件夹:**不存在直接放,存在才询问是否覆盖**(`--force` 跳过确认)。 +- **拉取 pull**:只输入 skill 名 → 输出固定为本机 `~/.config/opencode/skills`,同样探查式覆盖。 +- **删除 delete**:`--local` 删本机 / 缺省删 WSL,`--yes` 跳过确认;不存在时报错退出码非 0。 +- 覆盖与删除统一先移入 `/.trash/<时间戳>/` 备份(点前缀目录,OC 不会当技能加载)。 +- 推送前过标准 skill 校验(SKILL.md 结构等),不合规拒推。 ## 项目结构