Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.json
  • src\site-profiles.js
  • src\planner.js
  • src\llm-planner.js
  • src\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

  1. Prefer URL or title verification for external sites whenever possible.
  2. Prefer stable, unique selectors over generic selectors like button or [name="q"].
  3. If a site profile exists, the final plan should use the profile's exact searchInputSelector and submitSelector.
  4. Keep GitHub out of the default regression matrix. It works, but repeated probing can trigger rate limits.
  5. 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
  6. 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:

  • name
  • hostnames
  • searchInputSelector
  • submitSelector
  • verificationMode
  • expectedUrlTemplate when URL verification is available
  • executionTier — recommended execution path: opencli, fetch, or browser
  • opencliCommand — if opencli supports it, the exact command template
  • authLevel — PUBLIC, COOKIE, HEADER, or LOGIN-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:

  1. Heuristic run
  2. 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_KEY is available
  • `BROWSER_USE_LL
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить external-site-profile-learning с