用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/zeenie-ai/OpenCompany --skill wsl-skill命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | wsl-skill |
| description | Windows Subsystem for Linux (WSL) commands for running Linux tools on Windows. |
| allowed-tools | process_manager shell |
| metadata | {"author":"opencompany","version":"1.0","category":"terminal"} |
Use this skill when the host is Windows but you need Linux tools. WSL provides a full Linux environment alongside Windows.
{"operation": "start", "name": "wsl-check", "command": "wsl --status"}
If this succeeds, WSL is available.
Prefix any Linux command with wsl to run it inside the default WSL distro:
{"operation": "start", "name": "wsl-cmd", "command": "wsl bash -c 'uname -a && cat /etc/os-release'"}
{"operation": "start", "name": "wsl-apt", "command": "wsl sudo apt-get update && wsl sudo apt-get install -y curl jq"}
{"operation": "start", "name": "wsl-server", "command": "wsl python3 -m http.server 8080"}
Windows drives are mounted at /mnt/:
{"operation": "start", "name": "wsl-ls", "command": "wsl ls -la /mnt/c/Users/"}
{"operation": "start", "name": "wsl-path", "command": "wsl wslpath -w ~"}
| Task | Command |
|---|---|
| List distros | wsl --list --verbose |
| Default distro | wsl --set-default Ubuntu |
| Shutdown all | wsl --shutdown |
| Run in specific distro | wsl -d Ubuntu bash -c "command" |
| Check status | wsl --status |
| Direction | Command |
|---|---|
| Windows -> WSL | wsl wslpath -u 'C:\Users\me\file.txt' |
| WSL -> Windows | wsl wslpath -w '/home/me/file.txt' |
WSL2 shares the Windows network stack. Services started in WSL are accessible on localhost from Windows:
http://localhost:8080 from Windows browserwsl when running from a Windows process_managerwsl bash -c "..." for multi-command pipelines\, WSL paths use / -- use wslpath to convertprocess_manager start (handles lifecycle)