PowerShell Core Builder

Bootstrap dependencies, build, and test PowerShell Core on Windows.

1|Updated Dec 12, 2025
One-click install
npx skills add https://github.com/Verridian-ai/life-os-Pulse-banner-generator --skill powershell-core-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: PowerShell Core Builder
Source: https://github.com/Verridian-ai/life-os-Pulse-banner-generator/tree/main/.claude/skills/powershell_build
Command: npx skills add https://github.com/Verridian-ai/life-os-Pulse-banner-generator --skill powershell-core-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides developers through building PowerShell Core on Windows from source, tackling the challenges of bootstrapping dependencies, compiling the core, and validating changes within the PowerShell repository.

Core Features & Use Cases

  • Bootstrapping: Manage dependencies and setup with Start-PSBootstrap.
  • Building: Compile the PowerShell Core using Start-PSBuild.
  • Testing: Execute tests with Start-PSPester to verify builds.
  • Use Case: Contributors working in the official PowerShell repository can bootstrap, build, and test changes locally.

Quick Start

In a Windows development environment, run the following sequence to bootstrap, build, and test PowerShell Core:

  • Import-Module ./build.psm1
  • Start-PSBootstrap -Scenario Dotnet
  • Start-PSBuild -Clean -PSModuleRestore -UseNuGetOrg
  • Start-PSPester -UseNuGetOrg

Frequently Asked Questions about PowerShell Core Builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build PowerShell Core from source on Windows?

To build PowerShell Core on Windows, import the build module and run Start-PSBuild with parameters like -Clean and -PSModuleRestore. This compiles the core executable from the PowerShell repository using the .NET Core SDK.

What dependencies do I need to compile PowerShell on Windows?

Compiling PowerShell on Windows requires Visual Studio 2019+, the .NET Core SDK, and Git. You can manage and setup these build dependencies automatically by running the Start-PSBootstrap command with the Dotnet scenario.

How do I run Pester tests after building PowerShell Core?

Run Pester tests for PowerShell Core by executing the Start-PSPester command with the -UseNuGetOrg parameter. This validates your local build and verifies code changes within the PowerShell repository.

What is the best way to bootstrap dependencies for a PowerShell repository?

The best way to bootstrap dependencies for the PowerShell repository is using Start-PSBootstrap -Scenario Dotnet. This prepares the Windows development environment by installing required .NET frameworks and tools before compilation.

Can I restore PowerShell modules while compiling the core?

Yes, you can restore PowerShell modules during the build process by running Start-PSBuild with the -PSModuleRestore and -UseNuGetOrg parameters. This ensures all required modules are available for testing.