/skill-madness:playwrightfrom skill-madness
Runs browser E2E tests, captures screenshots, and validates user flows with Playwright in visible Chrome. Supports report mode for automated test runs and spot-check mode for interactive walkthroughs.
Ships in skill-madness. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Run browser-based E2E tests with visible Chrome, capture screenshots at each interaction point, and produce structured reports or interactive spot-check sessions.
headless: false). Headless runs are only acceptable as fast signal loops for pure logic (diagnose-loop Phase 1 recipes), never as evidence that a UI's design or function is correct.Automated test execution that produces a timestamped run directory with screenshots, a structured JSON report, and a human-readable summary. Use this when running as part of qe-agent's integration phase, CI-adjacent verification, or any time you need a documented record of test results.
Interactive session where the user watches the visible browser and approves each step in real time. Triggered by "let me watch", "spot check", or "walk me through". Pause after each navigation or interaction, describe what's on screen, and wait for the user's go-ahead. Screenshots still land in the timestamped run directory. Full workflow in references/screenshot-workflow.md.
Before running any tests, verify Playwright is available. Read references/setup.md for the full installation and configuration flow.
Quick check:
# Check if Playwright is installed
npx playwright --version 2>/dev/null || echo "NOT_INSTALLED"
If not installed, install it along with the Chromium browser:
npm init -y 2>/dev/null # ensure package.json exists
npm install -D @playwright/test
npx playwright install chromium
Screenshot cost scales with page height, not viewport size, and a long page will exhaust system memory before anything warns you. Measure before you capture:
const h = await page.evaluate(() => document.documentElement.scrollHeight)
Then apply these rules:
fullPage: true is fine.fullPage. Scroll in viewport-sized tiles and capture each one. A list page can be 30,000–50,000px tall; at 1280px wide, 31,000px decodes to ~150 MB of raw RGBA per image.pixelmatch, odiff) needs uncompressed RGBA: two inputs plus an output buffer is three copies. On a 31,000px page that is ~460 MB for a single comparison.Sampling beats exhaustiveness on very long pages: comparing at 25%, 50%, 75%, and bottom catches real regressions at a fraction of the cost. Bound the run before launching it — the failure mode is a stalled machine and lost user work, not a clean error.
Determine what to test. Translate inputs (plan excerpt, acceptance criteria, user request) into a list of user flows. See references/selectors-guide.md for how to structure each flow as navigate → interact → assert → screenshot.
Write the test script in non-headless Chromium so screenshots show the real rendered UI. See references/selectors-guide.md for the standard test.use({ headless: false }) block, key patterns (waitForLoadState('networkidle'), descriptive screenshot names, multi-viewport runs), and the accessibility quick-check snippet.
Execute the run. The standard RUN_ID=$(date +%Y-%m-%d_%H-%M-%S) command for both @playwright/test runner and standalone npx tsx execution is in references/selectors-guide.md.
Lay out the outputs. Everything from a run lives under a single gitignored root: .playwright/<run-id>/, with screenshots/ (PNGs) and results/ (traces, raw JSON, logs, the test script) beneath it. One root keeps a project's working tree from sprouting playwright-screenshots/, playwright-results/, .playwright-mcp/, and test-results/ side by side. See references/screenshot-workflow.md for the exact directory layout and naming convention.
Produce the report. Report mode emits two files at the run-dir top level: .playwright/<run-id>/report.json (structured) and report.md (human-readable). See references/screenshot-workflow.md for the exact JSON schema and markdown template.
When spawned by qe-agent during Phase 2 (Integration Verification): qe-agent provides base URL + flows + acceptance criteria; you return the run-dir path (.playwright/<run-id>/) — its report.json plus the screenshots/ directory; qe-agent incorporates the findings into the overall QA report. Full handoff details — and standalone invocation — are in references/screenshot-workflow.md.
Common issues and fixes are in references/screenshot-workflow.md; the full troubleshooting guide is in references/setup.md. Quick checklist:
npx playwright install-deps chromiumchromiumSandbox: false (non-production only)waitForLoadState('networkidle') before capturefullPage on a very tall page, a context per screenshot, or a pixel-diff holding several decoded images. See "Capture Bounds" above and tile instead.references/setup.md — installation and configurationreferences/selectors-guide.md — test-script patterns, key Playwright idioms, accessibility quick-check, run commandsreferences/screenshot-workflow.md — directory layout, JSON + Markdown report formats, spot-check workflow, QE handoff, troubleshootingWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ivy00johns/skill-madness --plugin skill-madness87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/Other plugins' skills for the same job