Powershell Windows
PowerShell-on-Windows patterns that flag operator parenthesization, ASCII-only output, and null-check pitfalls.
- CCM score
- 54 of 100
- skills.sh installs
- 425
- GitHub stars
- 8.2K
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers operator syntax rules, Unicode restrictions, null-check patterns, string interpolation, and error handling for Windows PowerShell
- Includes common error-message lookup table mapping messages like "Unexpected token" to their causes and fixes
- Enforces parentheses around each cmdlet call under logical operators and ASCII-only characters in scripts
- Designed for writing or reviewing PowerShell scripts on Windows systems, not macOS or Linux
Install
$ npx -y skills add vudovn/ag-kit --skill powershell-windows -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
PowerShell Windows Patterns
Critical patterns and pitfalls for Windows PowerShell.
1. Operator Syntax Rules
CRITICAL: Parentheses Required
| ❌ Wrong | ✅ Correct |
|---|---|
if (Test-Path "a" -or Test-Path "b") | if ((Test-Path "a") -or (Test-Path "b")) |
if (Get-Item $x -and $y -eq 5) | if ((Get-Item $x) -and ($y -eq 5)) |
Rule: Each cmdlet call MUST be in parentheses when using logical operators.
2. Unicode/Emoji Restriction
CRITICAL: No Unicode in Scripts
| Purpose | ❌ Don't Use | ✅ Use |
|---|---|---|
| Success | ✅ ✓ | [OK] [+] |
| Error | ❌ ✗ 🔴 | [!] [X] |
| Warning | ⚠️ 🟡 | [*] [WARN] |
| Info | ℹ️ 🔵 | [i] [INFO] |
| Progress | ⏳ | [...] |
Rule: Use ASCII characters only in PowerShell scripts.
3. Null Check Patterns
Always Check Before Access
| ❌ Wrong | ✅ Correct |
|---|---|
$array.Count -gt 0 | $array -and $array.Count -gt 0 |
$text.Length | if ($text) { $text.Length } |
4. String Interpolation
Complex Expressions
| ❌ Wrong | ✅ Correct |
|---|---|
"Value: $($obj.prop.sub)" | Store in variable first |
Details
- Repository
- github.com/vudovn/ag-kit
- Category
- CLI & Terminal
- First seen
- Jun 3, 2026
Questions
What does the powershell-windows skill do?
It gives the agent PowerShell patterns for Windows systems, covering operator syntax rules, ASCII-only scripts, null checks, error handling and JSON depth. It applies when writing PowerShell scripts or using Windows-specific commands, and is not meant for macOS or Linux.
How do I install the powershell-windows skill?
Run npx -y skills add vudovn/ag-kit --skill powershell-windows -y in your project. Once installed, the agent can follow these PowerShell rules when writing or reviewing Windows scripts.
Which category is powershell-windows in on Claude Marketplaces?
It sits in the CLI and Terminal category. Other skills there include herdr, gws-shared, opentui, cf-cli and pnpm, and this skill focuses on PowerShell script pitfalls rather than general terminal tooling.
Which tools does the powershell-windows skill allow the agent to use?
The skill lists Read, Write, Edit, Glob, Grep and Bash as allowed tools. It needs no separate accounts or API keys, and it is meant for working on Windows systems.
More from vudovn/ag-kit
All 30- Code Review Checklist339
- Webapp Testing334
- Clean Code317
- Systematic Debugging298
- Game Development282
- Intelligent Routing274
- Database Design272
- Mcp Builder244
- App Builder243
- Red Team Tactics237
- Nodejs Best Practices235
- Architecture234
- Brainstorming229
- Bash Linux226
- I18n Localization226
- Vulnerability Scanner222
- Plan Writing219
- Testing Patterns218
- Tailwind Patterns216
- Api Patterns215
- Deployment Procedures214
- Performance Profiling214
- Behavioral Modes213
- Python Patterns207
Similar to Powershell Windows
More CLI & Terminalbash-linuxSkillvudovn/ag-kit226 installsBash command reference covering chaining, file, process, text, network, and scripting patterns for Linux and macOS.
powershell-masterSkilljosiahsiegel/claude-plugin-marketplace1.2K installsComprehensive PowerShell guidance for cross-platform scripting, modules, CI/CD, and cloud automation.
shellSkillpproenca/dot-skills718 installsShell scripting guide of 49 rules for safe, portable, and maintainable bash and POSIX sh scripts.
powershell-shell-detectionSkilljosiahsiegel/claude-plugin-marketplace218 installsCross-shell detection and path, env-var, and invocation recipes for PowerShell and Git Bash/MSYS2 on Windows.
Oh My Posh ValidatorMCP serverjandedobbeleer23.8K starsValidation of oh-my-posh prompt configurations and segment snippets against the official schema.
bash-scriptingSkillmindrally/skills942 installsShell scripting conventions for secure, portable, and well-handled automation scripts in DevOps work.