Install
openclaw skills install @cikichen/wsl-shell-reliabilityReliability-first shell selection policy for AI agents on Windows. Choose WSL or PowerShell based on execution risk, not preference.
openclaw skills install @cikichen/wsl-shell-reliabilityUse this skill to maximize terminal command success on Windows.
This skill does not force WSL. It enforces a reliability-first policy:
| Question | If Yes | If No |
|---|---|---|
| Windows-native task/tool? | Use PowerShell/CMD | Next question |
| POSIX/bash semantics required? | Use WSL/bash | Next question |
| Need Linux-first parity? | Prefer WSL/bash | Next question |
| High Windows-shell parse risk? | Prefer WSL/bash | Next question |
| Both paths low risk? | Pick shell with fewer moving parts | N/A |
Examples:
winget, reg, netsh, .exe/.msi, service/system ops.rm -rf, export, ./script.sh, grep/sed/awk, complex pipes.Apply rules in this priority order when guidance appears to conflict:
If still ambiguous, choose the shell with lower execution-failure risk.
winget, scoop, choco.msi/.exe installer flowsmsbuild/.NET packaging chainsDo not run bash syntax directly in PowerShell/CMD.
wsl.exe -e bash --noprofile --norc -lc "<command>"wsl.exe -e bash --noprofile --norc -lc "cd /mnt/<drive>/<path> && <command>"export FOO=bar -> $env:FOO = "bar"rm -rf <path> -> Remove-Item -Recurse -Force <path>cp -r a b -> Copy-Item a b -Recursemv a b -> Move-Item a bcat file -> Get-Content fileUse translations only when fallback requires them.
Fallback to the other shell when:
When falling back, report:
In these cases, prefer explicit fallback and report constraints clearly.
Deep technical notes and examples: