/engineering-advanced-skills:browser-automationfrom engineering-advanced-skills
Generates polite, rate-limited Python scraper and form-submission scripts using requests, and audits automation code for blocking and overload risks.
Ships in engineering-advanced-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Category: Engineering Domain: Web Automation
The agent uses this skill to write automation that a site owner would accept: identified, rate-limited, robots.txt-aware and resilient to errors. The generated code uses Python requests, so it handles server-rendered HTML only; for JavaScript-heavy pages or full browser control use Playwright (engineering/playwright-pro).
Authorization comes first. Confirm the user may automate the target (their own site, a test environment, a public API, or terms that allow it). Do not help defeat a site's bot protection, CAPTCHAs, logins or rate limits where the site has not allowed automation; the audit tool exists to make permitted automation reliable and polite, not invisible.
Before generating automation, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
anti_detection_checker.py vs form_automation_builder.py vs scraping_toolkit.py).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
# 1. Generate a scraper template: polite strategy, robots.txt check, page cap, JSON output
python scripts/scraping_toolkit.py --url https://example.com/catalog --strategy polite --output /tmp/scraper.py
# 2. Generate a form-submission script from a saved page (pages are never fetched)
python scripts/form_automation_builder.py --html-file assets/sample_contact_form.html \
--base-url https://example.com --output /tmp/form.py
# 3. Audit any automation script before it runs
python scripts/anti_detection_checker.py --file assets/sample_bare_scraper.py # 68/100, exit 1
python scripts/anti_detection_checker.py --file /tmp/scraper.py # 0/100, exit 0
| Tool | Purpose | Key Flags |
|---|---|---|
scraping_toolkit.py | Scraper template with delays, backoff, robots.txt check and page cap | --url, --strategy polite|normal|aggressive|gentle, --max-pages, --output-format csv|json|jsonl, --no-robots, --output |
form_automation_builder.py | Field map (required, CSRF, CAPTCHA, uploads) and a requests script for one form | --html-file, --base-url, --form-index, --output |
anti_detection_checker.py | Risk score from concealment (webdriver masking, fingerprint spoofing, browser-impersonating User-Agent, proxies) and load patterns (sub-second or fixed delays), plus missing protections (rate limit, robots.txt, backoff, jitter, identifying User-Agent) | --file |
All take --format human|json. Default to --strategy polite; use gentle (5-15 s between requests) for small or fragile sites, and aggressive only for targets the user controls or has explicit permission to load-test. Generated scripts send an identifying User-Agent (ExampleCrawler/1.0 (+URL; contact)) that you edit before running; they never rotate User-Agents or proxies.
Exit codes. anti_detection_checker.py: 0 risk below 50, 1 risk 50 or more, 2 missing or unreadable file. The two generators: 0 script generated, 2 missing file, no form found, --form-index out of range, or --url without a saved page.
Done when:
scraping_toolkit.py --strategy polite.anti_detection_checker.py.form_automation_builder.py with --html-file (add --base-url so relative actions resolve).Mistake: A loop of requests with no delay, no page cap and no backoff on 429 or 5xx. Why it happens: It works on the first ten pages, so nobody adds the brakes. Instead: Use the polite strategy: jittered delays, exponential backoff, a page cap. The audit adds risk for each missing protection.
Mistake: Rotating proxies and User-Agents to keep scraping a site that blocks the bot. Why it happens: A block looks like a technical problem. Instead: Treat a block as the site's answer. Ask for API access or permission, or stop.
Mistake: Scraping a single-page app with requests and getting empty templates.
Why it happens: The page looks like HTML in the browser.
Instead: Check the raw response first. If the data arrives via XHR, call that documented endpoint; otherwise use Playwright.
scripts/scraping_toolkit.py, scripts/form_automation_builder.py, scripts/anti_detection_checker.py — the three CLIs above.assets/sample_bare_scraper.py — careless scraper for the audit (exit 1); assets/sample_contact_form.html — form for the builder.references/browser-automation-guide.md — rate limiting, backoff and ethical scraping detail.In Scope:
anti_detection_checker.py for blocking and overload risks (signatures plus missing protections)requests form-submission script with form_automation_builder.py from a locally saved HTML file, with field mapping and form selection by indexscraping_toolkit.py: rate-limit strategy (polite, normal, aggressive, gentle) and an identifying User-Agent, robots.txt checking, a page cap and CSV, JSON or JSONL outputOut of Scope:
engineering/playwright-pro/ and engineering/qa-browser-automation/)engineering/computer-use-automation/)legal/privacy-compliance/ covers privacy law in generalImportant Caveats:
form_automation_builder.py needs --html-file; passed --url alone, it exits with an error.requests library and do not run JavaScript. Pages that build forms or content client-side need a real browser tool instead.assets/sample_bare_scraper.py (opens in a new tab)assets/sample_contact_form.html (opens in a new tab)references/browser-automation-guide.md (opens in a new tab)scripts/anti_detection_checker.py (opens in a new tab)scripts/form_automation_builder.py (opens in a new tab)scripts/scraping_toolkit.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job