Powershell
PowerShell scripting for Windows automation, cmdlets, and administration. Use for .ps1 files.From its SKILL.md
npx -y skills add G1Joshi/Agent-Skills --skill powershellAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 12 stars12 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.3 KB, 299 tokens by cl100k_base, as published. Nobody here has run it
PowerShell
A task-based command-line shell and scripting language built on .NET.
When to Use
- Windows system administration
- Azure management
- Object-oriented scripting
- Cross-platform automation (PowerShell Core)
Quick Start
$name = "World"
Write-Host "Hello, $name!"
$processes = Get-Process | Where-Object { $_.CPU -gt 10 }
foreach ($p in $processes) {
Write-Output $p.Name
}
Core Concepts
Cmdlets
Lightweight commands used in the PowerShell environment (Verb-Noun structure).
Get-ProcessNew-ItemSet-Location
Objects
PowerShell pipes Objects, not text.
Get-Service | Select-Object -Property Name, Status
Pipeline
Passes objects from one cmdlet to the next.
Best Practices
Do:
- Use the Verb-Noun naming convention for functions
- Use
Try/Catchfor error handling - Use
[CmdletBinding()]for advanced functions - Output objects, not text (
Write-OutputoverWrite-Host)
Don't:
- Parse text output like in Bash (use object properties)
- Use aliases in scripts (readability)
References
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.