infra-deploy

infra-deploy is a skill for Claude Code from srnichols/plan-forge. It costs 39 tokens per session (1,085 once invoked), scanned A, original, MIT.

A deployment workflow for Azure infrastructure written with Bicep or Terraform, or managed with azd. It validates the planned changes, deploys them, and checks the result.

In plain words
What is it for?
Use it to lint or validate infrastructure, run an Azure what-if or Terraform plan, deploy to a target environment, and verify deployment status.
Why use it?
It adds pre-deployment checks and a preview of infrastructure changes before applying them to an environment.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is Invoke-Pester -Path ./tests/integration -Output Detailed.

Good fit Use it to lint or validate infrastructure, run an Azure what-if or Terraform plan, deploy to a target environment, and verify deployment status.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/srnichols/plan-forge
agentmods
npx agentmods add skills/srnichols/plan-forge/infra-deploy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for infra-deploy

README.md
[![agentmods](https://agentmods.dev/badge/skills/srnichols/plan-forge/infra-deploy/github.svg)](https://agentmods.dev/skills/srnichols/plan-forge/infra-deploy)
Your own site
<a href="https://agentmods.dev/skills/srnichols/plan-forge/infra-deploy"><img src="https://agentmods.dev/badge/skills/srnichols/plan-forge/infra-deploy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for infra-deploy

Your own site · 80×15
<a href="https://agentmods.dev/skills/srnichols/plan-forge/infra-deploy"><img src="https://agentmods.dev/badge/skills/srnichols/plan-forge/infra-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,085 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01085
Opus 5.5 $0.00016 $0.00434
Sonnet 5.5 $0.00008 $0.00217
Haiku 4.5 $0.00004 $0.00109

Measured 3mo ago against content hash 66e41b606f5c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

infra-deploy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

presets/azure-iac/.github/skills/infra-deploy/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Infrastructure Deploy Skill

Trigger

"Deploy infrastructure" / "Deploy to staging" / "Run azd up" / "Apply Terraform"

Steps

1. Pre-Flight Checks

# Verify active subscription and context
az account show --query "{name: name, id: id}"

# Confirm the target environment
Write-Host "Deploying to: $env:AZURE_ENV_NAME"

# For Bicep: lint before anything
az bicep lint --file infra/main.bicep

# For Terraform
terraform init
terraform fmt -check -recursive
terraform validate

2. What-If / Plan

# Bicep — what-if
az deployment group what-if \
  --resource-group $resourceGroup \
  --template-file infra/main.bicep \
  --parameters infra/main.parameters.json

# Terraform
terraform plan -out=tfplan

# azd
azd provision --preview

3. Deploy

# Bicep
az deployment group create \
  --resource-group $resourceGroup \
  --template-file infra/main.bicep \
  --parameters infra/main.parameters.json \
  --name "deploy-$(Get-Date -Format 'yyyyMMdd-HHmm')"

# Terraform
terraform apply tfplan

# azd (full lifecycle)
azd up --no-prompt

4. Verify

# Check deployment status
az deployment group list \
  --resource-group $resourceGroup \
  --query "[?properties.provisioningState=='Succeeded'] | [-1].name"

# Integration / smoke tests
Invoke-Pester -Path ./tests/integration -Output Detailed

# List any non-succeeded resources
az resource list \
  --resource-group $resourceGroup \
  --query "[?properties.provisioningState!='Succeeded'].{Name:name, Type:type, State:properties.provisioningState}"

Safety Rules

  • ALWAYS run what-if / plan before applying
  • ALWAYS confirm the subscription before deploying to production
  • NEVER apply to production without a preceding staging deployment
  • NEVER auto-approve destructive changes (resource replacement or deletion)
  • Ask before applying any plan that shows resource deletion

Rollback

# Bicep — list recent deployments, redeploy N-1
az deployment group list \
  --resource-group $resourceGroup \
  --query "sort_by([?properties.provisioningState=='Succeeded'], &properties.timestamp)[-2].name" \
  --output tsv

# Terraform
git revert HEAD
terraform apply

# azd
azd down --force  # deprovision, then re-up from last commit
git revert HEAD && azd up

Read the full file on GitHub · 136 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 136 lines · 39 tokens per session scan A 66e41b606f5c

Subscribe to this mod's changes

infra-deploy is a skill published in the GitHub repository srnichols/plan-forge (6 stars, last pushed 26d ago), licensed MIT. It adds 39 tokens to every session and 1,085 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

infra-deploy compared with skills from other repositories

infra-deploy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
infra-deploysrnichols/plan-forgeSkill626d agoMITA39Claude Code
aspiremanagedcode/dotnet-skillsSkill52716d agoMITA145Claude Code, Codex
azure-functionsmanagedcode/dotnet-skillsSkill52716d agoMITA113Claude Code, Codex
wpfmanagedcode/dotnet-skillsSkill52716d agoMITA122Claude Code, Codex
mcpmanagedcode/dotnet-skillsSkill52716d agoMITA123Claude Code, Codex
microsoft-extensions-aimanagedcode/dotnet-skillsSkill52716d agoMITA128Claude Code, Codex
migrate-xunit-to-xunit-v3managedcode/dotnet-skillsSkill52716d agoMITA149Claude Code, Codex