powershell-reliable
Execute PowerShell commands reliably on Windows. Avoid &&, handle parameter parsing, recover from interruptions, and ensure cross-session continuity.
Why use this skill?
Master reliable PowerShell command execution on Windows. Learn how to handle errors, background tasks, and safe file operations with the powershell-reliable skill.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/dalomeve/powershell-reliableWhat This Skill Does
The powershell-reliable skill is a robust wrapper designed to standardize and stabilize PowerShell command execution within OpenClaw. It addresses the inherent volatility of shell commands on Windows by replacing unreliable bash-style syntax with proper, failure-aware PowerShell patterns. The skill enforces the use of try-catch blocks for error handling, strict encoding for file operations, and safe path construction. It is specifically built to handle long-running background tasks, preventing session timeouts, and implementing retry logic for transient failures like network fluctuations or file locks. By abstracting away the nuances of Windows-specific command parsing, it ensures that your AI agents interact with the OS in a predictable and repeatable manner.
Installation
To integrate this skill into your environment, use the OpenClaw command-line interface as follows:
clawhub install openclaw/skills/skills/dalomeve/powershell-reliable
Use Cases
- Automated Deployments: Safely executing software installation scripts that require cleanup, verification, and error logging.
- System Maintenance: Managing file system cleanup, log rotation, or configuration updates that need to be persisted regardless of session state.
- Data Pipelines: Orchestrating complex PowerShell tasks that involve downloading files via web requests and processing them with native cmdlets.
- Background Task Management: Running long-duration tasks in the background with automated timeout handling and retrieval logic.
Example Prompts
- "Use powershell-reliable to check if the C:\Logs directory exists, if not create it, then download the latest report from https://api.example.com/status and save it to that directory using UTF8 encoding."
- "Run the system cleanup script using the powershell-reliable retry pattern, ensuring it attempts the operation 3 times before failing."
- "Start a background job via powershell-reliable to compress the data folder, wait for 60 seconds, and return the output."
Tips & Limitations
- Always use explicit parameters: Never use shorthand aliases; always define the full parameter name to ensure script durability.
- Encoding matters: When outputting logs or generated data, strictly define
-Encoding UTF8to avoid byte-order mark corruption. - Checkpointing: For scripts that run for more than a few minutes, always implement the checkpoint pattern provided in the documentation to allow for seamless recovery after a process interruption.
- Environment Variables: Always reference variables using the
$env:prefix, as standard shell expansion often fails in non-interactive agent contexts.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-dalomeve-powershell-reliable": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution, network-access
Related Skills
model-route-guard
Diagnose and fix model routing conflicts. Ensure primary model uses correct provider endpoint without duplicate overrides.
Instruction Anchor Guard
Skill by dalomeve
ui-design-optimizer
Generate practical UI design systems and starter pages using local style/color/typography datasets. Use for landing page or dashboard UI planning and implementation.
Skill Governance Balanced
Skill by dalomeve
evidence-url-verifier
Verify evidence URLs are real and accessible. Check that artifact links resolve to actual content, not placeholders.