Refactor existing PowerShell scripts to simplify flow, reduce duplication, standardize naming and structure, and tighten behavior without changing the intended outcome.
$npx -y skills add mickpletcher/ai-skills --skill powershell-refactorInstalls into the current project.
Run `npx skills use "https://github.com/mickpletcher/ai-skills" --skill "mickpletcher/ai-skills/powershell-refactor"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/mickpletcher/ai-skills" that are relevant to the current task. Run `npx skills add "https://github.com/mickpletcher/ai-skills"` and select the relevant skills, then follow their instructions.