From ea3dce916e7962864e6356a3abb462ab94d1dc84 Mon Sep 17 00:00:00 2001 From: jiahao <2338745276@qq.com> Date: Sun, 13 Sep 2026 20:54:17 +0800 Subject: [PATCH] fix: quote the four remaining argument-hint values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Follow-up to #69 (closes the remaining part of #68). Four skills still carry an unquoted `argument-hint:` value whose text starts with `<…>` and contains `[… : …]`. The `: ` inside that part reads as a nested mapping, so strict YAML parsers (js-yaml / the `yaml` package used by pi) fail on the frontmatter and drop the skill, while lenient parsers (PyYAML) accept it — which is why #69 missed these. - skills/cheat-learn-from/SKILL.md - skills/cheat-predict/SKILL.md - skills/cheat-publish/SKILL.md - skills/cheat-retro/SKILL.md Same mechanical fix as #69: wrap the value in double quotes so it parses as a plain string. No value contains `"` or `\`, so wrapping is safe, and the parsed string is unchanged. Verification: pi 0.85.1's skill loader (bundled `yaml` parser) over the skill directory returns no skill and a "Nested mappings are not allowed in compact mappings" warning before the change, and loads the skill with zero diagnostics after it: before -> skills: [] diagnostics: ['Nested mappings …'] after -> skills: ['cheat-predict'] diagnostics: 0 --- skills/cheat-learn-from/SKILL.md | 2 +- skills/cheat-predict/SKILL.md | 2 +- skills/cheat-publish/SKILL.md | 2 +- skills/cheat-retro/SKILL.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/skills/cheat-learn-from/SKILL.md b/skills/cheat-learn-from/SKILL.md index 4be4a35..a331439 100644 --- a/skills/cheat-learn-from/SKILL.md +++ b/skills/cheat-learn-from/SKILL.md @@ -1,7 +1,7 @@ --- name: cheat-learn-from description: 从对标账号导入 script + 数据 → 拆 pattern + 派生 base rubric 信号 → 写到 benchmark.md / script_patterns.md / rubric_notes.md。**这是工具最早期信号的来源**——cold-start 用户没自己历史时全靠对标,发过历史的用户也建议至少 1 个对标做 sanity check。触发词:"学这个账号"/"拆这几个对标视频"/"learn from"/"导入对标账号"/"找对标"。 -argument-hint: <账号名> [— way: a (default) | b] [— append | --replace] +argument-hint: "<账号名> [— way: a (default) | b] [— append | --replace]" allowed-tools: Bash(*), Read, Write, Edit, Glob, WebFetch, Skill --- diff --git a/skills/cheat-predict/SKILL.md b/skills/cheat-predict/SKILL.md index c6f9d0d..f703b50 100644 --- a/skills/cheat-predict/SKILL.md +++ b/skills/cheat-predict/SKILL.md @@ -1,7 +1,7 @@ --- name: cheat-predict description: 给最终稿写一份 immutable 盲预测日志。这是 cheat-on-content 整个校准循环的核心动作——预测段一旦写完不可改,由 hook 强制。**自动检测**:如目标文件已有 `## 预测` / `## 预测 v1` 段(被 cheat-shoot 调用走 v2 模式),改成 append `## 预测 v2` 而非覆盖。**打分通过 Task tool 委派给 `cheat-score-blind` sub-agent**(context-isolated channel B),主 Claude review 后落盘。触发词:"启动预测"/"start prediction"/"给这稿子打分并预测"/"写预测日志"。 -argument-hint: [— mode: v1|v2] [— prediction-file: ] [— skip-blind] +argument-hint: " [— mode: v1|v2] [— prediction-file: ] [— skip-blind]" allowed-tools: Bash(*), Read, Write, Edit, Glob, Task --- diff --git a/skills/cheat-publish/SKILL.md b/skills/cheat-publish/SKILL.md index 56090a7..825fc04 100644 --- a/skills/cheat-publish/SKILL.md +++ b/skills/cheat-publish/SKILL.md @@ -1,7 +1,7 @@ --- name: cheat-publish description: 登记一篇内容已发布,把 URL/平台 ID/发布时间写入对应预测文件 header 和 state file。这是一个轻量动作——只更新元数据,**不动预测段任何字符**。触发词:"已发布"/"I shipped"/"发布链接是 X"/"刚发完 [url]"/"publish registered"。 -argument-hint: [— platform: youtube|bilibili|douyin|...] +argument-hint: " [— platform: youtube|bilibili|douyin|...]" allowed-tools: Bash(*), Read, Edit, Glob --- diff --git a/skills/cheat-retro/SKILL.md b/skills/cheat-retro/SKILL.md index 4f0fce3..2058216 100644 --- a/skills/cheat-retro/SKILL.md +++ b/skills/cheat-retro/SKILL.md @@ -1,7 +1,7 @@ --- name: cheat-retro description: T+N 天数据回收 + 复盘 + 把实绩观察写入 rubric-memo.md。这是校准循环的反馈环节——不复盘的预测等于占星。触发词:"复盘 [path]"/"retro this"/"T+3d 数据来了"/"抓数据 [path]"/"把这篇复盘了"。 -argument-hint: [— window: 3|5|7] [— source: manual|adapter] +argument-hint: " [— window: 3|5|7] [— source: manual|adapter]" allowed-tools: Bash(*), Read, Edit, Write, Glob, Grep, Skill ---