Powershell Style Guide
This PowerShell Style Guide helps you write cleaner, more consistent scripts by enforcing best practices for readability and maintainability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add powershell-style-guide npx -- -y @trustedskills/powershell-style-guide
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"powershell-style-guide": {
"command": "npx",
"args": [
"-y",
"@trustedskills/powershell-style-guide"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill provides guidance and enforces best practices for writing PowerShell scripts. It helps ensure consistency, readability, and maintainability of your PowerShell code by applying a defined style guide. The agent can analyze existing scripts or generate new ones adhering to the specified conventions.
When to use it
- Code Review: Have the agent review an existing PowerShell script to identify stylistic issues and suggest improvements.
- Script Generation: Generate new PowerShell scripts from scratch, ensuring they follow the defined style guide from the outset.
- Team Standardization: Enforce a consistent coding style across a team of PowerShell developers.
- Learning & Education: Use it as a learning tool to understand and apply PowerShell best practices.
Key capabilities
- Style Guide Enforcement
- Code Analysis
- Script Generation
- Consistency Checking
Example prompts
- "Review this PowerShell script for style guide violations: [script content]"
- "Generate a PowerShell script to list all files in a directory, following the established style guide."
- "Analyze this script and suggest improvements based on the PowerShell style guide."
Tips & gotchas
The effectiveness of this skill depends on having a clearly defined and configured PowerShell style guide. Ensure that the agent has access to or is aware of the specific rules and conventions you want it to apply.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.