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 Updated

File contents

Ninthless/agent-skills commit 0b8feb10b5

Frequently asked questions

npx get-skill add ninthless/powershell-safe-commands