Skip to content

docs(skills): add cross-platform notes so Windows users translate shell examples#489

Merged
IceyLiu merged 1 commit into
mainfrom
docs/skills-windows-platform-notes
Jun 18, 2026
Merged

docs(skills): add cross-platform notes so Windows users translate shell examples#489
IceyLiu merged 1 commit into
mainfrom
docs/skills-windows-platform-notes

Conversation

@IceyLiu

@IceyLiu IceyLiu commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

背景

内置 skills 和 cowork 助手规则里的命令示例几乎都是 macOS/Linux(bash/zsh)写法 —— heredoc、&& 链、$(...)python3~/ 路径、grep/jq 管道。执行工具本身已经是中性的(不限 bash)、运行时也已支持 Windows,但命令文案仍假定 UNIX,导致模型在 Windows 上可能照抄示例直接执行而失败(参见 cowork.zh-CN 里 "Bash - 命令执行" / python skills/... 等)。

改动

纯增量修复:在每个含可执行命令的 skill/规则文件 frontmatter 之后插入一段 "Platform note"。

  • 一行现有命令都没改(diff 全是新增,零删除)→ macOS/Linux 行为不变,零回归风险
  • ✅ Windows 上给模型一张明确的 bash → PowerShell 翻译表,而不是靠它自己推断

范围

类型 数量 内容
命令密集型 skill 19 完整翻译表(officecli-*、moltbook、morph-ppt[-3d]、openclaw-setup、aionui-config/-troubleshooting/-webui-public、story-roleplay、mermaid、auto-inject/officecli、auto-inject/aionui-skills)
仅 python/路径 skill 4 精简说明(pdf、x-recruiter、xiaohongshu-recruiter、auto-inject/skill-creator)
cowork 助手规则 3 本地化守卫(zh-CN / en-US / ru-RU)

刻意不动:无可执行命令的 skill(weixin-file-send、aionui-webui-setup、cron);命令本身的重写(heredoc → 临时文件等)不在本 PR 范围。

验证

  • git diff --numstat 确认所有文件均为 N 0(additions-only),无删除、无命令改动
  • 渲染抽查 officecli-xlsx / cowork.zh-CN / pdf 插入位置与格式正确
  • 纯文档改动,无需 cargo 验证

🤖 Generated with Claude Code

…ll examples

Built-in skills and the cowork assistant rules document shell commands using
macOS/Linux (bash/zsh) syntax — heredocs, `&&` chains, `$(...)`, `python3`,
`~/` paths, `grep`/`jq` pipes. The execution tool is OS-neutral and the runtime
already runs on Windows, but the command text still assumes UNIX, so a model can
copy the examples verbatim and fail on Windows (cmd/PowerShell).

This is a purely additive fix: insert a "Platform note" block right after the
frontmatter of every skill/rule file that contains runnable commands. No
existing command is changed (diff is additions-only), so macOS/Linux behaviour
is unchanged and there is no regression risk. On Windows the note gives the
model an explicit bash→PowerShell translation table instead of relying on it to
infer the difference.

Scope:
- 19 command-heavy skills get the full translation table (officecli-*, moltbook,
  morph-ppt[-3d], openclaw-setup, aionui-config/-troubleshooting/-webui-public,
  story-roleplay, mermaid, auto-inject/officecli, auto-inject/aionui-skills)
- 4 python/path-only skills get a short note (pdf, x-recruiter,
  xiaohongshu-recruiter, auto-inject/skill-creator)
- cowork assistant rules get a localized guard (zh-CN / en-US / ru-RU)

Skills with no runnable commands are intentionally left untouched. Command
rewrites (heredoc → temp file, etc.) are deliberately out of scope.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@IceyLiu IceyLiu enabled auto-merge (squash) June 18, 2026 09:55
@IceyLiu IceyLiu merged commit e03b030 into main Jun 18, 2026
6 checks passed
@IceyLiu IceyLiu deleted the docs/skills-windows-platform-notes branch June 18, 2026 10:06
piorpua pushed a commit that referenced this pull request Jun 18, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.1.32](v0.1.31...v0.1.32)
(2026-06-18)


### Features

* **team:** centralize team MCP prompt governance
([#490](#490))
([5485a95](5485a95))


### Bug Fixes

* **acp:** recover dead ACP connections
([#487](#487))
([8264873](8264873))
* **conversation:** upsert streaming tool calls (AIO-30)
([#484](#484))
([a0b3737](a0b3737))


### Documentation

* **skills:** add cross-platform notes so Windows users translate shell
examples ([#489](#489))
([e03b030](e03b030))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant