jacobbweber/local-agentic-ai-discord-bridge/ps-idempotency-guard

Claude Code and agent skill by jacobbweber/local-agentic-ai-discord-bridge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Forces PowerShell scripts to check for existing resource state ("Get") before attempting mutations ("Create" / "Update").

Install

npx vskill@latest install jacobbweber/local-agentic-ai-discord-bridge/ps-idempotency-guard

SKILL.md

The same SKILL.md was published earlier as jacobbweber/local-agentic-ai-discord-bridge/ps-idempotency-guard.

Intent

Prevent script failures and duplicate resource allocation by ensuring all automation scripts are fully idempotent.

When to use this skill

  • Whenever generating a script that executes New-*, Add-*, Set-*, or POST/PUT REST API calls.
  • When reviewing code for destructive or state-changing operations.

Instructions

  1. Identify the target resource being created (e.g., VPG, Site, Folder).
  2. Generate a read query (Get-* or Invoke-RestMethod -Method Get) to check if the resource already exists.
  3. Wrap the creation logic in an if block that only executes if the read query returns $null.
  4. Output a Write-Verbose or Write-Information statement if the resource already exists, allowing the script to proceed cleanly.

Example Implementation

powershell
$existingVpg = Get-ZertoVPG -Name $VpgName -ErrorAction SilentlyContinue
if (-not $existingVpg) {
Write-Verbose "VPG '$VpgName' not found. Initiating creation sequence."
New-ZertoVPG -Name $VpgName -SiteId $SiteId
} else {
Write-Verbose "VPG '$VpgName' already exists. Skipping creation."
}

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/jacobbweber/local-agentic-ai-discord-bridge/ps-idempotency-guard/badge)](https://verified-skill.com/skills/jacobbweber/local-agentic-ai-discord-bridge/ps-idempotency-guard)

Something wrong with this skill or its page? Tell us.