# Setup script for heygen-com/skills on Windows (PowerShell), from https://gitmanual.com/heygen-com/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/2 Clone the repository' if (-not (Test-Path 'skills')) { Invoke-Step { git clone https://github.com/heygen-com/skills.git } } Set-Location 'skills' Write-Step '2/2 Follow the README: Install' # Run these in Git Bash (installed with Git) or WSL — not PowerShell. Do the README instructions above first. Invoke-Step { Read https://raw.githubusercontent.com/heygen-com/skills/master/INSTALL_FOR_AGENTS.md and follow it. } Invoke-Step { Ask me for any API keys you need. } Invoke-Step { gh skill install heygen-com/skills heygen-avatar } Invoke-Step { gh skill install heygen-com/skills heygen-video } Invoke-Step { gh skill install heygen-com/skills heygen-translate } Invoke-Step { clawhub install heygen-skills } Invoke-Step { openclaw plugins install clawhub:@heygen/openclaw-plugin-heygen } Invoke-Step { curl -fsSL https://static.heygen.ai/cli/install.sh | bash } # (fill in your own values, then run it) export HEYGEN_API_KEY= Invoke-Step { heygen --version } Invoke-Step { heygen auth status } Invoke-Step { claude mcp add --transport http heygen https://mcp.heygen.com/mcp/v1/ } Write-Host 'Set up heygen-com/skills.' Write-Host 'Manual: https://gitmanual.com/heygen-com/skills'