powershell-refactor
CommunityTighten PowerShell scripts without changing behavior.
Software Engineering#automation#refactoring#error handling#code cleanup#powershell#script maintainability#idiomatic scripting
Authormickpletcher
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It refactors working but messy PowerShell scripts into clearer, more idiomatic code while preserving the script’s intended behavior.
Core Features & Use Cases
- Simplifies control flow: reduces complexity and makes execution paths easier to understand.
- Reduces duplication and inconsistency: standardizes naming and parameter/function structure to improve maintainability.
- Improves safety and diagnostics: strengthens practical error handling and keeps side effects predictable for admin automation.
Quick Start
Refactor your existing PowerShell .ps1 or .psm1 script by providing the file contents and stating which behavior must remain unchanged.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: powershell-refactor Download link: https://github.com/mickpletcher/AI-Skills/archive/main.zip#powershell-refactor Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.