Xpersona
B

Browser Fu

CLAWHUB · Unverified

Fixes browser automation failures. Snapshot-first workflow + API discovery behind any website UI. Use when: 'browser not working', 'can't click', 'flaky UI',... Skill: Browser Fu Owner: whooshinglander Summary: Fixes browser automation failures. Snapshot-first workflow + API discovery behind any website UI. Use when: 'browser not working', 'can't click', 'flaky UI',... Tags: latest:1.0.2 Version history: v1.0.2 | 2026-03-24T12:52:46.550Z | user Add predicate-snapshot tip for token-heavy pages in snapshot best practices v1.0.1 | 2026-03-22T17:17:43.950Z | user Shortened descr

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ctz29xn8nnpvxrvxnt46q3h83gg89:browser-fu
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-whooshinglander-browser-fu/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

22,718 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: Browser Fu
description: "Fixes browser automation failures. Snapshot-first workflow + API discovery behind any website UI. Use when: 'browser not working', 'can't click', 'flaky UI', 'DOM not exposed', 'scrape website', 'browser keeps failing', 'automate this website', 'web scraping', 'element not found'."
---

# Browser Fu 🥊

Stop fighting the DOM. Read it first, find the API behind it, skip the UI entirely when possible.

## The Rule

**Never blind-click. Always snapshot first.**

```
1. browser snapshot  →  read the page, get element refs
2. browser act       →  use refs from snapshot (e.g. ref="e12")
3. browser snapshot  →  verify what changed
```

If the snapshot doesn't show what you need, the element isn't in the DOM. Don't guess. Don't retry the same approach.

## Decision Tree

On any browser task, follow this order:

1. **Can I skip the browser entirely?** Check if a CLI tool, API, or `web_fetch` handles it. If yes, don't open the browser.
2. **Can I find the underlying API?** See `references/api-discovery.md`. Most SPAs make fetch/XHR calls you can replicate directly. This is 10x faster and more reliable than UI automation.
3. **Can I do it with snapshot + act?** Snapshot, find the ref, act on it. One action per snapshot cycle.
4. **Does the page need time to load?** Use `loadState: "networkidle"` or a brief wait before snapshotting. SPAs often render asynchronously.
5. **Still not working?** The site likely has anti-bot protection. Report it, don't retry blindly.

## Common Failures and Fixes

| Symptom | Wrong approach | Right approach |
|---|---|---|
| "Element not found" | Click by text/selector guess | Snapshot first, use exact ref |
| "DOM not exposed" | Give up | Snapshot with `refs="aria"`, or check network tab for API |
| Blank/empty page | Retry same URL | `loadState: "networkidle"`, then snapshot. If still blank, JS-heavy SPA, try `web_fetch` or find API |
| Clicking does nothing | Click again harder | Snapshot after click to check state. Maybe it DID work but page re-rendered |
| Login wall | Try to automate login | Use `profile="user"` for existing session cookies |
| Infinite scroll | Scroll and pray | Find the pagination API endpoint instead |

## API Discovery (the power move)

Most modern websites are SPAs with REST/GraphQL APIs behind the UI. See `references/api-discovery.md` for the full procedure:

1. Open the page in browser
2. Check network requests (console tool or snapshot the page and look for fetch patterns)
3. Find the data endpoint
4. Call it directly with `web_fetch` or `exec curl`

This turns a 2-hour flaky scrape into a 2-minute clean data pull.

## Snapshot Best Practices

