powershell-windows — powershell-windows install and setup powershell-windows, AI-tools, community, powershell-windows install and setup, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Windows Administration Agents needing advanced scripting and automation capabilities with PowerShell powershell-windows is a set of critical patterns and pitfalls for Windows PowerShell, focusing on operator syntax rules and Unicode restrictions.

Features

Enforces parentheses requirements for cmdlet calls with logical operators
Avoids Unicode and emoji restrictions in PowerShell scripts
Optimizes script syntax with correct operator usage
Provides examples of correct and incorrect syntax for common pitfalls
Improves script reliability with proper use of parentheses and logical operators

# Core Topics

Nickzhan1001 Nickzhan1001
[0]
[0]
Updated: 3/8/2026

Agent Capability Analysis

The powershell-windows skill by Nickzhan1001 is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance. Optimized for powershell-windows install and setup.

Ideal Agent Persona

Perfect for Windows Administration Agents needing advanced scripting and automation capabilities with PowerShell

Core Value

Empowers agents to write efficient and error-free PowerShell scripts using critical patterns and pitfalls, including proper operator syntax rules and Unicode/Emoji restrictions, ensuring seamless execution of cmdlets like Test-Path and Get-Item

Capabilities Granted for powershell-windows

Automating Windows system administration tasks using optimized PowerShell scripts
Debugging complex PowerShell scripts with logical operator syntax issues
Generating reports on system configurations and file structures using Get-Item and Test-Path cmdlets

! Prerequisites & Limits

  • Requires Windows operating system
  • PowerShell version compatibility required
  • Parentheses required for cmdlet calls with logical operators
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

powershell-windows

Install powershell-windows, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

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

Pattern:

$value = $obj.prop.sub
Write-Output "Value: $value"

5. Error Handling

ErrorActionPreference

ValueUse
StopDevelopment (fail fast)
ContinueProduction scripts
SilentlyContinueWhen errors expected

Try/Catch Pattern

  • Don't return inside try block
  • Use finally for cleanup
  • Return after try/catch

6. File Paths

Windows Path Rules

PatternUse
Literal pathC:\Users\User\file.txt
Variable pathJoin-Path $env:USERPROFILE "file.txt"
RelativeJoin-Path $ScriptDir "data"

Rule: Use Join-Path for cross-platform safety.


7. Array Operations

Correct Patterns

OperationSyntax
Empty array$array = @()
Add item$array += $item
ArrayList add`$list.Add($item)

8. JSON Operations

CRITICAL: Depth Parameter

❌ Wrong✅ Correct
ConvertTo-JsonConvertTo-Json -Depth 10

Rule: Always specify -Depth for nested objects.

File Operations

OperationPattern
Read`Get-Content "file.json" -Raw
Write`$data

9. Common Errors

Error MessageCauseFix
"parameter 'or'"Missing parenthesesWrap cmdlets in ()
"Unexpected token"Unicode characterUse ASCII only
"Cannot find property"Null objectCheck null first
"Cannot convert"Type mismatchUse .ToString()

10. Script Template

powershell
1# Strict mode 2Set-StrictMode -Version Latest 3$ErrorActionPreference = "Continue" 4 5# Paths 6$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path 7 8# Main 9try { 10 # Logic here 11 Write-Output "[OK] Done" 12 exit 0 13} 14catch { 15 Write-Warning "Error: $_" 16 exit 1 17}

Remember: PowerShell has unique syntax rules. Parentheses, ASCII-only, and null checks are non-negotiable.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is powershell-windows?

Perfect for Windows Administration Agents needing advanced scripting and automation capabilities with PowerShell powershell-windows is a set of critical patterns and pitfalls for Windows PowerShell, focusing on operator syntax rules and Unicode restrictions.

How do I install powershell-windows?

Run the command: npx killer-skills add Nickzhan1001/AI-tools/powershell-windows. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for powershell-windows?

Key use cases include: Automating Windows system administration tasks using optimized PowerShell scripts, Debugging complex PowerShell scripts with logical operator syntax issues, Generating reports on system configurations and file structures using Get-Item and Test-Path cmdlets.

Which IDEs are compatible with powershell-windows?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for powershell-windows?

Requires Windows operating system. PowerShell version compatibility required. Parentheses required for cmdlet calls with logical operators.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add Nickzhan1001/AI-tools/powershell-windows. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use powershell-windows immediately in the current project.

Related Skills

Looking for an alternative to powershell-windows or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI