本文へ移動
cccskills
無料GitHub で公開

cua-overview

pi-cua-integration is a Pi/Senpi extension that bridges Cua (trycua/cua) for computer-use sandboxes and host control. MUST USE when the user asks to drive a desktop UI, take screenshots, run a "computer use" task, control a sandbox, or invoke any cua_* tool. Triggers - "cua", "computer use", "sandbox", "screenshot the desktop", "click the screen", "take over the browser", "샌드박스 켜줘", "스크린샷 찍어", "내 컴퓨터에서 자동화".

インストール方法を見る

含まれるファイル(1)

  • SKILL.md3.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Cua integration overview

You have access to the pi-cua-integration extension which exposes Cua (trycua/cua) functionality through Pi tools. The extension supports three modes; the active mode is selected at session start from .pi/cua.jsonc or the default (local).

Modes

ModeWhere actions happenSandboxAPI key required
localLocal Docker / QEMU / Lume VMyesno
localhostYour host machine (no sandbox)nono
cloudcua.ai cloud sandboxyesCUA_API_KEY

Local mode is the default. It runs everything in a sandbox started on your machine via Docker (XFCE container) for Linux, Lume for macOS guests, or QEMU for full VMs. No account is required.

Workflow

  1. For local or cloud modes: call cua_sandbox_start first to get a sandbox name, then call the control tools (cua_screenshot, cua_click, etc.) with the sandbox parameter (or rely on the default sandbox).
  2. For localhost mode: skip cua_sandbox_start. Control tools target the host directly.
  3. Always end by stopping any sandbox you started, via cua_sandbox_stop. The extension also auto-cleans on session shutdown.

Tools (10)

ToolPurpose
cua_sandbox_startStart (or reconnect) a sandbox
cua_sandbox_stopDestroy a sandbox
cua_sandbox_listList active sandboxes
cua_screenshotCapture PNG screenshot
cua_clickClick at (x, y)
cua_typeType text
cua_keyPress a key chord (ctrl+s, Return, etc.)
cua_scrollScroll at coordinates

Quick recipes

  • Screenshot the host (localhost mode): cua_screenshot()
  • Open a local Linux sandbox and inspect it:
    cua_sandbox_start({ os: "linux", kind: "container" })
    cua_screenshot()
    cua_sandbox_stop({ name: "<returned-name>" })
    
  • Multi-step drive yourself (the main agent loop screenshots + clicks via cua_screenshot / cua_click / cua_type; no separate ComputerAgent sub-agent is shipped — delegate that flow to the cua-skill global skill, which documents the cua do task CLI for callers that want autonomous delegation).

Companion skills

  • cua-local-sandbox - Docker/QEMU/Lume runtime details
  • cua-localhost - Direct host control safety notes
  • cua-cloud-sandbox - Cloud sandbox configuration
  • cua-control - Mouse and keyboard primitives reference

Configuration

Project config lives at .pi/cua.jsonc. Global config at ~/.pi/cua.json. Schema is at schema/cua.schema.json inside the extension package.

The extension activates whenever Pi loads it. The active mode (default local, sandboxed) is selected from the config; localhost and cloud must be enabled explicitly.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use Cua's cloud sandboxes via cua.ai. Requires CUA_API_KEY. Cloud sandboxes are isolated VMs run by trycua with billing per usage. Use when the user wants no local Docker/QEMU, wants Windows/macOS guests without Apple Silicon, or explicitly asks for cloud.

日本語の概要は準備中です。原文の説明を表示しています。

code-yeongyu/pi-cua-integration72026年10月7日 更新

Mouse, keyboard, and scroll primitives for cua_click / cua_type / cua_key / cua_scroll. Reference for action shapes, modifier keys, key chord syntax, and screenshot-driven targeting workflows.

日本語の概要は準備中です。原文の説明を表示しています。

code-yeongyu/pi-cua-integration72026年10月7日 更新

Run Cua sandboxes locally - no API key required. Covers Docker (XFCE/Kasm) for Linux containers, QEMU for full VMs, Lume for macOS guests on Apple Silicon, and Tart for Apple VZ VMs. Use when the user wants a local sandbox, wants to keep things off the cloud, or asks "spin up an Ubuntu desktop", "open a sandbox VM", "let me try this safely first".

日本語の概要は準備中です。原文の説明を表示しています。

code-yeongyu/pi-cua-integration72026年10月7日 更新

Drive the user's host machine directly through Cua, with no sandbox. Maps to Cua's Localhost API. Higher risk - the agent can click, type, and run shell commands on the real desktop. Use only when the user explicitly opts in and read the safety section first. Triggers - "control my computer", "click here", "use my real Chrome", "no sandbox", "내 컴퓨터 자동화".

日本語の概要は準備中です。原文の説明を表示しています。

code-yeongyu/pi-cua-integration72026年10月7日 更新

code-yeongyu のスキルをすべて見る

このスキルの問題を報告する