AGENT SKILL

playwright-browser-discovery

Discover live web UI structure with Playwright or playwright-cli before authoring browser tests or page objects.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 4
Forks
3

01 前言 Front Matter

name
playwright-browser-discovery
engines
[ "AGNOSTIC" ]
description
Discover live web UI structure with Playwright or playwright-cli before authoring browser tests or page objects.

02 资源文件 1

03 SKILL.md 正文

When to use

Use when the user needs to inspect a live web page, discover selectors, identify field types, record conditional UI behavior, capture screenshots, or confirm a browser workflow before writing Playwright tests.

Typical triggers:

  • creating a new page object
  • diagnosing a stale selector
  • enumerating dropdown/multiselect options
  • checking conditional fields after a radio, checkbox, or dropdown change
  • producing UI evidence for a test plan

Output

Produce a concise discovery record:

  • target environment and entry URL
  • navigation path used to reach the screen
  • stable selectors or IDs discovered
  • control type for each relevant field
  • conditional behavior and how it is triggered
  • screenshots, snapshots, traces, or eval output paths when available
  • implementation recommendations for page objects and test data

Notes

  • Prefer host-owned login helpers, fixtures, and existing specs over rebuilding authentication manually.
  • Use browser snapshots for orientation and page.evaluate/DOM enumeration for large or dynamic pages.
  • Record exact option labels for dropdowns and multiselects; tests should use visible labels only when the application contract supports that.
  • Treat snapshot element refs as temporary. Re-snapshot after navigation or dynamic UI changes.
  • On Windows, do not invent unsupported CLI flags. Use the locally installed playwright-cli or npx playwright-cli with the flags supported by that version.
  • Store generated discovery artifacts in host scratch locations such as .playwright-cli/; do not promote them into Hephaera unless they are reusable templates or references.
  • Reference docs bundled with Hephaera live under assets/playwright-cli/references/.
  • When the user needs a non-interactive handoff, run commands/playwright-discovery-report.sh to summarize snapshots, screenshots, traces, and videos into .hephaera/.cache/reports/.

04 同仓库更多 Skills

TimothyMeadows
TimothyMeadows/Hephaera

verify-web3-game-lifecycle

Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

verify-onchain-game-assets

Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

plan-web3-game-assets

Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-wallets

Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-asset-trading

Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

build-evm-game-contracts

Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.

★ 4