browser-automation
БесплатноЗапускает вложенные скриптыНе проверенGenerates polite, rate-limited scraper and form-submission scripts (requests, no JS) and audits automation code for blocking and overload risks. Use when…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Browser Automation
Category: Engineering Domain: Web Automation
Overview
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.
When to Use
- Writing a scraper for a site you own or are permitted to crawl, with rate limits and robots.txt handling.
- Scripting a form submission from a saved page (internal tools, test environments, permitted targets).
- Reviewing an existing crawler or automation script for overload and blocking risks before it runs.
Clarify First
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.
- Target site & task: the URL and exactly what to automate or scrape (drives the generated selectors and flow).
- Which tool: audit an existing script, build form automation, or generate a scraper (selects
anti_detection_checker.pyvsform_automation_builder.pyvsscraping_toolkit.py). - Politeness strategy & authorization: polite vs aggressive, robots.txt compliance, and that you are permitted to automate this target (sets request delays and backoff in the generated code).
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.
Quick Start Workflow
# 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
Tools Overview
| 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:
- Authorization for the target is confirmed and written down.
- The audit scores below 50 and every critical or high signature is fixed or explained.
- The script identifies itself (User-Agent with bot name and contact), masks nothing, honours robots.txt and the terms of service, and stops at a page cap.
- A dry run against a handful of pages produced the expected fields.
Workflows
Build a Reliable Scraper
- Generate the base code with
scraping_toolkit.py --strategy polite. - Fill in the selectors, then audit it with
anti_detection_checker.py. - Fix critical and high items and add any missing protection.
- Run it on a few pages at the polite rate before raising the page cap.
Automate a Form Submission
- Save the page HTML locally and pass it to
form_automation_builder.pywith--html-file(add `--base-
Установить browser-automation в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл browser-automation?
Generates polite, rate-limited scraper and form-submission scripts (requests, no JS) and audits automation code for blocking and overload risks. Use when writing a permitted scraper, scripting a form post, or reviewing a crawler.
Как установить скилл browser-automation?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл browser-automation запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic