โ† All skills
Tencent SkillHub ยท Developer Tools

PowerShell Safe Chain

Chain PowerShell commands safely without &&. Use try/catch, ErrorAction, and proper sequencing for reliable Windows execution.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Chain PowerShell commands safely without &&. Use try/catch, ErrorAction, and proper sequencing for reliable Windows execution.

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 8 sections Open source page

PowerShell Safe Chain

Chain commands reliably on Windows PowerShell. No && anti-patterns.

Problem

PowerShell differs from bash: && does NOT work for command chaining Parameter parsing is case-insensitive but strict Errors continue by default (no fail-fast) Path separators vary (\ vs /)

1. Safe Chaining Pattern

Wrong: mkdir test && cd test && echo done Right: $ErrorActionPreference = 'Stop' try { New-Item -ItemType Directory -Path test -Force Set-Location test Write-Host 'done' } catch { Write-Error "Failed at step: $_" exit 1 }

2. Conditional Chaining

# If-then pattern if (Test-Path $file) { Remove-Item $file Write-Host "Deleted" } else { Write-Warning "File not found" } # Pipeline with error handling Get-Process | Where-Object CPU -GT 100 | Stop-Process -WhatIf

3. Splatting for Complex Commands

$params = @{ Path = $filePath Encoding = 'UTF8' Force = $true } Set-Content @params

Executable Completion Criteria

CriteriaVerificationNo && in scriptsSelect-String '&&' *.ps1 returns nothingErrorAction setSelect-String 'ErrorAction' *.ps1 matchestry/catch present`Select-String 'tryPaths use Join-PathSelect-String 'Join-Path' *.ps1 matches

Privacy/Safety

No hardcoded credentials Use [SecureString] for passwords Environment variables via $env:VAR

Self-Use Trigger

Use when: Writing any PowerShell script Chaining 2+ commands Executing file operations Chain safely. Fail explicitly.

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs
  • SKILL.md Primary doc