windowsfy
Installation
SKILL.md
windowsfy
Scans a Node.js project for Unix-only patterns in package.json scripts that fail on Windows native shells (CMD and PowerShell 5.1), then applies portable fixes after user confirmation. Each finding can be fixed in the recommended cross-platform style (using cross-env, shx, glob) or with a shell-specific fallback (CMD, PowerShell, or Bash-family native syntax).
Categories
| Category | Description | Reference |
|---|---|---|
native-dep |
C++ addon packages needing MS BuildTools (tfjs-node, better-sqlite3). | native-deps |
inline-env |
KEY=val node … prefix unsupported by CMD and PowerShell. |
inline-env-vars |
single-quote |
CMD passes single quotes literally — --message 'text' breaks. |
single-quotes |
unix-cmd |
rm -rf, chmod, cp -r, mv, mkdir -p absent on Windows shells. |
unix-commands |
glob-expand |
CMD/PS don't expand **/*.test.ts; literal string reaches the binary. |
glob-patterns |
ps5-ampamp |
PowerShell 5.1 rejects && interactively (npm scripts still work). |
powershell-5-operator |
Platform requirement (HARD)
This skill only runs on Windows native shells: