You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make skill cross-platform: fix macOS-only paths for Windows/Linux
- Replace hardcoded /tmp/ with ${TMPDIR:-/tmp}/ (respects macOS per-user
temp dir; falls back to /tmp on Linux; adds Windows PowerShell comments)
- Expand Claude Desktop config path from macOS-only ~/Library/Application
Support/Claude/ to a per-platform table (macOS / Linux / Windows)
- Split sub-skills table into base-path-per-platform + relative sub-path
so Windows users use %USERPROFILE%\.claude\skills\webex-cli\ correctly
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: skill/SKILL.md
+32-13Lines changed: 32 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,12 +94,17 @@ All other CC resources (site, team, users, global-variables, business-hour, audi
94
94
95
95
1.**Always redirect stderr separately** when capturing JSON output:
96
96
```bash
97
-
webex cc site list --orgid="$ORG"> /tmp/result.json 2>/tmp/error.log
97
+
# Mac/Linux/WSL — $TMPDIR is set on macOS; falls back to /tmp on Linux
98
+
webex cc site list --orgid="$ORG">"${TMPDIR:-/tmp}/result.json"2>"${TMPDIR:-/tmp}/error.log"
99
+
# Windows PowerShell
100
+
# webex cc site list --orgid="$ORG" > "$env:TEMP\result.json" 2> "$env:TEMP\error.log"
98
101
```
99
102
100
103
2.**Use `--orgid=VALUE` syntax** (with `=`) for CC commands to avoid shell quoting issues. Do NOT use `--orgid "$VAR"` with a space — use `--orgid="$VAR"`.
101
104
102
105
3.**Write output to temp files first**, then read/analyze. Do NOT pipe webex output directly into python or jq in a single shell command — complex pipes can cause issues with the binary output.
106
+
- Mac/Linux/WSL: use `"${TMPDIR:-/tmp}/filename.json"`
107
+
- Windows PowerShell: use `"$env:TEMP\filename.json"`
103
108
104
109
4.**Check `--help` before guessing** subcommand names:
0 commit comments