hashicorp avatar

Windows Builder

Handles the tedious parts of building Windows images with Packer: WinRM setup, PowerShell provisioners, and platform-specific configuration for AWS, Azure, and VMware. Includes working examples for installing software via Chocolatey, running Windows Updates, and cleaning up temp files before image capture. The big warning is worth noting: these builds take 45 to 120 minutes and cost real money, mostly because Windows Updates are slow. Good to have if you're maintaining golden images across environments, since the WinRM configuration alone can be finicky to get right.

skills.sh installs
2.8K
GitHub stars
924
last updated
Aug 21, 2026

Install

$ npx -y skills add hashicorp/agent-skills --skill windows-builder --agent claude-code

Installs into .claude/skills of the current project.

Files

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)

Sponsors

Details

Repository
github.com/hashicorp/agent-skills
Categories
DevOps & CI/CD, AI & Agent Building, Cloud & Infrastructure
First seen
May 16, 2026

More from hashicorp/agent-skills

All 16
1nexu-io avatarfigma-generate-librarynexu-io/open-designBuild or update a professional-grade design system library in Figma from a codebase. Useful for keeping the Figma source of truth in sync with shipped component2.8Kskills.sh installs
2slavingia avatarmvpslavingia/skillsGuide building a minimum viable product the minimalist entrepreneur way — manual first, then processized, then productized. Use when someone is ready to build t2.8Kskills.sh installs
3dpearson2699 avatarcore-datadpearson2699/swift-ios-skillsBuild, review, or improve Core Data persistence in apps that have not adopted SwiftData. Use when working with NSManagedObject subclasses, NSFetchedResultsContr2.8Kskills.sh installs
4juliusbrussee avatarcavemanjuliusbrussee/cavekitCaveman encoding for SPEC.md and spec-adjacent writes. Loaded by /spec, /build, /check. Cuts tokens ~75% vs prose while staying precise. Triggers on any write t2.8Kskills.sh installs
5apify avatarapify-lead-generationapify/agent-skillsGenerates B2B/B2C leads by scraping Google Maps, websites, Instagram, TikTok, Facebook, LinkedIn, YouTube, and Google Search. Use when user asks to find leads, 2.8Kskills.sh installs
6ar9av avatarwiki-dashboardar9av/obsidian-wikiCreate dynamic, queryable dashboard views of the Obsidian vault using Obsidian Bases or Dataview. Use this skill when the user says "create a dashboard", "vault2.8Kskills.sh installs