What problem does it solve?
This Skill ensures that AI agents execute commands correctly within a Windows PowerShell environment, preventing errors caused by incompatible Unix commands and promoting the use of native PowerShell cmdlets or provided tools.
Core Features & Use Cases
- Enforces PowerShell Native Commands: Strictly prohibits the use of Unix-like commands (e.g.,
rm, ls, grep) and mandates the use of their PowerShell equivalents (e.g., Remove-Item, Get-ChildItem, Select-String).
- Prioritizes Agent Tools: Directs agents to use built-in tools like
grep_search, list_dir, and view_file over direct command-line execution whenever possible.
- Handles Encoding: Provides guidance on setting UTF8 encoding for command output to prevent garbled text, especially with Japanese characters.
- Use Case: An AI agent needs to list files in a directory and then search for a specific string within a file. Instead of using
ls and grep, it should use the list_dir tool and the grep_search tool, respectively, to ensure compatibility and reliability in the Windows PowerShell environment.
Quick Start
Use the windows-powershell-rules skill to ensure all commands are executed using native PowerShell cmdlets or provided agent tools.