360 Secure SkillHub
360 安全技能中心

DCC-CUA

面向显式 DCC-CUA 请求的界面控制路由:先做运行时探测与只读应用发现,再用精确 PID 与原生窗口句柄绑定目标,按“观察—单步操作—重新观察”循环执行浏览器或桌面操作,并以回读状态验证结果;失败时报告具体环节并停止。

分类:自动化
loonghao
loonghao
热度 32.87
最近更新 2026-12-01 01:07:45

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add loonghao/dcc-cua
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据不出本机
Metadata
name
dcc-cua
description
Control application UI through project-owned DCC-CUA. Use for explicit DCC-CUA requests, including browsers and non-DCC apps, or DCC-MCP UI fallback. Plan complex workflows as bounded batches and parallelize isolated work by default.
license
MIT-0
allowed-tools
Bash Read
metadata
{"dcc-mcp":{"dcc":"python","layer":"infrastructure","compatibility":"Cross-platform routing contract. The current DCC-CUA host is independently released and reached through the official dccmcp CUA forwarding contract; exact platform capabilities remain runtime-discovered.","version":"0.19.132","search-hint":"dcc-cua DCC CUA dcc cua our dcc-cua our dcc cua 我们的 dcc-cua 我们的 dcc cua project-owned UI control browser DOM exact PID HWND computer use automation task-jsonl mcp-server terminal_task response_projection","tags":"dcc-cua, dcc-ui-control, ui-control, browser-dom, exact-window, computer-use, infrastructure"},"openclaw":{"emoji":"🖱️","homepage":"https://github.com/dcc-mcp/dcc-mcp-agent-plugins/blob/main/plugins/dcc-mcp/skills/dcc-cua/SKILL.md"}}

DCC-CUA — Project UI Control Router

Use this Skill as the canonical route whenever the user explicitly names dcc-cua, DCC CUA, our dcc-cua, or 我们的 dcc-cua.

Non-substitution contract

An explicit DCC-CUA request is a hard routing boundary, regardless of whether the target is Maya, Chrome, a browser, or another desktop application.

  • Use the project-owned dcc-cua runtime and DCC-MCP ui-control surface.
  • Never load or call generic Codex/OpenAI Computer Use, the computer-use Skill, @oai/sky, or Browser/Chrome automation plugins for that request.
  • Never treat a DCC-CUA runtime, binding, readiness, or permission failure as permission to change providers.
  • Repair the project route when safely possible. Otherwise report the exact blocker and stop.
  • Use a generic provider only after the user explicitly retracts the DCC-CUA requirement or explicitly requests that provider by name.

This boundary is provider selection, not an authorization bypass. DCC-CUA task grants, target binding, interruption, and confirmation policy still apply.

Route attestation

Before the first application-window observation or input, report all four fields:

provider=dcc-cua runtime=<version> pid=<exact-pid> hwnd=<exact-native-hwnd>

The discovery phase is the bounded exception: runtime-advertised list_apps, list_windows, and capability/health probes may run with pid=unbound and hwnd=unbound because they return metadata only and do not capture pixels or send input. Once a specific application window is observed or acted on, exact PID and HWND are mandatory and the attestation above must be emitted first.

Runtime preflight

Use the standalone CUA forwarding contract; do not download an arbitrary executable:

dccmcp cua -- manifest
dccmcp cua -- ping
dccmcp cua -- host-ensure

Run host-ensure only when installation or repair is authorized. Read-only manifest and ping calls inspect the independently released dcc-cua runtime. The forwarding command preserves the CUA runtime's own versioning and lifecycle.

For semantic application profiles:

dcc-cua profiles
dcc-cua profile --id <profile-id>

Do not invent a profile ID. Runtime-advertised capabilities are authoritative.

For terminal-controlled plans, use the runtime's dcc-cua task-jsonl process. Agent clients normally keep one dcc-cua mcp-server stdio connection. When targeting a released runtime, inspect dccmcp cua -- manifest for manifest.core_bridge.terminal_task before selecting task-jsonl, and report an absent capability instead of assuming that the binary provides it. Both entry points use the same scoped task service and exact-window guards. The terminal wire sends one {id,name,arguments} JSON object per line and returns an ID-matched MCP tool result or protocol error. Keep start_task, scoped dcc_cua_task_call calls, and stop_task on one persistent connection. Check result.isError before consuming result.structuredContent. Never carry task IDs or private session credentials across connections or entry points. When the installed runtime advertises dcc_cua_record_task_outcome, report each completed task attempt once, including failures, with {"success": <boolean>, "elapsed_ms": <unsigned 64-bit integer>}. The required duration ranges from zero through 18446744073709551615 milliseconds. Measure from the start of the agent task through verification, including model calls, tool execution and waits. An attempt can span multiple start_task leases. Send its outcome once on the reporting connection. Reports add to counters, so reconcile an uncertain report before retrying it. Additional fields are accepted and ignored. Read dcc_cua_metrics from that connection when comparing transport or observation costs. The outcome tool updates debug counters and grants no input authority. An unconfirmed effect still requires application readback. When the installed runtime advertises dcc_cua_record_model_usage, report exact Agent Host token counts through it using its usage object. Protocol-byte token estimates remain separately identified in dcc_cua_metrics.

