brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
quality-engineering-playwright-cliStandardizes token-efficient browser automation via playwright-cli, with Playwright MCP as the fallback driver. Runs a preflight, picks the driver rung, captures aria snapshots/console/screenshots into a named evidence dir. Use for web verification, navigation, and capturing snapshots/logs.
Independent GitHub snapshot · Automated classification · Original documentation governs
[!IMPORTANT] Tier 0 (Infrastructure): Browser process management, named sessions, network/console logs. Tier 1 (Core Interactions): Clicks, fills, and navigation (
openvsgoto). Tier 2 (Verification): Snapshot-based assertions and auth state persistence.
Triggers: playwright-cli, playwright mcp, browser_snapshot, browser automation, web verify, snapshot, auth-state.json.
sh scripts/preflight.sh — exit 0 found, 2 missing, 1 broken. PLAYWRIGHT_CLI_BIN overrides lookup.playwright-cli -s={ID} — default when preflight passes and a shell exists.browser_navigate → browser_snapshot → browser_console_messages → browser_take_screenshot → browser_close), launched --isolated --headless --output-dir .playwright-cli/{ID}. Use when CLI missing or runtime has no shell (Antigravity, Copilot). --extension opt-in only: not a security boundary.human-provided.BLOCKED (driver: playwright), continue other lanes.One driver per session. Full table: driver-ladder.
| Step | Command | Purpose |
|---|---|---|
| 1 | playwright-cli -s={ID} open <url> | Start named session. (Mandatory -s=). |
| 2 | playwright-cli -s={ID} snapshot --aria | Aria Snapshot: YAML-like view for LLM reasoning (Best for assertions). |
| 3 | playwright-cli -s={ID} console | Check for JS errors/warnings. |
| 4 | playwright-cli -s={ID} screenshot | Visual evidence. Use --mask <ref> for dynamic content. |
| 5 | playwright-cli -s={ID} close | MANDATORY Cleanup. |
For a sticky header that appears after scrolling, scroll until the header is visible, use hover on the header (or its stable role/reference) to establish the visible state, then capture the screenshot. Keep the named session open until the evidence is captured.
.playwright-cli/{ID}/ (MCP: same dir via --output-dir). Files: <AC|step>-<before|after>.png, <AC|step>-<before|after>.aria.txt, console.txt; trace.zip only on a FAIL needing replay. Walkthrough records driver: + evidence_dir:. Relative paths only; CLI refuses writes outside cwd.
snapshot --aria as primary way to "see" page. Filters noise.button[name="Submit"]) over fragile CSS classes.document.body.style.animation = 'none' to freeze animations before capture.-s=. Bare commands collide across concurrent runs.open for first run; goto for mid-session navigation.close session, even on failure.snapshot rather than pixels.state-load for multi-step flows.When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: