A technical guide and rule-set for AI coding agents to write reliable, cross-platform PowerShell scripts while avoiding common syntax and logic traps.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install powershell
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install powershell using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The PowerShell skill for Openclaw Skills serves as a critical reference for AI agents tasked with system administration and automation. Unlike traditional shells, PowerShell's object-oriented pipeline and unique output behaviors can lead to subtle bugs, such as uncaptured expressions leaking into the pipeline or arrays being unexpectedly unrolled into scalars. This skill provides the logical framework to prevent these issues.
By utilizing this skill within the Openclaw Skills ecosystem, developers can ensure their AI-generated scripts are production-ready. It emphasizes the use of pwsh (PowerShell 7+) to maintain compatibility across Linux, macOS, and Windows, while teaching the agent to distinguish between display-only commands like Write-Host and data-centric commands like Write-Output.
To leverage this skill, ensure that PowerShell Core (pwsh) is installed on your target environment. This skill is compatible with Openclaw Skills on Linux, Darwin (macOS), and Win32.
# Check if PowerShell is installed
pwsh --version
# On Ubuntu/Debian
sudo apt-get update && sudo apt-get install -y powershell
# On macOS
brew install --cask powershell
The skill categorizes PowerShell logic into specific domains to ensure the AI agent applies the correct syntax for the given context:
| Category | Technical Focus |
|---|---|
| Output Streams | Management of uncaptured expressions and pipeline suppression. |
| Type Safety | Handling of scalars vs arrays and the use of the @() force operator. |
| Logic Ops | Correct use of comparison operators (-eq, -match, -contains). |
| Error Handling | Terminating error conversion via ErrorAction Stop. |
| Portability | Rules for Join-Path and case-insensitive default behavior. |
Loading
A comprehensive toolkit for building, testing, and automating APIs using Postman collections, environments, and the Newman CLI.

A comprehensive framework for modeling economic transitions where automation replaces traditional labor as the primary income source.

An AI agent skill designed to replace robotic, formal Portuguese with authentic, regional, and human-sounding conversational language.

An AI-powered local guide to Portugal that prioritizes authentic experiences, regional expertise, and avoiding tourist traps.

A versatile spiritual management system for scheduling, logging, and tracking prayers and intentions across any faith tradition.

A privacy-focused, clinical-grade tracking and triage system for pregnancy management within Openclaw Skills.








































