Cross-Platform Computer-Use Skill
Use this skill when the task needs a top-level portable computer-use skill that works across macOS, Windows, and Linux without depending on any local Claude installation, private native modules, or extracted app assets.
What this skill does
- - bundles standalone platform runtimes for
macOS, Windows, and INLINECODE2 - installs one top-level skill that contains all three platform payloads
- selects the correct project for the current host platform
- preserves the standalone bootstrap model: each platform runtime creates its own virtualenv and installs public Python dependencies on first real run
- keeps platform-specific limitations explicit instead of pretending the hosts behave identically
Installed layout
After installation, assume the top-level skill lives at:
CODEBLOCK0
The bundled projects are stored under:
CODEBLOCK1
Platform selection
Use the helper script from the installed skill root to resolve the active platform project:
CODEBLOCK2
On PowerShell:
CODEBLOCK3
Build
Always build the selected platform project, not all three at once:
CODEBLOCK4
Run
CODEBLOCK5
Validation notes
- -
macOS has been real-device validated in this workspace, including GUI typing round-trip through the MCP type tool. - INLINECODE5 and
Linux are implemented, built, packaged, and published, but still need end-to-end runtime validation on real hosts. - INLINECODE7 currently targets
X11 first; Wayland can restrict screenshots, focus inspection, clipboard, and synthetic input.
Guardrails
- - Treat this host as trusted-local only.
- Do not tell the user to search a local Claude install for binaries or hidden assets.
- Be explicit about the current host platform and its validation status before claiming something is verified.
- Mention that current runtimes report
screenshotFiltering: none, so action gating is handled at the MCP layer.
跨平台计算机使用技能
当任务需要一项可在macOS、Windows和Linux上运行的顶级可移植计算机使用技能,且不依赖任何本地Claude安装、私有原生模块或提取的应用资源时,请使用此技能。
该技能的功能
- - 为macOS、Windows和Linux打包独立的平台运行时
- 安装一个包含所有三个平台负载的顶级技能
- 为当前主机平台选择正确的项目
- 保留独立引导模型:每个平台运行时在首次实际运行时创建自己的虚拟环境并安装公开的Python依赖
- 明确说明平台特定限制,而非假装各主机行为一致
安装后的布局
安装后,假设顶级技能位于:
bash
~/.codex/skills/cross-platform-computer-use-skill
打包的项目存储在:
bash
~/.codex/skills/cross-platform-computer-use-skill/project/platforms/macos
~/.codex/skills/cross-platform-computer-use-skill/project/platforms/windows
~/.codex/skills/cross-platform-computer-use-skill/project/platforms/linux
平台选择
使用已安装技能根目录中的辅助脚本来解析活动平台项目:
bash
bash ~/.codex/skills/cross-platform-computer-use-skill/scripts/current-project.sh
在PowerShell中:
powershell
powershell -ExecutionPolicy Bypass -File $HOME/.codex/skills/cross-platform-computer-use-skill/scripts/current-project.ps1
构建
始终构建所选平台项目,而非一次性构建所有三个:
bash
cd $(bash ~/.codex/skills/cross-platform-computer-use-skill/scripts/current-project.sh)
npm install
npm run build
运行
bash
cd $(bash ~/.codex/skills/cross-platform-computer-use-skill/scripts/current-project.sh)
node dist/cli.js
验证说明
- - macOS已在此工作区中通过真实设备验证,包括通过MCP type工具的GUI输入往返测试。
- Windows和Linux已实现、构建、打包并发布,但仍需在真实主机上进行端到端运行时验证。
- Linux当前优先支持X11;Wayland可能限制截图、焦点检查、剪贴板和合成输入。
防护措施
- - 仅将此主机视为受信任的本地环境。
- 不要告诉用户搜索本地Claude安装中的二进制文件或隐藏资源。
- 在声称某项功能已验证之前,明确说明当前主机平台及其验证状态。
- 提及时下运行时报告screenshotFiltering: none,因此操作门控在MCP层处理。