powershell-module-scaffolder

Generate PowerShell module structures with Pester test harnesses.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/irwins/platform-agent-kit --skill powershell-module-scaffolder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: powershell-module-scaffolder
Source: https://github.com/irwins/platform-agent-kit/tree/main/.github/skills/powershell-module-scaffolder
Command: npx skills add https://github.com/irwins/platform-agent-kit --skill powershell-module-scaffolder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolds PowerShell modules with tests to speed up bootstrapping and enforce consistent module layouts.

Core Features & Use Cases

  • Module scaffolding: generates .psm1, .psd1, Public function placeholders, and a standard folder layout.
  • Testing harness: includes a Pester-based test skeleton to validate functionality.
  • CI readiness: provides a ready baseline for PSScriptAnalyzer and a clean starting point for CI.

Quick Start

To generate a new module scaffold, provide a module name and optional functions. The tool outputs a complete module tree with sample code and tests.

Frequently Asked Questions about powershell-module-scaffolder

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

FAQPage Schema
How do I scaffold a PowerShell module with Pester tests?▼

Scaffolding a PowerShell module with Pester tests is automated by providing a module name to generate the .psm1, .psd1, public function placeholders, and a standard folder layout. This enforces approved naming conventions and outputs a ready-to-commit project.

What is the best way to enforce consistent folder layouts for PowerShell modules?▼

Enforcing consistent folder layouts for PowerShell modules is achieved by automating the scaffolding process. The generated structure includes standard directories, public function placeholders, and a PSScriptAnalyzer baseline to ensure uniform layouts across development and CI workflows.

Can I use PSScriptAnalyzer baselines when bootstrapping a new PowerShell module?▼

Yes, you can use a PSScriptAnalyzer baseline when bootstrapping a PowerShell module. The scaffolding process provides a ready baseline for PSScriptAnalyzer, ensuring your generated module structure starts clean and passes CI linting checks immediately.

Do I need to manually create a Pester test harness for my PowerShell module?▼

No, you do not need to manually create a Pester test harness. The scaffolding automatically includes a Pester-based test skeleton to validate functionality, providing a clean starting point for your development and continuous integration workflows.

Does PowerShell module scaffolding generate both psm1 and psd1 files?▼

Yes, PowerShell module scaffolding generates both .psm1 and .psd1 files. Along with these core files, it creates public function placeholders and a standard folder layout, enforcing approved naming conventions for a complete module tree.

When should I automate PowerShell module scaffolding instead of building it manually?▼

Automating PowerShell module scaffolding should be used when you need to speed up bootstrapping and enforce consistent module layouts. It is ideal for CI workflows, providing a ready-to-commit project with Pester tests and a PSScriptAnalyzer baseline.