# Setup script for addyosmani/agent-skills on Windows (PowerShell), from https://gitmanual.com/addyosmani/agent-skills # Read it before you run it: the commands come from the repo's own README and files. # Run: powershell -ExecutionPolicy Bypass -File .\setup.ps1 $ErrorActionPreference = "Stop" function Write-Step($t) { Write-Host "`n==> $t" -ForegroundColor Cyan } # Windows ships a python that only opens the Microsoft Store; it doesn't count. function Have($c) { $cmd = Get-Command $c -ErrorAction SilentlyContinue; [bool]$cmd -and $cmd.Source -notlike '*\WindowsApps\*' } # New installs change PATH; pick it up without opening a new window. function Update-Path { $env:Path = [Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [Environment]::GetEnvironmentVariable("Path", "User") } # Stop when a program fails, like bash's set -e. Dot-sourced, so cd and venv activation carry on to the next step. function Invoke-Step([scriptblock]$Block) { $global:LASTEXITCODE = 0; . $Block; if ($LASTEXITCODE) { throw "Failed with exit code $LASTEXITCODE" } } Write-Step '1/3 Clone the repository' if (-not (Test-Path 'agent-skills')) { Invoke-Step { git clone https://github.com/addyosmani/agent-skills.git } } Set-Location 'agent-skills' Write-Step '2/3 Install the required tools' # Node.js Invoke-Step { winget install OpenJS.NodeJS.LTS -e --accept-source-agreements --accept-package-agreements } Write-Step '3/3 Follow the README: Quick Start' # In the maintainers' order. Do the README instructions above first — they cover steps outside the terminal. # install all 25 skills Invoke-Step { npx skills add addyosmani/agent-skills } # browse before installing Invoke-Step { npx skills add addyosmani/agent-skills --list } # five-axis review before merge Invoke-Step { npx skills add addyosmani/agent-skills --skill code-review-and-quality } # requirements interrogation, one question at a time Invoke-Step { npx skills add addyosmani/agent-skills --skill interview-me } # red-green-refactor, enforced Invoke-Step { npx skills add addyosmani/agent-skills --skill test-driven-development } Invoke-Step { /plugin marketplace add addyosmani/agent-skills } Invoke-Step { /plugin install agent-skills@addy-agent-skills } Invoke-Step { /plugin marketplace add https://github.com/addyosmani/agent-skills.git } Invoke-Step { /plugin install agent-skills@addy-agent-skills } Invoke-Step { git config --global url."https://github.com/".insteadOf git@github.com: } Invoke-Step { claude --plugin-dir /path/to/agent-skills } Invoke-Step { agy plugin install https://github.com/addyosmani/agent-skills.git } Invoke-Step { agy plugin install ./agent-skills } Invoke-Step { gemini skills install https://github.com/addyosmani/agent-skills.git --path skills } Invoke-Step { gemini skills install ./agent-skills/skills/ } Invoke-Step { codex plugin marketplace add addyosmani/agent-skills } Invoke-Step { codex plugin add agent-skills@agent-skills } # pick skills to install (project) Invoke-Step { cmd skills add addyosmani/agent-skills } # install for all projects (~/.commandcode/skills/) Invoke-Step { cmd skills add addyosmani/agent-skills --global } # install a specific skill Invoke-Step { cmd skills add addyosmani/agent-skills -s spec-driven-development } Write-Host 'Set up addyosmani/agent-skills.' Write-Host 'Manual: https://gitmanual.com/addyosmani/agent-skills'