Control the Windows PC from WSL2. Use when the user asks to open/close applications, manage processes, take screenshots, control windows, manage files on Win...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install pc-master或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install pc-master⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/pc-master/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: pc-master description: Control the Windows PC from WSL2. Use when the user asks to open/close applications, manage processes, take screenshots, control windows, manage files on Windows (C:\), automate tasks, or do anything that requires interacting with the Windows host from WSL2 (e.g. "open Chrome", "kill Spotify", "take a screenshot", "list running apps", "move a file on Windows"). ---
All Windows binaries are accessible via /mnt/c/Windows/System32/. Call them directly from bash.
WSL2 interop must be working. If .exe calls fail with UtilAcceptVsock errors, ask the user to run wsl --shutdown in Windows and relaunch WSL.
# List all processes
/mnt/c/Windows/System32/tasklist.exe
# Filter by name
/mnt/c/Windows/System32/tasklist.exe /FI "IMAGENAME eq chrome.exe"
# Kill by name
/mnt/c/Windows/System32/taskkill.exe /F /IM chrome.exe
# Kill by PID
/mnt/c/Windows/System32/taskkill.exe /F /PID 1234
# Open a URL in default browser
/mnt/c/Windows/System32/cmd.exe /c "start https://google.com"
# Open an app by name
/mnt/c/Windows/System32/cmd.exe /c "start chrome"
/mnt/c/Windows/System32/cmd.exe /c "start spotify"
/mnt/c/Windows/System32/cmd.exe /c "start notepad"
# Open a file with its default app
/mnt/c/Windows/System32/cmd.exe /c "start C:\\Users\\User\\file.pdf"
# Launch full path
/mnt/c/Windows/System32/cmd.exe /c "start \"\" \"C:\\Program Files\\App\\app.exe\""
> ⚠️ cmd.exe /c start must be run from a Windows path. Use /mnt/c/Windows/System32/cmd.exe /c "cd /d C:\ && start ..." if cwd is a UNC path (WSL path).
PS=/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
# Run a command
$PS -NonInteractive -Command "Get-Process | Select-Object -First 10"
# Get window titles
$PS -NonInteractive -Command "Get-Process | Where-Object {$_.MainWindowTitle} | Select-Object Name, MainWindowTitle"
# Set volume
$PS -NonInteractive -Command "(New-Object -ComObject WScript.Shell).SendKeys([char]174)"
# Take a screenshot and save to Windows desktop
PS=/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe
$PS -NonInteractive -Command "Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.Screen]::PrimaryScreen | ForEach-Object { \$bmp = New-Object System.Drawing.Bitmap(\$_.Bounds.Width, \$_.Bounds.Height); \$g = [System.Drawing.Graphics]::FromImage(\$bmp); \$g.CopyFromScreen(\$_.Bounds.Location, [System.Drawing.Point]::Empty, \$_.Bounds.Size); \$bmp.Save('C:\\screenshot.png') }"
# Windows C:\ is at /mnt/c/ in WSL
ls /mnt/c/Users/
cat /mnt/c/Users/Username/Desktop/file.txt
cp /mnt/c/Users/Username/Downloads/file.zip /mnt/c/Users/Username/Desktop/
# Find Windows username
ls /mnt/c/Users/ | grep -v "Public\|Default\|All Users"
# Windows version
/mnt/c/Windows/System32/cmd.exe /c "ver"
# Disk usage
/mnt/c/Windows/System32/cmd.exe /c "wmic logicaldisk get size,freespace,caption"
# Network info
/mnt/c/Windows/System32/ipconfig.exe
Close and reopen an app:
/mnt/c/Windows/System32/taskkill.exe /F /IM chrome.exe
sleep 2
/mnt/c/Windows/System32/cmd.exe /c "start chrome"
Check if app is running:
/mnt/c/Windows/System32/tasklist.exe /FI "IMAGENAME eq spotify.exe" | grep -i spotify && echo "Running" || echo "Not running"
Open a specific website:
/mnt/c/Windows/System32/cmd.exe /c "start https://www.google.com"
start won't produce output — that's expectedreferences/windows-apps.md for common app executable names安装 PC Master 后,可以对 AI 说这些话来触发它
Help me get started with PC Master
Explains what PC Master does, walks through the setup, and runs a quick demo based on your current project
Use PC Master to control the Windows PC from WSL2
Invokes PC Master with the right parameters and returns the result directly in the conversation
What can I do with PC Master in my design & creative workflow?
Lists the top use cases for PC Master, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/pc-master/ 目录(个人级,所有项目可用),或 .claude/skills/pc-master/(项目级)。重启 AI 客户端后,用 /pc-master 主动调用,或让 AI 根据上下文自动发现并使用。
PC Master 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
PC Master 可免费安装使用。请查阅仓库了解许可证信息。
Control the Windows PC from WSL2. Use when the user asks to open/close applications, manage processes, take screenshots, control windows, manage files on Win...
PC Master 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using PC Master
Identifies repetitive steps in your workflow and sets up PC Master to handle them automatically