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-guardSKILL.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
- Identify the target resource being created (e.g., VPG, Site, Folder).
- Generate a read query (
Get-*orInvoke-RestMethod -Method Get) to check if the resource already exists. - Wrap the creation logic in an
ifblock that only executes if the read query returns$null. - Output a
Write-VerboseorWrite-Informationstatement if the resource already exists, allowing the script to proceed cleanly.
Example Implementation
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
- SKILL.md in the repositoryCheckingsrc/skills/ps-idempotency-guard/SKILL.md
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
[](https://verified-skill.com/skills/jacobbweber/local-agentic-ai-discord-bridge/ps-idempotency-guard)