Skip to content

jj1985/windows-guard

v0.3.0MIT

Stops GitHub Copilot CLI from corrupting files on Windows. Restores line endings and strips BOMs after every edit, blocks bash-isms, unsafe shell writes and silent wrong-directory commands in PowerShell, refuses edits that would destroy non-UTF-8 files, and coaches the model through quoting, edit-match and environment failures instead of letting it rewrite whole files. Ships an optional in-process extension engine.

windows-powershell-quoting

Use when running shell commands on Windows (PowerShell) that involve quotes, JSON or other quote-heavy arguments, paths with spaces, npm/npx/yarn arguments, multi-line content, environment variables, or when a command failed with a "not recognized", "missing terminator", "unexpected token" or quoting error. Also use before writing or rewriting a file from the shell.

Read SKILL.md at the source

Pinned to revision 146119494c29, so it is the text this page describes rather than whatever the author pushed since.

Files

Every link opens the file at its source, pinned to the revision this page describes.