Skip to content

galiprandi/job-seeker / .agents/skills/browser-automation

browser-automation

Verified

Control a dedicated browser via agent-browser (Vercel). Use when automating web apps, scraping authenticated sites, filling forms, or navigating SPAs. Do NOT use for desktop apps or API-only integrations.

FileKindSize
SETUP.mdmarkdown3.0 KB
SKILL.mdskill md39.4 KB
references/agent-browser.mdmarkdown4.6 KB
references/api-capture.mdmarkdown1.8 KB
references/ats-patterns.mdmarkdown4.5 KB
references/audio-transcription.mdmarkdown2.4 KB
references/custom-combobox.mdmarkdown5.0 KB
references/efficiency-patterns.mdmarkdown2.6 KB
references/golden-rules.mdmarkdown5.7 KB
references/key-patterns.mdmarkdown4.4 KB
references/network-console.mdmarkdown1.2 KB
references/parallel-agents.mdmarkdown6.2 KB
references/profile-management.mdmarkdown6.3 KB
references/token-extraction.mdmarkdown2.8 KB
scripts/README.mdmarkdown6.0 KB
scripts/agent-browser.template.jsonconfig333 B
scripts/browser-share.jsscript20.0 KB
scripts/browser.jsexecutablescript17.1 KB
scripts/teams.jsscript7.1 KB
scripts/test-find-guide.jsscript6.3 KB
scripts/transcribe-audio.jsscript3.6 KB
scripts/viewer.htmlother8.6 KB
sites/CONTRIBUTING.mdmarkdown11.0 KB
sites/LEARN.mdmarkdown5.4 KB
sites/afip_gob_ar/guide.mdmarkdown9.0 KB
sites/app_web3forms_com/guide.mdmarkdown7.1 KB
sites/buk_co/guide.mdmarkdown1.5 KB
sites/calendar_google_com/calendar-deeplink.mdmarkdown1.9 KB
sites/calendly_com/guide.mdmarkdown1001 B
sites/careers_epam_com/guide.mdmarkdown4.4 KB
sites/dash_cloudflare_com/guide.mdmarkdown7.7 KB
sites/discord_com/guide.mdmarkdown9.9 KB
sites/discord_com/login-flow.mdmarkdown3.2 KB
sites/docs_google_com/guide.mdmarkdown7.3 KB
sites/facebook_com/guide.mdmarkdown9.8 KB
sites/gmail_com/guide.mdmarkdown35.6 KB
sites/google_com/guide.mdmarkdown1.1 KB
sites/google_com/login-flow.mdmarkdown3.3 KB
sites/google_home_com/guide.mdmarkdown2.1 KB
sites/google_maps_com/guide.mdmarkdown8.4 KB
sites/groq_com/signup-apikey.mdmarkdown6.6 KB
sites/humand_co/guide.mdmarkdown6.9 KB
sites/jira_com/guide.mdmarkdown10.8 KB
sites/linkedin_com/guide.mdmarkdown27.4 KB
sites/linkedin_com/outreach-strategy.mdmarkdown1.2 KB
sites/linkedin_com/posting.mdmarkdown14.0 KB
sites/linkedin_com/voyager-api.mdmarkdown8.1 KB
sites/mercadolibre_com/guide.mdmarkdown4.5 KB
sites/onstrider_com/draftjs-editor-fill.mdmarkdown2.3 KB
sites/onstrider_com/guide.mdmarkdown11.3 KB
sites/onstrider_com/react-autocomplete-inputs.mdmarkdown4.0 KB
sites/outlook_office_com/calendar-deeplink.mdmarkdown2.2 KB
sites/outlook_office_com/guide.mdmarkdown14.0 KB
sites/property_directory/guide.mdmarkdown3.7 KB
sites/reddit_com/guide.mdmarkdown16.2 KB
sites/teams_com/guide.mdmarkdown10.3 KB
sites/teamtailor_com/guide.mdmarkdown6.5 KB
sites/vea_com_ar/guide.mdmarkdown8.8 KB
sites/whatsapp_com/guide.mdmarkdown21.3 KB
sites/whatsapp_com/login-flow.mdmarkdown3.0 KB
sites/whatsapp_com/message-extraction.mdmarkdown5.7 KB
sites/whatsapp_com/voice-notes.mdmarkdown7.1 KB
sites/workatastartup_com/guide.mdmarkdown1.5 KB

scripts/README.md

View on GitHub
# browser-automation scripts

## `browser.js`

Safe wrapper around `agent-browser` (Vercel CLI). Guarantees repo-scoped isolation: the Chrome profile (`.browser-profile`) and the daemon namespace always resolve to the consuming repo's root, so multiple agents on the same machine never share a browser session. Auto-injects site guides when navigating to a documented site. Runs in-place from this skill directory; never copy it to the consuming repo.

### Wrapper commands

```bash
node .agents/skills/browser-automation/scripts/browser.js open <url> [--headed|--headless]
node .agents/skills/browser-automation/scripts/browser.js goto <url> [--tab <name>]
node .agents/skills/browser-automation/scripts/browser.js tab-new <url> --name <name>
node .agents/skills/browser-automation/scripts/browser.js tab-list
node .agents/skills/browser-automation/scripts/browser.js exec <cmd> [args...] [--tab <name>]
node .agents/skills/browser-automation/scripts/browser.js wait-dom [--timeout <ms>]
node .agents/skills/browser-automation/scripts/browser.js close | close-all
node .agents/skills/browser-automation/scripts/browser.js save-state <path> | load-state <path>
node .agents/skills/browser-automation/scripts/browser.js status
node .agents/skills/browser-automation/scripts/browser.js doctor
node .agents/skills/browser-automation/scripts/browser.js guides
node .agents/skills/browser-automation/scripts/browser.js contribute
```

