Powershell Conventions

Best practices and conventions for PowerShell cmdlet development and scripting. Covers Verb-Noun naming with approved verbs, PascalCase parameter and variable naming, parameter design with validation attributes and tab completion, pipeline support via ValueFromPipeline and rich object output, error handling with ShouldProcess, ConfirmImpact, ErrorAction, try/catch, and message streams (Write-Verbose, Write-Warning, Write-Error), and documentation with comment-based help. Use this skill whenever writing, reviewing, or refactoring PowerShell scripts, modules, cmdlets, or advanced functions -- including when the user mentions .ps1 files, PowerShell parameters, pipeline input, ShouldProcess, cmdlet binding, approved verbs, or PowerShell formatting and style, even if they do not explicitly say "PowerShell best practices."

atc-net Updated 3 repo stars

File contents

atc-net/atc-agentic-toolkit/tree/main/plugins/powershell/skills/powershell-conventions commit ba5dd88ff8

Frequently asked questions

npx skillmds@latest add atc-net/powershell-conventions