powershell-windows

PowerShell Windows patterns. Critical pitfalls, operator syntax, error handling.

Content Preview
---
name: powershell-windows
description: "PowerShell Windows patterns. Critical pitfalls, operator syntax, error handling."
risk: unknown
source: community
date_added: "2026-02-27"
---

# 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 $
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/powershell-windows.md \
  https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/powershell-windows/SKILL.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/sickn33/antigravity-awesome-skills

Then reference at skills/powershell-windows/SKILL.md

Related Skills