Unbound discovery and application launch

When the user gives a broad request without a process target, keep the first stage metadata-only:

  1. Use the runtime-advertised list_apps to report installed and running applications. Use list_windows to inspect window candidates when the application identity is still ambiguous. Do not take a screenshot, read an application UI tree, or send input in this stage.
  2. If the user asks to open or test an application, call the runtime's launch_app with the discovered application identity (or an explicitly supplied path) and the task grant that allows app launch. Keep discovery, launch, and follow-up calls on one persistent Host connection.
  3. Use the returned PID/HWND or a bounded wait_for_window/list_windows lookup for the launched application. Never choose the first window when the result is ambiguous; refresh discovery or report the ambiguity.
  4. Bind the exact PID/HWND, emit the route attestation, and only then enter the normal observation -> one action -> fresh observation loop.

This supports broad requests such as “列出当前可用的软件,打开看看能不能 用” without widening an application session to the whole desktop. Desktop-wide capture or desktop input remains a separate, explicitly authorized target.

For any application that may require authentication, inspect whether an existing session is usable after binding its exact window. If the flow reaches password, SSO, MFA, CAPTCHA, security, or account-permission UI, stop at that boundary and hand it to the user. Never enter or copy credentials, tokens, recovery codes, or session data through DCC-CUA. If the user completes the login, resume only after a fresh exact-window observation.

Execution order

  1. Prefer a typed DCC-MCP host tool when it directly expresses the operation.
  2. Use DCC-CUA only for the UI behavior that typed host tools cannot expose.
  3. If no target is supplied, complete only the bounded discovery/launch stage above; do not call window observation or input tools without an exact target.
  4. Bind one exact target with process ID and native window handle before any application-window observation or input.
  5. Open one scoped session with the minimum task grant required for the work.
  6. Take a fresh observation before each action that depends on UI state.
  7. Act using stable semantic control or DOM references when available.
  8. Wait for a typed state transition and verify the real final state.
  9. Stop the session on success, failure, interruption, or abandonment.

Continue within the existing task grant until the requested destination state is verified, or a concrete blocker requires user action. Do not ask again for authorized steps. An input sent acknowledgement is not completion evidence.

For native application menu bars, prefer the negotiated native_menu_path route through ui_control__act(action="invoke_menu", menu_path=[...]) when a semantic menu click or Alt mnemonic cannot prove that a popup opened. A menu invocation invalidates the current observation; honor verification_required and verify the popup or resulting application state with a fresh snapshot.

Default execution for complex tasks

Use one bounded decision program for known steps. Read back the result at a dependency, visual decision or commit. Apply this to browser forms, native tools and mixed workflows without waiting for a scripting request. Schedule independent branches concurrently when their target, input and mutable application state are isolated. An app adapter must explicitly support object-bound gestures before sharing a scene across workers. Each worker keeps its binding, connection, and checkpoint. On a shared desktop keep the entire focus-dependent sequence together, including mouse-down through release, selection through shortcut, and IME composition through commit. Resume from verified application evidence and reconcile uncertain effects before replay.

For the three-backpack example use the packaged modeling instructions. The standalone DCC-CUA plugin exposes the original dcc-backpack-modeling skill and its own installed scripts/run.py. For a recorded UI run, use cua-cli with the same exact-window binding and readback requirements.

For runtimes advertising response_projection, keep one persistent CLI host-jsonl or MCP task connection and set "response_projection":"structured_only" alongside method for snapshot or execute_action when structured application evidence is sufficient. Reuse the returned observation ID on that connection. Request full, or omit the field, when a visual decision needs the native image. This per-request output choice preserves capture validation and input guards. An explicit CLI --output-dir retains the captured bytes locally.

DCC-host route

For UI in a registered DCC instance, read DCC host commands.

Browser and non-DCC route

For browser or non-DCC application UI, read browser and desktop binding.

Target and evidence invariants

  • Preserve PID and native window handle in observations and audit records.
  • Treat a changed PID, window handle, tab target, or session owner as a fresh binding that requires a fresh observation.
  • Keep full readiness strict. If only an exact-window or typed-browser route is independently ready, report that route-specific degraded readiness.
  • Honor Escape/user interruption immediately and do not resume without fresh authorization and observation.
  • Do not expose local usernames, internal package paths, browser profile data, credentials, tokens, or unrelated window titles in public evidence.
  • Verify success by reading the destination state after the mutation.

Failure behavior

When DCC-CUA cannot complete the request, report:

  1. the exact component/runtime version,
  2. the exact target identity that was bound,
  3. the failing readiness, capability, permission, or action stage,
  4. the last safe observation or typed error, and
  5. the safe next repair step.

Do not mention a generic Computer Use fallback unless the user asks for one.