跳到正文
cccskills
免费在 GitHub 公开

visual-browse

Coordinate-level browser control for UI that snapshots, refs, and locators cannot target - canvas apps, extension popups, OS-drawn dialogs, custom drag surfaces. Read this when a DOM-targeted action fails twice, when the next decision depends on rendered pixels, or when CUA clicks land on the wrong element.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.1 KB

SKILL.md(原文)

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

Visual Browse

createCua(page) drives the page by viewport coordinates when DOM targeting cannot. It is rung 2 of the ladder below, not a last resort you ask permission to reach.

Escalation ladder

TWO IDENTICAL FAILURES ON THE SAME TARGET MEAN CLIMB, NOT RETRY. The failure itself selects the next rung — never pause to ask which one.

RungUseAdvance when
1. page.snapshot() + page.locator(ref)Everything with a usable refRef is absent, stale, obscured, or the click lands on the wrong node twice
2. createCua(page) coordinatesCanvas, extension popups, custom controls, drag surfacesThe click misses, or the screenshot and the coordinates disagree
3. Pin the viewport, then retry rung 2Coordinate drift: window resized, DPI scaled, or the tab was created at a different sizeCoordinates land correctly but the widget still refuses input
4. createCaptcha(page)A challenge widget is what blocks progressThe widget is solved but the flow still stalls
5. Environment diagnosisBrowser-level failure (entitlements, extension service worker, FIDO)Logs name a cause outside the page

RUNG 5 ENDS IN A WRITTEN DIAGNOSIS, NEVER A CODE CHANGE. When the browser log names the cause (service-worker failure, missing entitlement, FIDO unavailable), stop retrying and report it. Automation code cannot fix a browser-process problem.

Return to refs and locators as soon as DOM targeting works again. Coordinates are the expensive path.

Pin the viewport before trusting coordinates

CUA acts in viewport pixels. When the render surface and the coordinate space disagree, every coordinate is wrong by the same constant offset and retrying repeats the miss. Pin both to one box:

await page._sendToTarget("Emulation.setDeviceMetricsOverride", {
  width: 1440, height: 900, deviceScaleFactor: 1, mobile: false,
  screenWidth: 1440, screenHeight: 900,
  viewport: { x: 0, y: 0, width: 1440, height: 900, scale: 1 },
});
const size = await page.refreshViewportSize();   // -> { width: 1440, height: 900 }

Pin every page you act on, including tabs you did not open, then take a fresh screenshot — coordinates read off an unpinned screenshot are stale.

Pin rather than retry when: the click reports success but nothing changes; the same offset is wrong on every target; screenshot dimensions disagree with the coordinates you computed.

API

import { createCua } from "omowright";

const cua = createCua(page);
await cua.click({ x, y, button?, keypress? });        // keypress: modifiers held during click
await cua.doubleClick({ x, y, keypress? });
await cua.drag({ path: [{ x, y }, ...], keys? });     // mousedown at first point, move through path, mouseup
await cua.move({ x, y, keys? });
await cua.scroll({ x, y, scrollX, scrollY, keypress? });
await cua.type({ text });
await cua.keypress({ keys: ["ControlOrMeta", "a"] }); // ControlOrMeta = Meta on macOS, Control elsewhere
const base64Png = await cua.getVisibleScreenshot();

Modifiers: Alt, Control, ControlOrMeta, Meta, Shift. Aliases: Cmd, Command, Ctrl, Option. The CUA instance is bound to the page it was created from — focus or attach the right tab first.

Look, act, verify

Look before acting when coordinates are unknown, and VERIFY AFTER EVERY PAGE-CHANGING ACTION — AN UNVERIFIED CUA ACTION HAS NOT HAPPENED. Fresh screenshot for visual state, fresh snapshot for DOM state.

  • cua.getVisibleScreenshot() - base64 PNG.
  • page.screenshot({ path }) - file; cite the path when there is no display().
  • page.annotatedScreenshot() - numbered boxes over interactive elements.
  • Eval/REPL kernel: display(Buffer.from(await cua.getVisibleScreenshot(), "base64")).

A popup, modal, or cookie banner overlaying the target is cleared first — everything behind it is unreachable. On layered canvas and editor surfaces, prefer coarse sidebar and toolbar controls over precise clicks on stacked objects.

Surfaces that only CUA reaches

Browser chrome and OS-drawn UI have no DOM, so rung 1 is skipped entirely:

  • Extension popups (password managers, wallets): click the toolbar icon by coordinate, then act inside the popup by coordinate.
  • Platform credential dialogs (passkey, Touch ID, OS password prompts): drawn by the OS. If a click cannot satisfy them, that is rung 5 — read the browser log rather than clicking harder.
  • Native select popups and file pickers: prefer locator.selectOption() / locator.setInputFiles(); use coordinates only for custom-rendered controls.

Values that leave the page through the system clipboard (a one-time code copied by an extension) are read back with pbpaste on macOS and VALIDATED BY SHAPE BEFORE USE — an unvalidated read silently carries whatever was there before.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

Push browser tab and download lifecycle events plus manager-owned background tabs. Read this when an agent needs lifecycle notifications or a temporary tab without polling.

中文简介正在准备中。当前显示原文说明。

code-yeongyu/omowright52026年10月16日 更新

captcha

免费

Interact with challenge widgets in an authorized automation flow using checkbox clicks, slider drags, text OCR, and image-grid input. Verify completion with an application-specific condition.

中文简介正在准备中。当前显示原文说明。

code-yeongyu/omowright52026年10月16日 更新

chrome

免费

Read this when you need Chrome MV3-shaped APIs — bookmarks, tabs, windows, history, downloads, or top sites — in standalone OmOWright.

中文简介正在准备中。当前显示原文说明。

code-yeongyu/omowright52026年10月16日 更新

Use when a user-driven CloakBrowser profile needs MV3 Chrome writes/events through the native messaging bridge.

中文简介正在准备中。当前显示原文说明。

code-yeongyu/omowright52026年10月16日 更新

network

免费

Read the network instead of the DOM. Snoop JSON API responses, wait for a request instead of sleeping, collect items while scrolling, record a QA flight trace (jsonl, HAR, screenshots), and intercept requests with routes.

中文简介正在准备中。当前显示原文说明。

code-yeongyu/omowright52026年10月16日 更新

omowright

免费

The default code-driven browser path for interactive browsing work: drives any browser from code with token-efficient a11y snapshots (57% smaller via compactSnapshot), ref-based clicks, coordinate control (CUA), viewport pinning, CAPTCHA solving (reCAPTCHA, Turnstile, hCaptcha, slider, OCR), Chrome MV3 APIs (tabs/bookmarks/history/downloads/topSites), network snoop (read API JSON instead of DOM), flight-recorder trace (jsonl + HAR + screenshots), OOPIF-aware snapshots, dialog policy, human handoff for login/OTP, device emulation, request routes, stealth via CloakBrowser as the default owned engine with zero exposed CDP ports, and an attached engine that drives the user's own signed-in browser through BrowserSkill (connectBrowserSkill, bskSnapshot, one-click onboarding via bskOnboard). MUST USE for interactive browser work: scraping, blocked/WAF/JS-rendered pages, logins, the user's logged-in sites and open tabs, extension popups, form filling, screenshots, web QA, CAPTCHAs. The ulw-research browsing lane runs on ultimate-browsing, not this skill.

中文简介正在准备中。当前显示原文说明。

code-yeongyu/omowright52026年10月16日 更新

查看 code-yeongyu 的全部技能

报告此技能的问题