browser-automation
/browser-automation
Local OpenWork Electron browser automation with CDP. Use when driving a local Electron dev app, browser_list, browser_snapshot, browser_eval, composer automation, or local UI smoke tests.
- Author
- different-ai ↗
- Repository
- openwork ↗
- Licence
- MIT
- Last repository change
- 25.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 4
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Local OpenWork Electron browser automation with CDP. Use when driving a local Electron dev app, browser_list, browser_snapshot, browser_eval, composer automation, or local UI smoke tests.
Original author description
Local OpenWork Electron browser automation with CDP. Use when driving a local Electron dev app, browser_list, browser_snapshot, browser_eval, composer automation, or local UI smoke tests.
How it works
- What I Do
- Local Dev Setup
- Background Launch
- Browser Tool Flow
- Send A Session
- Notes
SKILL.md preview
---
name: browser-automation
description: Local OpenWork Electron browser automation with CDP. Use when driving a local Electron dev app, browser_list, browser_snapshot, browser_eval, composer automation, or local UI smoke tests.
---
# Browser Automation
For verdicts, do not drive CDP by hand — write or run an `evals/core` journey or `evals/proofs` proof (`write-a-spec`, `run-tests`). This skill is for exploration and debugging only.
## What I Do
- Attach OpenCode browser tools to the OpenWork Electron app during local development.
- Drive the app UI through Electron's Chrome DevTools Protocol endpoint.
- Send a task/session from the composer and confirm the response in the UI.
## Local Dev Setup
`pnpm dev` enables Electron CDP by default:
```sh
OPENWORK_ELECTRON_REMOTE_DEBUG_PORT=${OPENWORK_ELECTRON_REMOTE_DEBUG_PORT:-9823}
```
The default browser URL for OpenCode browser tools is:
```text
http://127.0.0.1:9823
```
The app UI normally loads at:
```text
http://localhost:5173/
```
To use a different CDP port, launch with an override:
```sh
OPENWORK_ELECTRON_REMOTE_DEBUG_PORT=9830 pnpm dev
```
To disable Electron CDP for a run:
```sh
OPENWORK_ELECTRON_REMOTE_DEBUG_PORT=0 pnpm dev
```
## Background Launch
Use a detached launch when the user wants the app running in the background:
```sh
nohup pnpm dev > /tmp/openwork-dev.log 2>&1 &
```
Then wait for the CDP port:
```sh
lsof -nP -iTCP:9823 -sTCP:LISTEN
```
## Browser Tool Flow
1. List targets with `browser_list` using `browser_url: "http://127.0.0.1:9823"`.
2. Select the `OpenWork` target ID.
3. Read state with `browser_eval` or `browser_snapshot`.
4. Fill the Lexical composer by targeting `[contenteditable="true"][data-lexical-editor="true"]`.
5. Click the `Run task` button.
6. Confirm the session response by checking `document.body.innerText` or the current URL.
## Send A Session
Use this `browser_eval` pattern after selecting the OpenWork target:
```js
(() => {
const editor = document.querySelector('[contenteditable="true"][data-lexical-editor="true"]');
if (!editor) return { ok: false, reason: 'editor not found' };
editor.focus();
const data = new DataTransfer();
data.setData('text/plain', 'Say hello from the Electron browser test.');
editor.dispatchEvent(new ClipboardEvent('paste', {
bubbles: true,
cancelable: true,
clipboardData: data,
}));
const run = Array.from(document.querySelectorAll('button'))
.find((button) => button.innerText.trim() === 'Run task');
if (!run) return { ok: false, reason: 'Run task not found', inserted };
if (run.disabled) return { ok: false, reason: 'Run task disabled', inserted, text: editor.innerText };
run.click();
return { ok: true, inserted: true, text: editor.innerText };
})()
```
## Notes
- Electron CDP is used for development test tooling. User browser tasks should use the built-in OpenWork Browser target.
- A successful local attach should show an `OpenWork` target at `http://127.0.0.1:9823`.
- The known-good smoke prompt is `Say hello from the Electron browser test.` and the expected response is `Hello from the Electron browser test.`
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · different-ai/openwork | 100 | MIT |
| steipete/clawdis | 100 | MIT |
| krishnashahane/Omnipolymath | 100 | MIT |
| dengruihan/AgileClaw | 100 | Apache-2.0 |
| openclaw/openclaw | 100 | MIT |
| coco-research/coco | 100 | MIT |
| Sanit-mann/The-Insectoids | 100 | MIT |
| alexei-led/cc-thingz | 100 | MIT |
| dreamlab-ai/agentbox | 100 | AGPL-3.0 |
Database snapshot: 13.11.2026 · package version 302a140aaf5d (SHA-256 digest of the entire package)
Downloads in the last 30 days: 4 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100verify
Verify desktop-app UI changes by launching the Electron dev app and driving it over CDP (screenshots, clicks, JS eval). Use when a change to packages/desktop needs runtime/visual verification. - 100agent-browser
Browser automation CLI for AI agents; use for web tasks - navigate, click, fill forms, screenshot, scrape, test web/Electron apps. - 100drive-desktop-cdp
Drive the running OpenWork app over CDP from the shell, headless by default (nothing opens on screen). Evaluate JS, take screenshots, open a new session, send a prompt with a chosen model, wait for the run to finish. Use when checking a UI change by hand in a world or pnpm dev,… - 100agent-browser-electron
Use when Codex needs to inspect, debug, or automate an Electron app through `agent-browser` and Chrome DevTools Protocol, especially when the app has multiple `BrowserWindow` instances, lazy-created windows, duplicate URLs, or misleading `agent-browser tab list` output. Covers… - 100control-ui
Build a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI. Use for UI verification, screenshots, perf profiles, or reproducing UI bugs. - 100control-ui
Build or adapt a local browser/CDP harness to drive and inspect a web, IDE, or Electron UI. Use for local UI verification, screenshots, accessibility snapshots, perf profiles, visual diffs, or reproducing UI bugs.