跳到正文
cccskills
免费在 GitHub 公开

jev-use

Build a computer-control loop where Cua Driver observes and acts, while TypeSafe Jev chooses from predefined actions. Validate each choice, execute one action at a time, and verify the result before continuing.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Build or adapt a bounded computer-use loop where Cua Driver observes and acts, TypeSafe Jev selects only from application-owned candidate IDs, and the caller validates and verifies every action. Use for the jev-use recipe or similar Jev integrations; do not use it to add model logic or credentials to Cua Driver.

查看安装方法

适用场景

  • Build a Jev integration for browser automation
  • Create action candidates for native desktop apps
  • Reject stale or unknown action choices
  • Test the decision loop without an API key

包含的文件(1)

  • SKILL.md5.6 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

jev-use

Keep the decision layer above Cua Driver. Driver supplies observations and executes actions; the application constructs complete candidates; TypeSafe Jev returns one candidate ID. Never let Jev invent tool names, coordinates, refs, targets, delivery modes, or other arguments.

Use the example at libs/cua-driver/examples/jev-use/ as the runnable reference. Keep TypeSafe request construction in the external Jev adapter rather than in Driver or a Driver extension. The Python and TypeScript adapters must expose equivalent mock and live behavior. For a process boundary, use cua.jev_choice_request_v1 on stdin and require cua.jev_choice_v1 on stdout. The request contains only a goal, capture ID, compact regions, bounded history, and candidate IDs with descriptions; the response contains only the selected ID, model identity, confidence, and probabilities. Invoke the Python interpreter and absolute chooser path directly without a shell. For native desktop applications, use NativeAccessibilitySource and cua.jev_choice_request_v2, which adds a per-candidate source (page, ax, or visual), compact value-free elements, and optional progress counted from the runner's own performed actions. Browser tasks keep sending v1. Prefer browser DOM and semantic evidence. The optional visual adapter consumes the public cua.visual_regions_v1 result only when Driver advertises both parse_visual_regions and the capture-bound click.capture_id input. Use the checked-in fixtures for deterministic development; do not add a model, extension artifact, or Driver implementation detail to the recipe.

Decision loop

  1. State the goal and obtain a fresh Cua Driver observation through one persistent CLI or MCP session.
  2. Prefer an unambiguous fresh accessibility or browser DOM token.
  3. If visual grounding is needed, discover parse_visual_regions through the current MCP tool inventory. Validate its versioned result, capture ID, screenshot reference and dimensions, coordinate mapping, unique region IDs, bounds, content, confidence, and ambiguity. Build a pixel action only with the exact capture ID in the same click call. Otherwise reobserve or abstain.
  4. Construct a bounded candidate table. Each executable candidate contains the complete Driver tool and arguments. Include reobserve and abstain when evidence can be stale, incomplete, or ambiguous.
  5. Send Jev only the goal, compact observation, recent history, and candidate IDs with descriptions. Include typed visual regions and their capture_id when the current observation has validated visual evidence; do not send extension internals or screenshot bytes.
  6. Resolve the returned ID against the original immutable table. Reject an unknown, duplicate, malformed, denied, stale, or capture-mismatched choice, or a result below the caller's stated confidence policy.
  7. Execute at most one Driver action. Use background delivery by default; foreground delivery is an explicit escalation subject to the active Driver contract and user authorization.
  8. Reobserve and verify the postcondition before building another table.

Freshness and visual evidence

  • Treat Driver page refs, accessibility tokens, screenshot IDs, and visual region IDs as observation-local. Never reuse them after the UI changes.
  • Require visual bounds and centers to remain inside the exact screenshot coordinate space and tied to the same target and snapshot.
  • If semantic and visual evidence disagree, or multiple regions are plausible, offer reobserve and abstain without inventing a mutation.
  • Never remove capture_id or retry an expired, stale, or mismatched capture as an unbound coordinate action.
  • Use semantic evidence as authority when it is available. A visual label does not prove editability or interactivity.

Native accessibility candidates

  • Build native candidates from one get_window_state call that returns the tree and the screenshot together, so element tokens and capture_id describe the same moment.
  • Map raw AX, UIA, and AT-SPI roles through the role-class table in native_roles.py / native_roles.ts, keyed by Driver's normalized_role. Do not normalize roles in Driver.
  • Offer only enabled, on-screen, labeled, native elements; exclude in_web_content elements, window chrome, and labels equal to the value.
  • Derive candidate IDs from role class, label, and actionable-ancestor path, never element_index. Cap at 24 action candidates plus reobserve and abstain, and log how many were dropped.
  • Exclude delete, send, purchase, and close actions unless the task spec allows that risk. Text comes only from task parameters.
  • A stale token or truncated tree leads to a reobserve, never to an unbound coordinate action.
  • Verify completion through the task's independent oracle, such as the harness task-state file, not the accessibility tree the model saw.

Credentials and proof

The deterministic mock path must work without TYPESAFE_API_KEY. For live Jev, read the key from the process environment or a secure interactive prompt; never put it in source, command arguments, logs, artifacts, or messages. Verify task completion from an independent application postcondition rather than a model answer, action response, or screenshot alone.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Operate native apps on macOS, Windows, and Linux using identified controls, menu paths, or screen coordinates. Target a specific window, verify the result after each action, and consult available recent activity when resuming work.

中文简介正在准备中。当前显示英语简介。

  • Operate a specific app window
  • Click controls and enter text
  • Adjust window positions and sizes
trycua/cua3万2026年10月18日 更新

Create disposable Linux or macOS computers for running code, testing apps, operating desktop interfaces, and browsing websites. Use isolated environments locally or in the Cua cloud, then delete them when the work is complete.

中文简介正在准备中。当前显示英语简介。

  • Run code in an isolated environment
  • Test an app or reproduce an issue
  • Fill web forms and capture page screenshots
trycua/cua3万2026年10月18日 更新

Work in a local or remote computer environment whose screen you can watch. Run commands, transfer files, launch coding agents, move signed-in app sessions, and share the host computer’s network when needed.

中文简介正在准备中。当前显示英语简介。

  • Run tasks in an isolated environment you can watch
  • Transfer files into and out of a Space
  • Launch and monitor coding agents
trycua/cua3万2026年10月18日 更新

Save agent memory and outputs in Cua Volume, shared storage that persists beyond a Space, the working environment. Hand files to the user, read shared references, and check synchronization, version history, and conflicting edits.

中文简介正在准备中。当前显示英语简介。

  • Keep outputs after a working environment ends
  • Save agent memory for later work
  • Deliver files to the user
trycua/cua3万2026年10月18日 更新

Operate apps and websites by inspecting screenshots, clicking controls, typing, and dragging. Use it to fill forms, check layouts, and test complete user flows, with recorded actions available for replay and review.

中文简介正在准备中。当前显示英语简介。

  • Fill forms and use file upload dialogs
  • Test buttons and complete user flows
  • Check layouts and capture screenshots
trycua/cua3万2026年10月18日 更新

Review open GitHub issues, proposals, and pull requests to identify useful maintainer work. Get ranked candidates with evidence, dependencies, and validation needs, then begin work only on an item you explicitly select.

中文简介正在准备中。当前显示英语简介。

  • Choose the next maintenance task
  • Prioritize a backlog for the available work window
  • Find pull requests that need review
trycua/cua3万2026年10月18日 更新

查看 trycua 的全部技能

报告此技能的问题