Powershell Safe Commands

Author or repair PowerShell commands safely on Windows when shell parsing can change meaning. Use for $, $_, $env:, @{u}, $(...), nested powershell -Command, here-strings, regex replacements, quoted paths, file edits from shell, generated one-liners, or failures such as $ 被吃了, PowerShell 外层吃了, unterminated strings, and ExpectedValueExpression. Trigger before rerunning a command affected by interpolation, quoting, or wrapper layers, and prefer direct executables, Python, or temporary scripts when safer. Do not use for simple direct commands with no PowerShell-specific syntax, conceptual explanations only, or non-Windows shells.

Ninthless 0b8feb1 5 files · 12.0 KB Updated

File contents

Ninthless/agent-skills/tree/main/skills/powershell-safe-commands commit 0b8feb10b5

Frequently asked questions

npx skillmds@latest add ninthless/powershell-safe-commands