Portabilize hardcoded C:\Users\bowei paths across skill docs

Replace machine-specific C:\Users\bowei\... paths in 7 skill docs with
%USERPROFILE% / $env:USERPROFILE (or $USERPROFILE in Git Bash blocks).
Conda paths use a two-layout resolver (miniconda3\envs vs .conda\envs) or
reference ~\skills_env.md CONDA_LANGGRAPH_PYTHON, since the conda location
is machine-specific. Fixes paths that resolved wrong on non-bowei machines.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
bowei
2026-07-20 20:35:43 +08:00
co-authored by Claude Opus 4.8
parent 2ad9206a88
commit fbfa060b67
7 changed files with 48 additions and 45 deletions
+3 -3
View File
@@ -24,8 +24,8 @@
需要在 `SKILL.md` 中的“执行规范”或相关步骤的命令示例中进行如下调整(在后续实施时可直接修改):
1. **更改执行命令**:将所有示例中的 `python` 更改为 `python.exe`。
*原版:* `python "C:/Users/bowei/.claude/skills/fpga_flash/scripts/gen_mcs.py" ...`
*修改后:* `python.exe "C:/Users/bowei/.claude/skills/fpga_flash/scripts/gen_mcs.py" ...`
*原版:* `python "%USERPROFILE%/.claude/skills/fpga_flash/scripts/gen_mcs.py" ...`
*修改后:* `python.exe "%USERPROFILE%/.claude/skills/fpga_flash/scripts/gen_mcs.py" ...`
2. **增加跨环境路径转换指令**:在 `SKILL.md` 头部或执行规范中增加一条针对 WSL 环境的强调说明:
> **【WSL 跨环境执行重点约束】**
@@ -39,7 +39,7 @@ OpenClaw 对 `SKILL.md` 的支持与 Claude Code 兼容。可以通过以下方
在 WSL 中执行 OpenClaw 的 skill 安装命令,直接指向包含 `SKILL.md` 的目录。例如:
```bash
openclaw skills install /mnt/c/Users/bowei/.claude/skills/fpga_flash
openclaw skills install /mnt/c/Users/<当前用户>/.claude/skills/fpga_flash
```
*(注:根据 OpenClaw `skills --help` 的提示,`install` 指令支持本地路径安装。)*