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
+8 -8
View File
@@ -25,7 +25,7 @@ description: >
```powershell
conda run -n langgraph python `
"C:\Users\bowei\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
"$env:USERPROFILE\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
start --input-dir "E:\<proj>\Notes" --output-dir "E:\<proj>\fpga_runs"
```
@@ -41,10 +41,10 @@ conda run -n langgraph python `
| Item | Value |
|---|---|
| Root | `E:\LangGraph_Design\fpga-goldenref-flow` |
| Conda env | `langgraph` (`C:\Users\bowei\.conda\envs\langgraph`) |
| Conda env | `langgraph` (path 见 `~\skills_env.md` 的 `CONDA_LANGGRAPH_PYTHON`) |
| Graph name | `fpga_goldenref_flow` (在 `langgraph.json` 里声明;进程内驱动直接 `build_graph()`) |
| Default input dir | `Notes/` (contains PR00.md, Task00.md) |
| Helper script | `C:\Users\bowei\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py` |
| Helper script | `%USERPROFILE%\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py` |
---
@@ -63,7 +63,7 @@ conda run -n langgraph python `
Run the helper script using the `langgraph` conda environment:
```powershell
conda run -n langgraph python `
"C:\Users\bowei\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
"$env:USERPROFILE\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
start `
--input-dir "E:\<project-path>\Notes" `
--output-dir "E:\<project-path>\fpga_runs"
@@ -100,7 +100,7 @@ Ask the user which model (use AskUserQuestion), offering **Opus 4.8 (default/rec
**Fable 5**, **Sonnet 4.6**. Then resume with the choice:
```powershell
conda run -n langgraph python `
"C:\Users\bowei\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
"$env:USERPROFILE\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
resume --output-dir "E:\<project-path>\fpga_runs" `
--plan-model opus # or: fable | sonnet | a full id like claude-opus-4-8
```
@@ -137,7 +137,7 @@ Wait for the user's answer before proceeding to Step 3.
**If the user approves:**
```powershell
conda run -n langgraph python `
"C:\Users\bowei\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
"$env:USERPROFILE\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
resume --output-dir "E:\<project-path>\fpga_runs"
```
(Default behaviour is approved — no extra flag needed.)
@@ -145,7 +145,7 @@ conda run -n langgraph python `
**If the user rejects:**
```powershell
conda run -n langgraph python `
"C:\Users\bowei\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
"$env:USERPROFILE\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
resume --output-dir "E:\<project-path>\fpga_runs" `
--rejected --feedback "<user feedback verbatim>"
```
@@ -161,7 +161,7 @@ exit code 2 again with new plans — repeat Step 2.
> 额度被占满,工作流已停在断点(状态已存 SQLite,不降级)。等 codex 空出来后从断点续跑:
> ```powershell
> conda run -n langgraph python `
> "C:\Users\bowei\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
> "$env:USERPROFILE\.claude\skills\fpga-goldenref-flow\scripts\run_fpga_local.py" `
> continue --output-dir "E:\<project-path>\fpga_runs"
> ```