debug-transpile
Debug a bash command that produces wrong output or crashes in ps-bash
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Debug a bash command that produces wrong output or crashes in ps-bash
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Run the release-blocking Pester gate (tests/PsBash.Tests.ps1) the reliable way — build cmdlets, refresh beside-module DLLs, isolate PSModulePath from a stale installed PsBash, run Invoke-Pester.
Use (or extend) the shared PsBuild PowerShell-text builder and the OS-interface FileSystemHelpers/RunChildProcess helpers instead of hand-rolling PS strings or platform branches
Add a new bash command to the ps-bash transpiler and runtime
Add new grammar production to the bash parser (new token, AST node, or syntax)
Rebuild and publish the local ps-bash exe for testing in opencode
Audit one bash feature against the QA rubric and write its section into docs/testing/interactive-parity-audit.md
| name | debug-transpile |
| description | Debug a bash command that produces wrong output or crashes in ps-bash |
文言:觀PSBASH_DEBUG之transpiled;以源module試;清快取;pwsh直測函數;查引號(花括/逗號/$);查多行BashText;改前先寫回歸測試。
Debug transpile issue for: $ARGUMENTS
PSBASH_DEBUG=1 dotnet run --project src/PsBash.Shell -- -c '<cmd>' → stderr [ps-bash] transpiled:.PSBASH_MODULE=./src/PsBash.Module/PsBash.psd1 dotnet run … -c '<cmd>'. Works only with it → embedded module stale.rm -rf "$TEMP/ps-bash/module-*".pwsh -NoProfile -Command "Import-Module ./src/PsBash.Module/PsBash.psd1 -DisableNameChecking; <test>".{} → scriptblock; , → array sep (both need NeedsPassthroughQuoting); $ → var expansion (single vs double quotes).