configure-ux-testing
БесплатноЗапускает вложенные скриптыНе проверенUX testing: Playwright E2E, axe-core a11y, visual regression. Use when setting up E2E testing, screenshot assertions, browser automation, or a11y CI workflows.
от laurigates★ 61 звезда на GitHubОб этом скилле
/configure:ux-testing
Check and configure UX testing infrastructure with Playwright as the primary tool for E2E, accessibility, and visual regression testing.
When to Use This Skill
| Use this skill when... | Use another approach when... |
|---|---|
| Setting up Playwright E2E testing infrastructure for a project | Running existing Playwright tests (use bun test:e2e or test-runner agent) |
| Adding accessibility testing with axe-core to a project | Performing manual accessibility audits on a live site |
| Configuring visual regression testing with screenshot assertions | Debugging a specific failing E2E test (use system-debugging agent) |
| Setting up Playwright CLI or MCP for Claude browser automation | Writing individual test cases (use playwright-testing skill) |
| Creating CI/CD workflows for E2E and accessibility test execution | Configuring unit or integration tests (use /configure:tests) |
Context
- Package manager: !
find . -maxdepth 1 \( -name 'package.json' -o -name 'bun.lock' -o -name 'bun.lockb' \) - Playwright config: !
find . -maxdepth 1 -name 'playwright.config.*' - Playwright installed: !
find . -maxdepth 1 -name 'package.json' -exec grep -l '@playwright/test' {} + - Axe-core installed: !
find . -maxdepth 1 -name 'package.json' -exec grep -l '@axe-core/playwright' {} + - E2E test dir: !
find . -maxdepth 2 -type d \( -name 'e2e' -o -name 'tests' \) - Visual snapshots: !
find . -maxdepth 4 -type d -name '__snapshots__' - MCP config: !
find . -maxdepth 1 -name '.mcp.json' - CI workflow: !
find . -path '*/.github/workflows/*' -maxdepth 3 -name 'e2e*'
UX Testing Stack:
- Playwright - Cross-browser E2E testing (primary tool)
- axe-core - Automated accessibility testing (WCAG compliance)
- Playwright screenshots - Visual regression testing
- Playwright CLI - Browser automation via CLI (preferred for AI agents with shell access)
- Playwright MCP - Browser automation via MCP (fallback for sandboxed environments)
Parameters
Parse from command arguments:
--check-only: Report status without offering fixes--fix: Apply all fixes automatically without prompting--a11y: Focus on accessibility testing configuration--visual: Focus on visual regression testing configuration
Execution
Execute this UX testing configuration check:
Step 1: Fetch latest tool versions
Verify latest versions before configuring:
- @playwright/test: Check playwright.dev or npm
- @axe-core/playwright: Check npm
- @playwright/cli: Check npm
- playwright MCP: Check npm
Use WebSearch or WebFetch to verify current versions.
Step 2: Detect existing UX testing infrastructure
Run the detection script to scan the project for Playwright / axe-core signals
(package.json deps + config globs), the e2e dir / __snapshots__ / e2e workflow,
and the playwright MCP-server entry:
bash "${CLAUDE_SKILL_DIR}/scripts/configure-ux-testing.sh" --home-dir "$HOME"
Parse STATUS= and the ISSUES: block from the output. The KEY=VALUE lines
report PLAYWRIGHT_CONFIG, PLAYWRIGHT_DEP, AXE_CORE_DEP, E2E_DIR,
VISUAL_SNAPSHOTS, E2E_WORKFLOW, PLAYWRIGHT_MCP, and the rollup
PLAYWRIGHT_DETECTED / UX_SIGNALS_PRESENT.
Step 3: Generate compliance report
Print a formatted compliance report showing status for Playwright core, accessibility testing, visual regression, and MCP integration.
If --check-only is set, stop here.
For the compliance report format, see REFERENCE.md.
Step 4: Install dependencies (if --fix or user confirms)
# Core Playwright
bun add --dev @playwright/test
# Accessibility testing
bun add --dev @axe-core/playwright
# Install browsers
bunx playwright install
Step 5: Create Playwright configuration
Create playwright.config.ts with:
- Desktop browser projects (Chromium, Firefox, WebKit)
- Mobile viewport projects (Pixel 5, iPhone 13)
- Dedicated a11y test project (Chromium only)
- WebServer auto-start for local dev
- Trace/screenshot/video on failure settings
- JSON and JUnit reporters for CI
For the complete playwright.config.ts template, see REFERENCE.md.
Step 6: Create accessibility test helper
Create tests/e2e/helpers/a11y.ts with:
expectNoA11yViolations(page, options)- Assert no WCAG violationsgetA11yReport(page, options)- Generate detailed a11y report- Configurable WCAG level (wcag2a, wcag2aa, wcag21aa, wcag22aa)
- Rule include/exclude support
- Formatted violation output
For the complete a11y helper code, see REFERENCE.md.
Step 7: Create example test files
Create example tests:
tests/e2e/homepage.a11y.spec.ts- H
Установить configure-ux-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
GlobGrepReadWriteEditBash(bash ${CLAUDE_SKILL_DIR}/scripts/configure-ux-testing.sh *)Bash(find *)Bash(bun add *)Bash(bunx playwright install *)Bash(bunx playwright test *)AskUserQuestionTodoWriteWebSearchWebFetchВложенные файлы
FAQ
Что делает скилл configure-ux-testing?
UX testing: Playwright E2E, axe-core a11y, visual regression. Use when setting up E2E testing, screenshot assertions, browser automation, or a11y CI workflows.
Как установить скилл configure-ux-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл configure-ux-testing запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic