← ClaudeAtlas

powershellbuildlisted

This skill should be used when the user asks to "set up PowerShellBuild", "create a psakeFile with -FromModule", "configure PSBPreference", "publish a PowerShell module to PSGallery", "set up Pester tests for a module", or mentions PowerShellBuild, PSBPreference, -FromModule PowerShellBuild, PowerShellBuild.IB.Tasks, PSScriptAnalyzer integration, PlatyPS help generation, code coverage thresholds, or PowerShell module build/test/publish pipelines.
psake/psake-llm-tools · ★ 1 · Web & Frontend · score 69
Install: claude install-skill psake/psake-llm-tools
# PowerShellBuild PowerShellBuild provides standardized build, test, and publish tasks for PowerShell modules. It works with both **psake** (≥ 4.8.0) and **Invoke-Build** (≥ 5.8.1). ## Decision Tree **Which task runner are you using?** - **psake** → use `task <Name> -FromModule PowerShellBuild` pattern - **Invoke-Build** → use `. PowerShellBuild.IB.Tasks` pattern - **Not sure / starting fresh** → default to psake (simpler syntax) **What do you need?** - Set up a new module project → See `references/complete-example.md` - Override build behavior → [Configuration ($PSBPreference)](#configuration-psbpreference) - Customize task dependencies → [Modifying Task Dependencies](#modifying-task-dependencies) - CI/CD setup → See `references/ci-cd.md` ## Quick Start ```powershell Install-Module -Name PowerShellBuild -Repository PSGallery -Scope CurrentUser Install-Module -Name psake -MinimumVersion 4.8.0 -Repository PSGallery -Scope CurrentUser ``` ### Minimal psakeFile.ps1 > **Do NOT `Import-Module PowerShellBuild` in psakeFile.ps1** — `-FromModule` loads the module automatically when psake parses the task definitions. ```powershell properties { $PSBPreference.Test.ScriptAnalysis.Enabled = $true $PSBPreference.Test.CodeCoverage.Enabled = $false } task default -depends Test task Test -FromModule PowerShellBuild task Publish -FromModule PowerShellBuild ``` This gives you: `Init → Clean → StageFiles → BuildHelp → Build → Analyze → Pester → Test → Publish` ## Proje