`exec` forwards everything after it to `agent-browser` (`eval`, `press`, `click`, `fill`, `type`, `keyboard type`, `snapshot`, `find`, `wait`, `screenshot`, `read`, `batch`, ...). `exec goto` is rewritten to `navigate`; `run-code` is rejected (use `eval`/`batch`).

On first run the wrapper creates `agent-browser.json` in the repo root from `agent-browser.template.json` (namespace, profile, headed mode). It never overwrites an existing file.

Environment: `BROWSER_DEBUG=1` for verbose logging; `AGENT_BROWSER_*` vars pass through and override wrapper defaults.

See `SKILL.md` for the full usage reference.

## `transcribe-audio.js`

Local audio→text transcription (sherpa-onnx Parakeet via the `audio-transcription` npm package). No API keys, no cloud — audio never leaves the machine. Auto-installs the package into `~/.cache/agent-tools` on first use; the model/runtime (~640MB) downloads once into `~/.cache/audio-transcription`, shared by all agents on the machine.

```bash
node .agents/skills/browser-automation/scripts/transcribe-audio.js <audio-file> [--out f.txt] [--stdout-only] [--threads N]
```

See `../references/audio-transcription.md` for details and limitations.

## `teams.js`

Helper for sending messages to Microsoft Teams web via keyboard automation. Useful for long or multiline messages where typing line by line manually is impractical.

### Usage

```bash
# Short message (inline)
node scripts/teams.js send <chatId> "short message"

# Long message via stdin (heredoc)
node scripts/teams.js send <chatId> << 'EOF'
📊 Triage report

46 tickets · 27 overdue

[#1234](https://example.com/tickets/1234)
EOF

# Long message from a file
cat /tmp/report.md | node scripts/teams.js send <chatId>
```

### chatId formats

| Type | Format | Example |
|---|---|---|
| Personal notes | `48:notes` | `48:notes` |
| Meeting chat | `19:meeting_xxx@thread.v2` | `19:meeting_NDQ2Nz...@thread.v2` |
| 1:1 chat | `19:*@unq.gbl.spaces` | `19:8:orgid:xxx@unq.gbl.spaces` |
| Group chat | `19:*@thread.v2` | `19:xxx_yyy@thread.v2` |

### Supported Markdown

Teams web parses Markdown in the compose box:

- `[#text](url)` → clickable link with display text
- `**bold**`, `*italic*`, `~~strike~~`
- `- bullet`, `1. numbered`, `> quote`

HTML tags (`<a href>`) are typed as literal text. Use Markdown.

### How it works

All browser calls go through `node browser.js ...` (never `agent-browser` directly):

1. `browser.js goto https://teams.microsoft.com/v2/chat/<chatId>` navigates to the chat
2. `browser.js exec eval` polls for `div[role=textbox]` (up to ~24s; Teams v2 is slow)
3. Focus + clear the textbox (`exec eval` focus, `exec press Meta+a`, `exec press Delete`)
4. Each line is typed with real keystrokes via `exec keyboard type <line>`
5. `exec press Shift+Enter` between lines (Enter alone is a newline, not send)
6. `exec press Meta+Enter` after the last line sends the message

### Requirements

- `browser.js` in the same directory (`scripts/browser.js`)
- Browser logged into Teams (persistent session in `.browser-profile`)
- `agent-browser` installed (`npm install -g agent-browser`) + system Chrome

### When to use it

- Long or multiline messages (reports, triage, summaries)
- Sending from a file or heredoc

For short one-line messages, use the manual commands in the site guide (`sites/teams_com/guide.md`).

## `test-find-guide.js`

Dependency-free test for the site-guide resolution logic in `browser.js` (`findGuide`). Run:

```bash
node .agents/skills/browser-automation/scripts/test-find-guide.js
```

## `browser-share.js` + `viewer.html`

Temporary remote view/control of the repo browser for the user (credential entry, "show me what you're doing", remote login). Default mode restarts this repo's browser with a single tab on the target URL (full isolation; other agents unaffected; cookies persist). `--attach` shares the running session with a remote tab switcher instead.

```bash
node .agents/skills/browser-automation/scripts/browser-share.js <url> [--ttl <sec>] [--viewport <WxH>] [--headed] [--lan]
node .agents/skills/browser-automation/scripts/browser-share.js --attach [--ttl <sec>] [--lan]
```

Enables the agent-browser stream on a random port, serves `viewer.html` (minimal touch-friendly viewer) through a tiny HTTP+WebSocket bridge, and exposes it via an ephemeral `cloudflared` quick tunnel (PATH or `npx -y` fallback) or directly on the LAN with `--lan`. Prints a tokenized link; auto-tears-down after `--ttl` seconds (default and max 300; `--ttl 0` = infinite, explicit only). Requires Node >= 22; cloudflared optional.

The viewer page is a separate `viewer.html` file — the script substitutes `%%K%%` (access token) and `%%EXPIRES%%` (epoch ms) placeholders when serving it.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall