external-site-profile-learning
БесплатноБез исполняемых скриптовНе проверенUse this skill when investigating, adding, validating, or debugging external website profiles for the 99idea Playwright browser demo. It teaches how to probe…
от gabrielmoreira★ 23 звезды на GitHubОб этом скилле
External site profile learning skill
Use this skill when working on the target Playwright browser project (for example, the 99idea demo project).
This project is a Playwright-based browser demo that supports config-driven external site profiles through:
scenarios\site-profiles.jsonsrc\site-profiles.jssrc\planner.jssrc\llm-planner.jssrc\run-demo.js
What this skill is for
Use this skill when the task involves any of the following:
- adding a new external site profile
- debugging why an external site passes heuristics but fails with Gemini
- turning a random website experiment into a stable config-driven profile
- identifying whether a site is suitable for the default regression matrix
- distinguishing selector problems from login, anti-bot, or hidden-UI problems
Core rules
- Prefer URL or title verification for external sites whenever possible.
- Prefer stable, unique selectors over generic selectors like
buttonor[name="q"]. - If a site profile exists, the final plan should use the profile's exact
searchInputSelectorandsubmitSelector. - Keep GitHub out of the default regression matrix. It works, but repeated probing can trigger rate limits.
- Classify the site's execution tier before writing a browser profile:
- If opencli already supports the site, prefer an opencli-based workflow over a selector-based profile
- If the site has a public API, prefer fetch over browser automation
- Only write a browser profile when no higher-tier execution path exists
- Treat these as different failure classes:
- selector ambiguity
- hidden or disabled controls
- opener-required search UI
- SPA shell (no usable DOM without full JS rendering)
- login gates
- anti-bot / rate-limit behavior
- heavy pages that stall on
load
Dual-engine awareness (inspired by opencli)
When stabilizing a site, consider whether the profile should be:
- Data-only (YAML-like): selector + verification config in JSON — for traditional DOM-based sites
- Runtime-aware: includes execution path recommendation (opencli / fetch / browser) — for modern platforms
A good profile should record not just how to interact with the UI, but also what the best execution path is.
Standard workflow
1. Probe the site
Open the homepage in Playwright and inspect:
- search inputs
- submit buttons
- search opener buttons or icons
- whether inputs are visible, enabled, and editable
- whether there are duplicate controls in headers, footers, drawers, or overlays
Record:
- selector candidates
- whether search is immediately usable
- whether search is hidden/disabled until another action happens
- whether the site supports a deterministic URL check after search
2. Classify the site
Use this decision process:
- If a visible input and a stable submit control exist, the site is a good normal profile candidate.
- If the site requires an opener interaction but still fits the current action model, prefer a more specific selector strategy or a special-case scenario.
- If the site requires behavior beyond the current action model, mark it blocked or incomplete rather than forcing a brittle profile.
- If the site is gated by login or aggressively rate-limited, do not add it to the default regression matrix.
3. Add the profile
When the site is a good fit, add a data-only profile to scenarios\site-profiles.json with:
namehostnamessearchInputSelectorsubmitSelectorverificationModeexpectedUrlTemplatewhen URL verification is availableexecutionTier— recommended execution path:opencli,fetch, orbrowseropencliCommand— if opencli supports it, the exact command templateauthLevel—PUBLIC,COOKIE,HEADER, orLOGIN-GATED
Keep the behavior in code and the site data in JSON.
Recommended profile-writing rules:
- use exact selectors, not broad selectors that only happen to work once
- qualify selectors with a container when header and footer controls are duplicated
- prefer
verificationMode: "url"when the site has a deterministic query string - prefer
verificationMode: "title"when the search result page has a stable title change - do not force opener-only or login-gated flows into a normal default profile
4. Validate both planning modes
Validate in this order:
- Heuristic run
- Gemini / LLM run
Use commands like:
npm run validate:external:core
npm run validate:external:popup
npm run validate:external:heavy
npm run validate:external
npm run validate:external:llm:core
npm run validate:external:llm:popup
npm run validate:external:llm:heavy
npm run validate:external:llm
node src\run-demo.js --allow-external --url "https://example.com/" --goal "Search Example for AI and verify that the URL includes q=AI."
node src\run-demo.js --scenario <temp-scenario.json> --planner llm
Before Gemini validation, ensure:
GEMINI_API_KEYis available- `BROWSER_USE_LL
Установить external-site-profile-learning в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл external-site-profile-learning?
Use this skill when investigating, adding, validating, or debugging external website profiles for the 99idea Playwright browser demo. It teaches how to probe selectors, classify failure modes, add config-driven profiles, and validate both heuristic and Gemini flows.
Как установить скилл external-site-profile-learning?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл external-site-profile-learning запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic