If you're shipping scripts or automation that needs to run across PowerShell, Git Bash, and cmd on Windows, this gives you the detection logic and compatibility patterns to stop guessing. It covers the priority order for shell detection (PSModulePath first, then MSYSTEM), the path conversion gotchas in Git Bash that silently break things, and how to call PowerShell from bash and vice versa. The real value is in the specifics: when MSYS_NO_PATHCONV matters, why environment variable syntax breaks cross-shell, and which detection method actually works reliably. Use it when you're tired of scripts that work in your shell but fail in CI or on a teammate's machine.
npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill powershell-shell-detection