/engineering-advanced-skills:qa-browser-automationfrom engineering-advanced-skills
Runs live browser QA via Chrome MCP with Python tools for health scoring, WCAG accessibility audits, visual regression tracking, and report generation. Use for pre-release QA sweeps or accessibility auditing.
Ships in engineering-advanced-skills. 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; scripts run unread.
The agent drives Chrome MCP for live browser testing and uses four Python tools for deterministic health scoring, accessibility auditing, visual regression tracking, and report generation.
Before the QA sweep, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
# Score QA findings (0-100 weighted across 10 categories); the sample scores 87.1 but fails on its P0
python3 scripts/qa_health_scorer.py assets/sample_findings.json --threshold 85
# Static WCAG checks: sound page exits 0, flawed page exits 1 with 6 violations
python3 scripts/accessibility_auditor.py assets/sound_page.html --level AA
python3 scripts/accessibility_auditor.py assets/flawed_page.html --level AA
# Track visual regressions (screenshots come from the browser session; empty dirs here)
VR=$(mktemp -d); mkdir -p "$VR/baselines" "$VR/screenshots"
python3 scripts/visual_regression_tracker.py --init --baseline-dir "$VR/baselines"
python3 scripts/visual_regression_tracker.py --register "$VR/baselines"
python3 scripts/visual_regression_tracker.py --baseline "$VR/baselines" --current "$VR/screenshots" --threshold 5 # exit 1: nothing compared yet
# Generate the QA report (computes the health score from the findings when the session has none)
python3 scripts/test_report_generator.py assets/sample_findings.json --format markdown -o "$VR/report.md"
| Tool | Input | Output |
|---|---|---|
qa_health_scorer.py | Findings JSON | Score 0-100, grade A-F, category breakdown, trend data |
accessibility_auditor.py | HTML file (or stdin) | WCAG violations by level with remediation guidance |
visual_regression_tracker.py | Baseline + current screenshot dirs | Pass/fail per page, change percentages |
test_report_generator.py | Session data JSON | Markdown or JSON report with recommendations |
The health scorer, accessibility auditor and regression tracker take --json for machine output; the report generator uses --format json.
Exit codes: 0 pass; 1 gate failed (scorer: below --threshold or any P0; auditor: must-fix violations; tracker: regressions, or nothing compared); 2 unreadable input (missing file, bad JSON, missing directory).
Phase 1-2: Pre-flight and authentication.
git status is clean. Abort if dirty..qa-sessions/{timestamp}/Phase 3-4: Orient and explore.
mcp__claude-in-chrome__read_page to build sitemap/page map.read_console_messages for errors, read_network_requests for 4xx/5xx.Phase 5: State testing.
Phase 6: Cross-device and security.
Phase 7-8: Document and score.
python3 scripts/qa_health_scorer.py findings.json --baseline .qa-baselines/latest.jsonPhase 9: Triage and fix loop.
git revert.Phase 10-11: Regression check and report.
python3 scripts/qa_health_scorer.py findings.json --save-baseline (writes .qa-baselines/{date}.json and .qa-baselines/latest.json)python3 scripts/test_report_generator.py session.json -o report.mdValidation checkpoint: qa_health_scorer.py --threshold 85 exits 0, which requires a score of at least 85 and zero P0 findings. accessibility_auditor.py --level AA reports no must-fix violations; contrast and anything rendered by JavaScript still need a manual check, because the auditor reads static HTML.
# Where the browser session saves screenshots (outside the repo); both must exist
BASE="${QA_DIR:-$(mktemp -d)}/baselines"; SHOTS="$(dirname "$BASE")/screenshots"; mkdir -p "$BASE" "$SHOTS"
# Set up baseline, then save the reference screenshots into $BASE and register them
python3 scripts/visual_regression_tracker.py --init --baseline-dir "$BASE"
python3 scripts/visual_regression_tracker.py --register "$BASE"
# After changes, save new screenshots into $SHOTS and compare (exit 1 on regressions or when nothing was compared)
python3 scripts/visual_regression_tracker.py --baseline "$BASE" --current "$SHOTS" --threshold 5 --json
# Accept intentional changes
python3 scripts/visual_regression_tracker.py --update-baseline --baseline "$BASE" --current "$SHOTS"
Pages exceeding the threshold (default 5%) are flagged as regressions. The tracker compares SHA-256 hashes and the raw bytes of the image files, not decoded pixels, so the change percentage is a rough signal and a re-encoded but visually identical screenshot can still read as changed.
python3 scripts/accessibility_auditor.py assets/flawed_page.html --level AA --json
curl -s https://example.com | python3 scripts/accessibility_auditor.py - --level AAA
What gets checked by level:
outline:none, and flags elements with inline color styles for manual contrast review. Contrast ratios are not measured, because the tool cannot compute stylesEach violation includes: WCAG criterion, severity, element selector, and remediation guidance.
| Tier | Duration | Scope |
|---|---|---|
| Quick | 30s | Console errors, broken links, basic a11y, mobile resize |
| Standard | 2-5 min | + Top 10 routes, forms, contrast, Core Web Vitals |
| Deep | 10-20 min | + Full sitemap, state testing, WCAG AA, performance, visual regression, security headers |
| Exhaustive | 30+ min | + Every element, WCAG AAA, all pages performance, 5 breakpoints, auth edge cases, memory leaks |
10 weighted categories, score 0-100:
| Category | Weight | Measures |
|---|---|---|
| Functional | 18% | Forms, CRUD, navigation flows |
| Accessibility | 13% | WCAG compliance, keyboard nav |
| Console Errors | 12% | JS errors, unhandled rejections |
| UX Flow | 12% | Logical navigation, clear feedback |
| Performance | 12% | Core Web Vitals within thresholds |
| Visual Consistency | 10% | Layout shifts, alignment, z-index |
| Broken Links | 8% | HTTP 4xx/5xx, dead anchors |
| Content Quality | 5% | Spelling, placeholder text, truncation |
| Security Headers | 5% | CSP, HSTS, cookie flags |
| Mobile Responsive | 5% | Breakpoints, touch targets, no h-scroll |
Severity deductions: P0: -30, P1: -18, P2: -10, P3: -4, P4: -1.
Grades: A (90-100), B (80-89), C (70-79), D (60-69), F (0-59).
git status dirty.fix(qa): [P{severity}] {description}| Problem | Cause | Solution |
|---|---|---|
| Scorer exits code 1 | Score below --threshold (default 70) or at least one P0 finding | Read the Blocked by line; fix the P0 or the findings dragging the score |
| Scorer exits code 2 | Findings file missing or not valid JSON | Check the path and JSON syntax |
Auditor reports parse-error | Malformed HTML | Verify file is complete; check curl is not returning redirect |
| Regression tracker reports FAIL with "Nothing was compared" | No registered baselines, so every page counts as new | Run --init, then --register the baseline directory, then compare |
| Findings default to P3/functional | Missing severity or category keys | Include both keys in each finding dict |
| Chrome MCP returns stale content after SPA nav | DOM updated without full page load | Wait for transition, call read_page again |
Mistake: Reporting a pass because the health score cleared the threshold. Why it matters: A weighted score can absorb a P0 blocker; one broken checkout outweighs twenty clean pages. Instead: Treat any P0 as a failed gate (the scorer does) and fix or escalate it before release.
Mistake: Comparing screenshots before baselines are registered.
Why it matters: Every page shows up as new and nothing is compared, which looks like no regressions.
Instead: --init, --register, then compare; the tracker now fails when it compared nothing.
Mistake: Calling a page WCAG AA compliant from the static auditor alone. Why it matters: It cannot measure contrast, focus visibility or JavaScript-rendered content. Instead: Report its findings as a floor and add keyboard and contrast checks in the browser.
| Guide | Path |
|---|---|
| Browser Testing Methodology | references/browser_testing_methodology.md |
| WCAG Compliance Guide | references/wcag_compliance_guide.md |
| Performance Benchmarks | references/performance_benchmarks.md |
In Scope:
qa_health_scorer.py: 0-100 score, A-F grade, ten categories, baseline trend, and exit 1 below --threshold or on any P0 (exit 2 on unreadable input).accessibility_auditor.py at level A, AA or AAA. WCAG 2.2 additions such as target size and focus not obscured need a rendered page, so check them in the browser.visual_regression_tracker.py, and Markdown or JSON session reports with test_report_generator.py.Out of Scope:
engineering/playwright-pro/).engineering/a11y-audit/).engineering/performance-profiler/).engineering/security-audit/).Important Caveats:
accessibility_auditor.py parses static HTML. It cannot compute styles, so color contrast is flagged for manual review rather than measured, and content rendered by JavaScript is missed unless the saved HTML includes it.visual_regression_tracker.py compares file hashes and bytes of image files, not pixels. Its change percentage is a rough signal, and a re-encoded but identical screenshot can still read as changed.assets/flawed_page.html (opens in a new tab)assets/qa_report_template.md (opens in a new tab)assets/sample_findings.json (opens in a new tab)assets/sound_page.html (opens in a new tab)references/browser_testing_methodology.md (opens in a new tab)references/performance_benchmarks.md (opens in a new tab)references/wcag_compliance_guide.md (opens in a new tab)scripts/accessibility_auditor.py (opens in a new tab)scripts/qa_health_scorer.py (opens in a new tab)scripts/test_report_generator.py (opens in a new tab)scripts/visual_regression_tracker.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job