Skip to content
vudovn avatar

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
View on GitHub

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 -y

Installs 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.Lengthif ($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

Similar to Powershell Windows

More CLI & Terminal