aarushlohit/therocketproject/windows-powershell
Claude Code and agent skill by aarushlohit/therocketproject
- community
Checking that the SKILL.md file is still in the repository.
Use PowerShell 5.1+ effectively on Windows — cmdlets, scripting, pipeline, file system, process management, error handling. Use when: PowerShell, Windows, .bat, .ps1, scripting, automation, Windows terminal, cmd.
Install
npx vskill@latest install aarushlohit/therocketproject/windows-powershellSKILL.md
The same SKILL.md was published earlier as aarushlohit/therocketproject/windows-powershell.
Windows PowerShell
Best practices for PowerShell scripting and automation on Windows.
Cmdlet Naming Convention
PowerShell uses Verb-Noun naming:
Get-Process,Set-Content,Invoke-WebRequest,ConvertTo-Json- Common verbs:
Get,Set,New,Remove,Invoke,Test,ConvertTo,Format
Scripting Best Practices
- Use
-Filterover-Include/-Excludefor performance withGet-ChildItem. - Prefer
$using:scope in script blocks for remote/background jobs. - Use splatting for cmdlets with many parameters:
``powershell $params = @{ Path = "C:\logs" Recurse = $true Filter = "*.log" } Get-ChildItem @params ``
- Use
Try/Catch/Finallyfor error handling:
``powershell try { $content = Get-Content -Path "config.json" -ErrorAction Stop } catch [System.IO.FileNotFoundException] { Write-Error "Config file not found" } catch { Write-Error "Unexpected error: $_" } ``
Common Patterns
- Check admin:
if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) - Test path before access:
if (Test-Path $path) { ... } - Join paths:
Join-Path $parent $child(not string concatenation) - Read JSON:
Get-Content file.json | ConvertFrom-Json - Write JSON:
$data | ConvertTo-Json -Depth 10 | Set-Content file.json
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrocket/.github/skills/windows-powershell/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aarushlohit/therocketproject/windows-powershell)