# Send PowerShell Safe Chain to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
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

```text
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.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "powershell-safe-chain",
    "name": "PowerShell Safe Chain",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Dalomeve/powershell-safe-chain",
    "canonicalUrl": "https://clawhub.ai/Dalomeve/powershell-safe-chain",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/powershell-safe-chain",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=powershell-safe-chain",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "powershell-safe-chain",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T08:41:09.328Z",
      "expiresAt": "2026-05-14T08:41:09.328Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=powershell-safe-chain",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=powershell-safe-chain",
        "contentDisposition": "attachment; filename=\"powershell-safe-chain-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "powershell-safe-chain"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/powershell-safe-chain"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/powershell-safe-chain",
    "downloadUrl": "https://openagent3.xyz/downloads/powershell-safe-chain",
    "agentUrl": "https://openagent3.xyz/skills/powershell-safe-chain/agent",
    "manifestUrl": "https://openagent3.xyz/skills/powershell-safe-chain/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/powershell-safe-chain/agent.md"
  }
}
```
## Documentation

### 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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Dalomeve
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-07T08:41:09.328Z
- Expires at: 2026-05-14T08:41:09.328Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/powershell-safe-chain)
- [Send to Agent page](https://openagent3.xyz/skills/powershell-safe-chain/agent)
- [JSON manifest](https://openagent3.xyz/skills/powershell-safe-chain/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/powershell-safe-chain/agent.md)
- [Download page](https://openagent3.xyz/downloads/powershell-safe-chain)