Command Palette

Search for a command to run...

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

agentic-browser-testing

БесплатноБез исполняемых скриптовНе проверен

Goal-driven E2E testing where a browser agent (Playwright MCP / computer-use) reads a natural-language goal and explores the app via the accessibility tree to…

petrkindlmannот petrkindlmann★ 317 звёзд на GitHub

Об этом скилле

Use a browser agent to explore a scoped natural-language goal and collect evidence from the application. Keep stable, high-frequency critical paths scripted. A browser agent can adapt its navigation when a page changes, but its exploration remains variable. A project-owned oracle must independently establish the result before CI accepts it. Leave a bounded run, a trace, a typed evidence report, and a path to a durable Playwright regression test.

Quick Route

Situation Go to
Stand up a goal-driven run from scratch Discovery + references/setup.md
Decide agentic vs scripted for a given flow Fit: Intent-Driven vs Scripted
Agent passes one run, fails the next Repeatability
"How does it click without screenshots?" Interaction Model
Runs are slow / burning tokens Cost and Latency
Agent reports false success Success Assertion (the Oracle)
Flow is stable — make it permanent Graduation → references/graduation-and-ci.md
Block a merge on the goal CI Gating → references/graduation-and-ci.md
Canvas / no accessibility tree Canvas Fallback → references/graduation-and-ci.md

Discovery Questions

First, check .agents/qa-project-context.md in the project root and skip anything it already answers (stack, environments, seed/reset tooling, model access).

  1. Which flow, and how often does its UI change? Fast-changing/experimental UI favors intent-driven; a stable critical path (login) favors scripted. This decides the whole approach.
  2. Is there a seeded fixture and a way to reset state? Repeatable comparisons require controlled data and a per-run reset. If neither exists, that is step zero.
  3. Can you deep-link past auth to a seeded entry point? Re-driving login every run is the biggest avoidable cost; a seeded entry URL scopes the goal and cuts steps.
  4. What is the unambiguous success oracle? Specific account text, a /dashboard URL, an order number — plus a forbidden state. "No error" is not an oracle.
  5. Does the target render to canvas / WebGL? No accessibility tree means snapshot-first won't work; plan the vision fallback or instrument the canvas with ARIA.
  6. Which model and budget? Choose an available model version and enforce step, time and token budgets up front. Record the installed adapter and actual model returned by the service.

Core Principles

  1. Choose intent-driven exploration where it helps. The agent reads a goal and chooses controls from the current accessibility tree. Compare its observed cost, latency and repeatability with scripted checks before using it for a critical path. Role-based scripted locators also survive many layout and CSS changes.

  2. Control variance and measure repeatability. Pin supported model settings, reset the fixture, bound steps and wall time, and evaluate a separate oracle. Temperature zero and a pinned model reduce some variability; they do not guarantee identical navigation or verdicts. Run repeated healthy and broken controls before enabling a CI gate.

  3. The oracle lives outside the agent. Never let the LLM self-grade "looks good." Success is a checkable assertion against the final browser_snapshot — specific expected text, a URL, AND a forbidden-state negative check — evaluated by your harness, not the model.

  4. Accessibility tree first, pixels last. browser_snapshot returns roles, refs, and accessible names in a machine-readable form. Screenshots, pixel coordinates, vision, and OCR are a scoped last resort for canvas only, never the default.

  5. Graduation is the goal, not perpetual agent runs. Once a flow is stable, promote the run to a durable scripted tests/*.spec.ts with role-based locators. An agent that has been green for two weeks should become a fast, free regression test — keep the agent for exploration, not for guarding a settled path.


Fit: Intent-Driven vs Scripted

The decision is per-flow, not per-project. Run risk-based-testing first if you need the risk map; this table is the routing rule once you have it.

Flow characteristic Use Why
Stable, high-frequency critical path (login, payment) Scripted + pinned (playwright-automation) Runs every PR with a maintained sequence and explicit assertions.
Fast-changing / experimental UI (a dashboard that churns weekly, a redesign in flight) Agentic / intent-driven Selectors would break constantly; a goal survives layout churn.
Hard-to-locate flow you can't reliably select Agentic The agent finds the control by role/name instead of you reverse-engineering a selector.
Exploratory smoke / "does the happy path still work at all" Agentic One NL goal covers a lot of ground without a maintained script.
Anything in CI that must never falsely pass Scripted, OR agentic **with a hard ora
Полный SKILL.md на GitHub

Установить agentic-browser-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/gate-contract.mdreferences/graduation-and-ci.mdreferences/setup.md

FAQ

Что делает скилл agentic-browser-testing?

Goal-driven E2E testing where a browser agent (Playwright MCP / computer-use) reads a natural-language goal and explores the app via the accessibility tree to assert outcomes — no pre-written script. Covers when intent-driven beats scripted, making agent runs repeatable and bounded (pinned model, temperature 0, seeded data, bounded steps, explicit success assertion, snapshot-not-pixel), cost/latency control, the accessibility-tree-first interaction model, CI gating, and graduating a stable run into a scripted Playwright test. Use when: "agentic browser test," "goal-driven browser test," "let an agent explore the app," "natural-language E2E," "browser agent smoke test," "Playwright MCP test." Not for: Writing/maintaining deterministic scripted Playwright tests — that is playwright-automation. Testing your product's OWN LLM features — that is ai-system-testing. Related: playwright-automation, ai-system-testing, exploratory-testing, test-reliability, qa-project-context.

Как установить скилл agentic-browser-testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agentic-browser-testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить agentic-browser-testing с