common-accessibility
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Standardizes 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
Claude Code
$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill quality-engineering-playwright-cli --agent claude-code
Codex
$ npx skills add hoangnguyen0403/agent-skills-standard --skill quality-engineering-playwright-cli -a codex -y
Cursor
$ npx skills add hoangnguyen0403/agent-skills-standard --skill quality-engineering-playwright-cli -a cursor -y
Gemini CLI
$ npx skills add hoangnguyen0403/agent-skills-standard --skill quality-engineering-playwright-cli -a gemini-cli -y
GitHub Copilot
$ npx skills add hoangnguyen0403/agent-skills-standard --skill quality-engineering-playwright-cli -a github-copilot -y
OpenCode
$ npx skills add hoangnguyen0403/agent-skills-standard --skill quality-engineering-playwright-cli -a opencode -y
Windsurf
$ npx skills add hoangnguyen0403/agent-skills-standard --skill quality-engineering-playwright-cli -a windsurf -y
name: quality-engineering-playwright-cli
description: Standardizes 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.
metadata:
triggers:
keywords:
- playwright-cli
- playwright mcp
- browser_snapshot
- browser automation
- web verify
- browser navigate
- page verification
- playwright-cli install> [!IMPORTANT] > **Tier 0 (Infrastructure)**: Browser process management, named sessions, network/console logs. > **Tier 1 (Core Interactions)**: Clicks, fills, and navigation (`open` vs `goto`). > **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`.
1. `sh scripts/preflight.sh` — exit 0 found, 2 missing, 1 broken. `PLAYWRIGHT_CLI_BIN` overrides lookup. 2. `playwright-cli -s={ID}` — default when preflight passes and a shell exists. 3. Playwright MCP (`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. 4. Neither: ask for exported screenshots + console log; label `human-provided`. 5. Nothing exported: return `BLOCKED (driver: playwright)`, continue other lanes.
One driver per session. Full table: [driver-ladder](references/driver-ladder.md).
| 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.
The portable standards layer for AI coding agents. Sync once, then work in your own runtime.
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Define deterministic guardrails for agent tool calls — protected paths, test-file locks during bug fixes, post-edit formatters,…
Apply REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards for any framework. Use…
Audit structural debt, logic leakage, and monolithic components across Web, Mobile, and Backend codebases. Use when reviewing…
Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional…
Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.