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

sites/google_maps_com/guide.md

View on GitHub
---
name: google_maps
description: Automate Google Maps for distance verification, business search, and phone number extraction.
verified: 2026-09-02
domains:
  - maps.google.com
---

# Google Maps Automation Guide

## Setup

```bash
# First command must be `open` — `goto` requires an active session
node .agents/skills/browser-automation/scripts/browser.js open "https://www.google.com/maps"
# subsequent navigations: goto "https://www.google.com/maps/..."
```

No login required for basic search and directions.

**Interaction doctrine:** these flows are URL-driven — navigate directly to `/dir/` or `/search/` URLs, then extract from page text. `eval` is used here for text extraction only and must be an IIFE `(()=>{...})()` (bare `async () => {...}` does not run).

## Core flows

### Verify distance between two addresses

Navigate to directions with origin and destination:

```bash
node .agents/skills/browser-automation/scripts/browser.js goto "https://www.google.com/maps/dir/<ORIGIN>/<DESTINATION>"
```

URL-encode addresses with `+` for spaces and `%C3%B3` for accented characters.

Example: `https://www.google.com/maps/dir/Cobo+285+Nueva+Atlantis/Hip%C3%B3lito+Yrigoyen+2941+Nueva+Atlantis`

Extract distance from page text (eval must be an IIFE):

```bash
node .agents/skills/browser-automation/scripts/browser.js exec eval "(() => {
  const text = document.body.innerText;
  const distMatch = text.match(/(\d+[.,]?\d*\s*(km|m))/g);
  return JSON.stringify({
    dists: distMatch ? distMatch.slice(0, 5) : null,
    snippet: text.substring(0, 400)
  });
})()"
```

The first meaningful distance in the array is typically the walking/driving route distance.

### Search for a business and extract phone number

```bash
node .agents/skills/browser-automation/scripts/browser.js goto "https://www.google.com/maps/search/<BUSINESS_NAME>+<LOCATION>"
```

Extract phone from the business card:

```bash
node .agents/skills/browser-automation/scripts/browser.js exec eval "(() => {
  const text = document.body.innerText;
  // Phone patterns: Argentine landline (0XXX XXX-XXXX), mobile (15-XXXX-XXXX), international
  const phoneMatch = text.match(/(\+?\d[\d\s\-]{8,}\d)/g);
  return JSON.stringify({phones: phoneMatch ? phoneMatch.slice(0, 5) : null});
})()"
```

### Use exact coordinates for precise distance

When a street address is ambiguous or returns wrong results, use exact coordinates:

```bash
node .agents/skills/browser-automation/scripts/browser.js goto "https://www.google.com/maps/dir/-36.7683815,-56.6766244/<DESTINATION>"
```

This avoids the problem of Google Maps resolving a generic street name to the wrong segment.

## Gotchas and anti-patterns

### Generic street queries produce misleading routes

**Problem:** Searching `Lebensohn Nueva Atlantis` may resolve to a different part of the street that is far from the actual location, returning a distance of 2+ km when the real distance is 400m.

**Solution:** Use exact coordinates from the map pin, or a more specific address with a street number.

### "Google Maps no encuentra..." error

**Problem:** Some address formats are not recognized (e.g. `Lebensohn y Cobo Nueva Atlantis` with the `y` intersection format).

**Solution:** Try alternative formats:
- `Cobo 285 Nueva Atlantis` (street + number)
- `-36.7655,-56.6757` (coordinates)
- `Cobo+Nueva+Atlantis` (street name only, less precise)

### Multiple distances in the result

**Problem:** The regex returns multiple distance values (e.g. `1 m`, `2 m`, `170 m`). The first few are UI noise (zoom levels, nearby places), not the route distance.

**Solution:** Look for the distance that appears alongside a time estimate (e.g. `2 min` + `170 m`). That is the actual route. The snippet text usually contains `por <street names>` after the correct distance.

### Directions page shows multiple route options

**Problem:** Google Maps shows 2-3 route alternatives with different distances.

**Solution:** The first distance in the snippet (after the UI noise) is usually the fastest/shortest route. Read the snippet text to identify which is labeled "La ruta más rápida" or "Mejor".

### Business phone numbers in different formats

**Problem:** Argentine phone numbers appear in multiple formats:
- Landline: `02257 66-8376`
- Mobile: `011 15-5057-0897`
- International: `+54 9 11 5057-0897`
- WhatsApp normalized: `+54 9 11 5057-0897` (15 prefix removed, 9 added)

