windows-builder

windows-builder is a skill for Claude Code from hashicorp/agent-skills. It costs 33 tokens per session (1,227 once invoked), scanned A, original, MPL-2.0.

A guide for building Windows machine images with Packer, a tool that creates reusable virtual-machine or cloud images. It uses WinRM to connect to Windows and PowerShell to configure it.

In plain words
What is it for?
Use it to build Windows images for AWS, Azure, or VMware, configure WinRM, run PowerShell provisioning, and plan for updates and resource cleanup.
Why use it?
It explains the Windows-specific connection and provisioning setup needed for automated image builds, including the longer build time and cleanup risk.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the packer plugin — 4 skills shipped together

Good fit Use it to build Windows images for AWS, Azure, or VMware, configure WinRM, run PowerShell provisioning, and plan for updates and resource cleanup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hashicorp/agent-skills/windows-builder
About the project

HashiCorp Agent Skills is a collection of reusable instructions and plugins that help coding agents work with Terraform and Packer. Developers use it to add HashiCorp product workflows to supported coding-agent tools, either individually or as product bundles.

hashicorp/agent-skills · 943 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hashicorp/agent-skills --skill windows-builder
Clone the repo
git clone --depth 1 https://github.com/hashicorp/agent-skills

Made for: Claude Code.

Or install packer, the plugin that ships this one along with the rest of its 4 skills.

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 windows-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/hashicorp/agent-skills/windows-builder/github.svg)](https://agentmods.dev/skills/hashicorp/agent-skills/windows-builder)
Your own site
<a href="https://agentmods.dev/skills/hashicorp/agent-skills/windows-builder"><img src="https://agentmods.dev/badge/skills/hashicorp/agent-skills/windows-builder/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 windows-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/hashicorp/agent-skills/windows-builder"><img src="https://agentmods.dev/badge/skills/hashicorp/agent-skills/windows-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,227 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. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00033 $0.01227
Opus 5.5 $0.00013 $0.00491
Sonnet 5.5 $0.00007 $0.00245
Haiku 4.5 $0.00003 $0.00123

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

Security

Grade A, and why

windows-builder 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/packer/skills/windows-builder/SKILL.md · 189 lines

How it starts

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

Windows Builder

Platform-agnostic patterns for building Windows images with Packer.

Reference: WinRM Communicator

Note: Windows builds incur significant costs and time. Expect 45-120 minutes per build due to Windows Updates. Failed builds may leave resources running - always verify cleanup.

WinRM Communicator Setup

Windows requires WinRM for Packer communication.

AWS Example

source "amazon-ebs" "windows" {
  region        = "us-west-2"
  instance_type = "t3.medium"

  source_ami_filter {
    filters = {
      name = "Windows_Server-2022-English-Full-Base-*"
    }
    most_recent = true
    owners      = ["amazon"]
  }

  ami_name = "windows-server-2022-${local.timestamp}"

  communicator   = "winrm"
  winrm_username = "Administrator"
  winrm_use_ssl  = true
  winrm_insecure = true
  winrm_timeout  = "15m"

  user_data_file = "scripts/setup-winrm.ps1"
}

WinRM Setup Script (scripts/setup-winrm.ps1)

<powershell>
# Configure WinRM
winrm quickconfig -q
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'

# Configure firewall
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
netsh advfirewall firewall add rule name="WinRM 5986" protocol=TCP dir=in localport=5986 action=allow

# Restart WinRM
net stop winrm
net start winrm
</powershell>

Azure Example

source "azure-arm" "windows" {
  client_id       = var.client_id
  client_secret   = var.client_secret
  subscription_id = var.subscription_id
  tenant_id       = var.tenant_id

  managed_image_resource_group_name = "images-rg"
  managed_image_name                = "windows-${local.timestamp}"

  os_type         = "Windows"
  image_publisher = "MicrosoftWindowsServer"
  image_offer     = "WindowsServer"
  image_sku       = "2022-datacenter-g2"

  location = "East US"
  vm_size  = "Standard_D2s_v3"

  # Azure auto-configures WinRM
  communicator   = "winrm"
  winrm_use_ssl  = true
  winrm_insecure = true
  winrm_timeout  = "15m"
  winrm_username = "packer"
}

Read the full file on GitHub · 189 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 · 189 lines · 33 tokens per session scan A 0ddd0188747e

Subscribe to this mod's changes

windows-builder is a skill published in the GitHub repository hashicorp/agent-skills (943 stars, last pushed 27d ago), licensed MPL-2.0. It adds 33 tokens to every session and 1,227 once invoked, about $0.0001 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-30.

Related

windows-builder compared with skills from other repositories

windows-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
windows-builderhashicorp/agent-skillsSkill94327d agoMPL-2.0A33Claude Code
openshell-cliNVIDIA/OpenShellSkill22kyesterdayApache-2.0A134Claude Code, Codex
azd-deploymentsickn33/agentic-awesome-skillsSkill51ktodayMITA37Claude Code
kubernetes-architectsickn33/agentic-awesome-skillsSkill51ktodayMITA31Claude Code
tao-run-on-slurmNVIDIA/skillsSkill4.2k3d agoApache-2.0A94Claude Code
cdf-orchestration-setupNVIDIA/skillsSkill4.2k3d agoApache-2.0A105Codex
langbot-deploylangbot-app/LangBotSkill19ktodayApache-2.0B104Claude Code, Codex