- Use `refs="aria"` for stable cross-call references
- Keep the same `targetId` across snapshot/act pairs (don't switch tabs accidentally)
- For complex pages, use `depth` to limit how deep the DOM tree goes
- `compact: true` reduces token usage on large pages
- For token-heavy pages where snapshots are too large, pair with 

_meta.json

{
  "ownerId": "kn729a5v7a8k30n3zjncm6hsy583bk42",
  "slug": "browser-fu",
  "version": "1.0.2",
  "publishedAt": 1774356766550
}

references/api-discovery.md

# API Discovery Procedure

## Overview

Most modern websites fetch data from APIs. Finding and calling these APIs directly is faster, more reliable, and less token-intensive than automating the UI. This is the single most valuable browser technique.

## Step 1: Open the Page

```
browser open url="https://example.com/data-page"
```

Wait for load. Take a snapshot to confirm the page rendered.

## Step 2: Check the Console for Network Activity

```
browser console
```

Look for fetch/XHR requests in the output. The data you want is usually loaded via:
- `/api/...` endpoints
- `/graphql` endpoints
- JSON responses containing the data visible on the page

## Step 3: Identify the Data Endpoint

Common patterns:
- `GET /api/v1/items?page=1&limit=20` — REST pagination
- `POST /graphql` with a query body — GraphQL
- `GET /api/search?q=keyword` — search endpoints
- Internal fetch to same domain: `/api/internal/...`

Look for:
- URLs containing `/api/`, `/v1/`, `/v2/`, `/graphql`
- Responses with JSON content type
- Requests that fire when you scroll or click "load more"

## Step 4: Replicate the Request

Once you find the endpoint, call it directly:

```bash
# REST example
curl -s "https://example.com/api/v1/items?page=1&limit=100" \
  -H "Cookie: session=..." | python3 -m json.tool

# Or use web_fetch
web_fetch url="https://example.com/api/v1/items?page=1&limit=100"
```

For authenticated endpoints, you may need cookies from the browser session. Check if the API works without auth first (many do for read-only data).

## Step 5: Paginate or Batch

Most APIs support pagination:
- `?page=1&limit=100` — offset pagination
- `?cursor=abc123` — cursor pagination
- `?offset=0&count=50` — offset/count

Loop through pages until you get all the data. This is typically 100x faster than scrolling through a UI.

## Real Example: Carpark Data

**Task:** Get parking rates for 1,000 Singapore carparks from sgcarmart.com

**UI approach (failed):** Playwright script clicking through pages. 8 hours, 0 usable results. Site had bot detection, dynamic URLs, redirects.

**API discovery approach (worked):**
1. Opened one carpark page in browser
2. Noticed the page made a fetch to `/api/carpark/fetch-carpark-detail-data?id=123`
3. Called that endpoint directly for IDs 1-1143 with 10 concurrent requests
4. 1,000 results in 2 minutes. All structured JSON.

## When API Discovery Fails

- **Static HTML sites** — no API, data is in the HTML. Use `web_fetch` with markdown extraction.
- **Heavy anti-bot** — APIs require tokens that rotate per session. Fall back to browser snapshot + act.
- **WebSocket data** — real-time data via WS connections. Browser is the only option.
- **Captcha-gated APIs** — require human verification. Don't automate these.

skill-card.md

## Description:

Fixes browser automation failures. Snapshot-first workflow + API discovery behind any website UI. Use when: 'browser not working', 'can't click', 'flaky UI', 'DOM not exposed', 'scrape website', 'browser keeps failing', 'automate this website', 'web scraping', 'element not found'.

This skill is ready for commercial/non-commercial use.

## Publisher:

[whooshinglander](https://clawhub.ai/user/whooshinglander)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and engineers use this skill to troubleshoot browser automation failures, inspect pages before acting, and find underlying API endpoints when UI automation is brittle.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Authenticated API-discovery workflows can expose browser session cookies or tokens if live credentials are copied into shell commands.

Mitigation: Prefer unauthenticated or least-privilege requests, confirm the destination origin, and avoid copying live cookies or tokens into shell commands.

Risk: Direct API calls can bypass visible UI safeguards and perform authenticated or state-changing actions.

Mitigation: Require explicit user approval before any authenticated, state-changing, purchase, payment, or irreversible request.

## Reference(s):

- [API Discovery Procedure](references/api-discovery.md)

## Skill Output:

**Output Type(s):** [text, markdown, shell commands, guidance]

**Output Format:** [Markdown guidance with inline shell commands]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Includes browser workflow guidance, API discovery steps, and safeguards for browser sessions.]

## Skill Version(s):

1.0.2 (source: server release metadata, released 2026-03-24)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Browser Fu and adjacent AI workflows.