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
npx -y skills add catalan-adobe/skills --skill browser-probeAssembled 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.jsproduces 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:
- default — headless Chromium (baseline)
- stealth — headless Chromium + JS stealth init script (patches
navigator.webdriver, plugins, languages) - stealth-ua — headless Chromium + JS stealth + User-Agent override (removes
HeadlessChromefrom HTTP UA header via--user-agentlaunch arg) - chrome — system Chrome (
--browser=chrome) + JS stealth + UA override (fixes TLS fingerprint detection) - 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-blockorstealthfails butstealth-uasucceeds → CloudFront WAF UA-based blocking (matchesHeadlessChromein HTTP User-Agent header). Common on pharma/enterprise sites. Simple fix, no TLS concerns.stealth-uais the minimum working config.cloudfrontwithoutcloudfront-block→ CloudFront present but not actively blocking. Default config may work.akamai-serverorakamai-bot-manager→ TLS fingerprint blocking. System Chrome is the fix. Stealth + UA alone is insufficient.cloudflare-raywithoutcloudflare-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:
| firstSuccess | cliConfig.launchOptions | stealthInitScript |
|---|---|---|
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:
- Write
cliConfigto a temp file (e.g.,/tmp/probe-cli-config.json) - If recipe has
stealthInitScript, write it to a temp file and add it to the config'sbrowser.initScriptarray (do NOT useplaywright-cli eval— eval only accepts pure expressions, not multi-statement scripts) - Pass
--config=/tmp/probe-cli-config.jsontoplaywright-cli open - Proceed with normal
goto <url>and workflow
If recipe has "persistent": true, also pass --persistent to open.