**Solution:** Normalize all numbers to international format for WhatsApp: `+54 9 <area> <number>` (remove leading `15`, add `9` after `54` for mobiles).

### Business search returns results in wrong town

**Problem:** Searching for a business name may return a similarly-named business in a different town.

**Solution:** Always include the location in the search query. Verify the address shown in the business card matches the expected town before extracting data.

## Validation

**Validated:** 2026-08-17 against live Google Maps.

## Anti-patterns

- **Do NOT trust generic street queries** for distance verification. Use exact addresses or coordinates.
- **Do NOT assume the first distance in the regex** is the route distance. Filter out UI noise (1m, 2m, 4m values).
- **Do NOT extract phone numbers without verifying** the business is in the correct location.
- **Do NOT use intersection format** (`StreetA y StreetB`) in directions URLs. Use `StreetA + number` or coordinates instead.


## Keyboard shortcuts

**Always prefer keyboard shortcuts over clicking buttons.** Verified 2026-10-24 notes: `Ctrl+/` does NOT open the shortcuts dialog on google.com/maps (it toggles the transit layer) — treat it as unreliable. `/` focuses the search box but leaves a literal `/` in the input — prefer `find placeholder ... fill` or clear first.

| Shortcut | Action |
|---|---|
| Arrow keys / `Shift+Arrow` | Pan map (small / large jump) |
| `+` / `-` | Zoom in / out (map must be focused) |
| `Esc` | Close popup / dialog |
| `Ctrl+Shift+L` | Show my location |
| `Ctrl+Shift+E` | Share or embed map |
| `Ctrl+Shift+1..5` | Toggle satellite / traffic / transit / biking / terrain layers |
| `Ctrl+Shift+D` | Add destination (requires directions panel open) |
| `.` / `,` | Show/hide menu / side panel |

```bash
# Focus search box semantically (preferred over "/" which inserts a literal slash)
node .agents/skills/browser-automation/scripts/browser.js exec find placeholder "Search Google Maps" fill "Obelisco Buenos Aires"
node .agents/skills/browser-automation/scripts/browser.js exec press Enter

# Pan / zoom (map must be focused first — click it or tab to [role=application])
node .agents/skills/browser-automation/scripts/browser.js exec press ArrowUp
node .agents/skills/browser-automation/scripts/browser.js exec press "+"
```

## UI flows (when URL-driven navigation is not enough)

```bash
# Directions via UI
node .agents/skills/browser-automation/scripts/browser.js exec find label "Directions" click   # ES: "Cómo llegar"
node .agents/skills/browser-automation/scripts/browser.js exec find placeholder "Choose destination" fill "<DEST>"   # ES: "Elige un destino..."
node .agents/skills/browser-automation/scripts/browser.js exec press Enter
```

**URL pattern:** after opening directions the URL becomes `/dir/<from>/<to>@<lat>,<lng>,<zoom>z`. The `@lat,lng,zoom` updates as you pan/zoom — use it to verify map position:

```bash
node .agents/skills/browser-automation/scripts/browser.js exec eval "(() => {
  const m = window.location.href.match(/@(-?\d+\.\d+),(-?\d+\.\d+),(\d+)z/);
  return m ? { lat: m[1], lng: m[2], zoom: m[3] } : 'no match';
})()"
```

## Detecting modals

Maps panels like Keyboard Shortcuts use the `dialog` role — find them via `exec snapshot -i | grep "dialog"`.

## Gotchas (UI interaction)

- **Map must be focused for arrow keys and `+`/`-`** — focus `[role="application"]` first or they do nothing.
- **`Ctrl+Shift+D` requires the directions panel open** with at least one destination set.
- **`/` leaves a literal `/` in the search input** — use semantic locators or clear with `Ctrl+A`.
- **There is no `exec type`** — typing into the focused element is `keyboard type`, filling a located element is `fill <sel|@eN>`.

## agent-browser notes (verified 2026-10-24)
- First command must be `open` (`goto` requires an active session).
- Eval must be an IIFE `(()=>{...})()` — `async () => {` snippets do not run as-is.
- Panel labels depend on the profile locale ("Abierto"/"Open", "Mejor"/"Best").
- Transport mode via URL: `/dir/.../data=!4m2!4m1!3e2` (walking), `3e0` driving, `3e3` transit.
- innerText+regex extraction works 100% — no refs needed.
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