Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

qa-browser-automation

БесплатноЗапускает вложенные скриптыНе проверен

Live browser QA through Chrome MCP plus Python tools for health scoring, static WCAG checks, screenshot baselines and reports. Use when running a QA sweep on…

borgheiот borghei★ 1 250 звёзд на GitHub

Об этом скилле

QA Browser Automation

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.

When to Use

  • Running a structured QA sweep on a web app before a release, with evidence for every finding.
  • Auditing saved HTML for common WCAG failures.
  • Tracking screenshot changes between releases.
  • Turning a QA session into a scored, comparable report.

Clarify First

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.

  • Target URL/app + auth: what to test and how to log in (the subject of the entire sweep).
  • Testing tier: Quick / Standard / Deep / Exhaustive (sets scope, breakpoints, and duration).
  • Fix autonomy: auto-fix P3/P4 and commit, vs report-only / ask before any code change (changes whether the working tree is modified).
  • WCAG target level: A / AA / AAA (sets the accessibility pass bar).

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.

Quick Start

# 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"

Tools Overview

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).


Workflow 1: Full Application QA Sweep (11 Phases)

Phase 1-2: Pre-flight and authentication.

  • Verify git status is clean. Abort if dirty.
  • Create session directory: .qa-sessions/{timestamp}/
  • Authenticate via Chrome MCP if needed.

Phase 3-4: Orient and explore.

  • Use mcp__claude-in-chrome__read_page to build sitemap/page map.
  • Navigate each route. Check read_console_messages for errors, read_network_requests for 4xx/5xx.
  • Test all forms with valid data, empty submissions, and boundary values.

Phase 5: State testing.

  • Verify loading states (skeleton screens, not blank), empty states (guides to first action), error states, success states, partial states.
  • Four shadow paths per interaction: happy path, nil input, empty input, error upstream.

Phase 6: Cross-device and security.

  • Resize to 320px, 768px, 1024px, 1440px, 1920px.
  • Check touch targets (44x44px min), layout shifts.
  • Verify security headers (CSP, HSTS, X-Frame-Options), cookie flags.

Phase 7-8: Document and score.

  • Record every finding with screenshot evidence. No finding without evidence.
  • Classify by severity (P0-P4) and category (10 categories).
  • Run: python3 scripts/qa_health_scorer.py findings.json --baseline .qa-baselines/latest.json

Phase 9: Triage and fix loop.

  • P3/P4: fix directly only if the user chose auto-fix in Clarify First; commit atomically and verify.
  • P0/P1/P2: present the evidence and a proposed fix, and wait for approval before changing code.
  • After each fix: re-run check. If fail: git revert.
  • Hard stop at 50 fixes.

Phase 10-11: Regression check and report.

  • Re-visit fixed pages. Verify no new errors.
  • Save the score as the next baseline: `python3 scripts/qa_health_scorer.py findings.json --
Полный SKILL.md на GitHub

Установить qa-browser-automation в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

assets/flawed_page.htmlassets/qa_report_template.mdassets/sample_findings.jsonassets/sound_page.htmlreferences/browser_testing_methodology.mdreferences/performance_benchmarks.mdreferences/wcag_compliance_guide.mdscripts/accessibility_auditor.pyscripts/qa_health_scorer.pyscripts/test_report_generator.pyscripts/visual_regression_tracker.py

FAQ

Что делает скилл qa-browser-automation?

Live browser QA through Chrome MCP plus Python tools for health scoring, static WCAG checks, screenshot baselines and reports. Use when running a QA sweep on a web app, auditing accessibility, or tracking visual regressions.

Как установить скилл qa-browser-automation?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл qa-browser-automation запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить qa-browser-automation с