galiprandi/job-seeker / .agents/skills/browser-automation
browser-automation
VerifiedControl 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.
references/api-capture.md
View on GitHub# API Request Capture (Reverse Engineering)
When an app's internal API is undocumented, capture network requests to discover endpoints. agent-browser records requests automatically per session; use `network requests` and `network har` instead of writing interceptor scripts.
## Quick capture
```bash
# 1. Open the app
node .agents/skills/browser-automation/scripts/browser.js open "https://app.example.com" --headed
# 2. Perform the action you want to capture in the UI
# 3. List recorded requests, filtered to what looks like an API call
node .agents/skills/browser-automation/scripts/browser.js exec network requests --filter "api"
node .agents/skills/browser-automation/scripts/browser.js exec network requests --filter "message"
```
## Full detail via HAR
For headers, request bodies, and response bodies, record a HAR file:
```bash
node .agents/skills/browser-automation/scripts/browser.js exec network har start
# ... perform the action in the UI ...
node .agents/skills/browser-automation/scripts/browser.js exec network har stop /tmp/capture.har
# Inspect locally
jq '.log.entries[] | {url: .request.url, method: .request.method, headers: .request.headers, body: .request.postData.text}' /tmp/capture.har
```
## Blocking requests during capture
To confirm an endpoint is required (or to stub a response):
```bash
node .agents/skills/browser-automation/scripts/browser.js exec network route "*://*.example.com/api/track*" --abort
node .agents/skills/browser-automation/scripts/browser.js exec network route "*/api/data" --body '{"ok":true}'
node .agents/skills/browser-automation/scripts/browser.js exec network unroute
```
This works for any web app. Use it when:
- The app has no public API documentation
- You need to automate an action not covered by existing scripts
- The API has changed and existing scripts break
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 472k | Updated | Claude CodeCodex | Verified | Install |
| 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: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| 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 available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |