← Back to Skills Marketplace
405
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install powershell-safe-chain
Description
Chain PowerShell commands safely without &&. Use try/catch, ErrorAction, and proper sequencing for reliable Windows execution.
Usage Guidance
This skill is a set of PowerShell best-practice instructions and appears coherent and low-risk. Before using: review the SKILL.md examples and any commands you plan to run against your system (the verification commands search *.ps1 in the working directory), and avoid blindly executing scripts from untrusted sources. Note the skill has no homepage or known author — if you need higher assurance, prefer guidance from a vetted documentation source or a trusted PowerShell style guide.
Capability Analysis
Type: OpenClaw Skill
Name: powershell-safe-chain
Version: 1.0.0
The skill bundle provides instructions and examples for writing safe PowerShell scripts, focusing on proper error handling and command chaining without using `&&`. The `SKILL.md` content is purely educational and prescriptive, offering best practices and verification criteria for PowerShell code. There are no commands intended for malicious execution, data exfiltration, persistence, or prompt injection against the agent. All examples and verification steps are benign and align with the stated purpose of promoting secure scripting.
Capability Assessment
Purpose & Capability
Name/description (safe PowerShell chaining) align with the content: the SKILL.md contains patterns, examples, and checks that are relevant to writing and verifying PowerShell scripts. No unrelated binaries, credentials, or config paths are requested.
Instruction Scope
The runtime instructions are limited to coding patterns, try/catch, ErrorAction, splatting, and a few verification commands (Select-String against *.ps1). Those checks operate on PowerShell scripts (reasonable for this skill). The doc does not instruct reading unrelated system secrets or sending data externally.
Install Mechanism
No install spec and no code files — instruction-only. This minimizes disk writes and external downloads; low installation risk.
Credentials
No environment variables, credentials, or config paths are required. The doc merely advises how to reference env vars in PowerShell when appropriate (using $env:VAR) and to use SecureString for passwords — proportionate to the topic.
Persistence & Privilege
Skill is not marked always:true and does not request persistent presence or modify other skills/settings. It is user-invocable and may be invoked autonomously (platform default), which is expected for skills.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install powershell-safe-chain - After installation, invoke the skill by name or use
/powershell-safe-chain - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release introducing safe command chaining patterns for PowerShell:
- Explains why `&&` shouldn't be used for command chaining in PowerShell.
- Provides recommended patterns using `try/catch`, `ErrorActionPreference`, and conditionals.
- Shows splatting for clean parameter handling in complex commands.
- Lists criteria for executable script safety and compliance.
- Adds privacy and safety best practices for credentials and environment variables.
Metadata
Frequently Asked Questions
What is PowerShell Safe Chain?
Chain PowerShell commands safely without &&. Use try/catch, ErrorAction, and proper sequencing for reliable Windows execution. It is an AI Agent Skill for Claude Code / OpenClaw, with 405 downloads so far.
How do I install PowerShell Safe Chain?
Run "/install powershell-safe-chain" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is PowerShell Safe Chain free?
Yes, PowerShell Safe Chain is completely free (open-source). You can download, install and use it at no cost.
Which platforms does PowerShell Safe Chain support?
PowerShell Safe Chain is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created PowerShell Safe Chain?
It is built and maintained by Dalomeve (@dalomeve); the current version is v1.0.0.
More Skills