agentsclimarketplace

Browser probe

Skill catalan-adobe/skills/skills/browser-probe

Probe a URL with escalating headless browser configurations to detect CDN bot protection (Akamai, Cloudflare, DataDome, AWS WAF) and produce a browser-recipe.json that downstream playwright-cli consumers use to bypass blocking. Runs an automated escalation ladder: default headless → stealth script injection → system Chrome (TLS fingerprint fix) → persistent profile. Use BEFORE any playwright-cli interaction with an untrusted domain. Triggers on: browser probe, site blocked, headless blocked, CDN blocking, bot detection, browser recipe, can't load page, 403 error page, access denied.From its SKILL.md

Install
npx -y skills add catalan-adobe/skills --skill browser-probe

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

6.1 KB, as published. Nobody here has run it

Browser Probe

Detect CDN bot protection blocking headless Chrome and produce a browser recipe for downstream playwright-cli consumers. Node 22+ required. No npm dependencies.

When to Use

Run this skill before any playwright-cli interaction with a domain you haven't tested, or when a downstream script reports a blocked page. Common triggers:

  • First interaction with a new domain
  • capture-snapshot.js produces empty/error snapshots
  • Page title contains "error", "denied", "blocked", "captcha"
  • HTTP 403 responses from headless browser

Script Location

if [[ -n "${CLAUDE_SKILL_DIR:-}" ]]; then
  PROBE_DIR="${CLAUDE_SKILL_DIR}/scripts"
else
  PROBE_DIR="$(dirname "$(command -v browser-probe.js 2>/dev/null || \
    find ~/.claude -path "*/browser-probe/scripts/browser-probe.js" \
    -type f 2>/dev/null | head -1)")"
fi

Workflow

Step 1 — Run the probe

node "$PROBE_DIR/browser-probe.js" "$URL" "$OUTPUT_DIR"

The script tries up to 5 browser configurations, stopping at the first success:

  1. default — headless Chromium (baseline)
  2. stealth — headless Chromium + JS stealth init script (patches navigator.webdriver, plugins, languages)
  3. stealth-ua — headless Chromium + JS stealth + User-Agent override (removes HeadlessChrome from HTTP UA header via --user-agent launch arg)
  4. chrome — system Chrome (--browser=chrome) + JS stealth + UA override (fixes TLS fingerprint detection)
  5. persistent — system Chrome + JS stealth + UA override + persistent profile (cookie/session challenges)

Output: $OUTPUT_DIR/probe-report.json

Step 2 — Read the report

Load probe-report.json. Check firstSuccess:

  • If non-null: a configuration worked. Proceed to Step 3.
  • If null: all configurations failed. Skip to Step 5.

Step 3 — Interpret results

Load stealth-config.md and match the detectedSignals array against the Provider Signature Table.

Key interpretation rules:

  • cloudfront-block or stealth fails but stealth-ua succeeds → CloudFront WAF UA-based blocking (matches HeadlessChrome in HTTP User-Agent header). Common on pharma/enterprise sites. Simple fix, no TLS concerns. stealth-ua is the minimum working config.
  • cloudfront without cloudfront-block → CloudFront present but not actively blocking. Default config may work.
  • akamai-server or akamai-bot-manager → TLS fingerprint blocking. System Chrome is the fix. Stealth + UA alone is insufficient.
  • cloudflare-ray without cloudflare-challenge → Cloudflare present but not actively blocking. Default config may work.
  • cloudflare-challenge → Active JS challenge. System Chrome + stealth
    • UA usually resolves it.
  • datadome → Aggressive detection. System Chrome + stealth + UA required.
  • aws-waf → Usually UA-based. Stealth + UA often sufficient.
  • No signals + blocked → Unknown protection. Persistent profile is last resort.

Step 4 — Generate recipe

Write browser-recipe.json to $OUTPUT_DIR:

{
  "url": "<probed URL>",
  "generated": "<ISO timestamp>",
  "cliConfig": {
    "browser": {
      "browserName": "chromium",
      "launchOptions": { "channel": "<from firstSuccess step>" }
    }
  },
  "stealthInitScript": "<full script from stealth-config.md if stealth was needed>",
  "notes": "<1-2 sentence explanation of what was detected and why this config>"
}

Config mapping from firstSuccess:

firstSuccesscliConfig.launchOptionsstealthInitScript
default{} (no channel, no args)null (not needed)
stealth{} (no channel, no args)Full stealth script from reference
stealth-ua{ "args": ["--user-agent=<realistic UA>"] }Full stealth script from reference
chrome{ "channel": "chrome", "args": ["--user-agent=<realistic UA>"] }Full stealth script from reference
persistent{ "channel": "chrome", "args": ["--user-agent=<realistic UA>"] }Full stealth script from reference

If firstSuccess is persistent, add a "persistent": true field to the recipe so consumers know to use --persistent.

Step 5 — Report results

If a configuration worked:

Browser probe complete for <url>.
  Working config: <firstSuccess>
  Detected: <detectedSignals or "no bot protection detected">
  Recipe: <path to browser-recipe.json>

If all configurations failed:

Browser probe failed for <url>. No headless configuration could load the page.
  Tried: default, stealth, stealth-ua, chrome, persistent
  Detected signals: <detectedSignals>

  Options:
  1. Use --headed flag for manual browser interaction
  2. Provide pre-captured data (DOM snapshot, screenshots) manually
  3. Check if the URL requires authentication or VPN access

Do NOT produce a recipe when all steps fail. Do NOT silently continue with a broken configuration.

How Consumers Use the Recipe

Any script using playwright-cli can consume browser-recipe.json:

  1. Write cliConfig to a temp file (e.g., /tmp/probe-cli-config.json)
  2. If recipe has stealthInitScript, write it to a temp file and add it to the config's browser.initScript array (do NOT use playwright-cli eval — eval only accepts pure expressions, not multi-statement scripts)
  3. Pass --config=/tmp/probe-cli-config.json to playwright-cli open
  4. Proceed with normal goto <url> and workflow

If recipe has "persistent": true, also pass --persistent to open.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.