What problem does it solve?
This Skill ensures your PowerShell code adheres to strict enterprise standards for structure, error handling, security, and performance, preventing common bugs and improving maintainability.
Core Features & Use Cases
- Code Generation & Review: Write new PowerShell scripts or functions following best practices, or have existing code reviewed against these standards.
- Error Handling & Debugging: Implement robust
try/catch blocks, check exit codes, and avoid common pipeline pitfalls.
- Security Hardening: Enforce secure credential handling, avoid
Invoke-Expression, and ensure CLM compatibility.
- Performance Optimization: Apply patterns that significantly improve script execution speed.
- Use Case: You need to write a PowerShell script to manage Active Directory users. This Skill will guide you to create a robust, secure, and efficient script that includes proper parameter handling, error trapping, and logging.
Quick Start
Use the powershell skill to write a PowerShell script that retrieves all services on a remote machine and outputs their status.