一键导入
configure-ux-testing
Check and configure UX testing infrastructure (Playwright, accessibility, visual regression)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check and configure UX testing infrastructure (Playwright, accessibility, visual regression)
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
LLM Agent Skill for AnySystem Design React component library
Check and configure feature flag infrastructure (OpenFeature + providers)
Generate comprehensive technical stack documentation from codebase analysis
Systematic debugging workflow with parallel agent exploration, root cause analysis, and fix verification. Adapted from feature-dev methodology for bug investigation.
Command: docs-plugin
Imported skill evaluation from anthropic
| model | haiku |
| created | "2025-12-16T00:00:00.000Z" |
| modified | "2026-02-11T00:00:00.000Z" |
| reviewed | "2025-12-16T00:00:00.000Z" |
| description | Check and configure UX testing infrastructure (Playwright, accessibility, visual regression) |
| allowed-tools | Glob, Grep, Read, Write, Edit, Bash, AskUserQuestion, TodoWrite, WebSearch, WebFetch |
| args | [--check-only] [--fix] [--a11y] [--visual] |
| argument-hint | [--check-only] [--fix] [--a11y] [--visual] |
| name | configure-ux-testing |
Check and configure UX testing infrastructure with Playwright as the primary tool for E2E, accessibility, and visual regression testing.
| 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 MCP server 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) |
find . -maxdepth 1 \( -name 'package.json' -o -name 'bun.lockb' \)find . -maxdepth 1 -name 'playwright.config.*'grep -l '@playwright/test' package.jsongrep -l '@axe-core/playwright' package.jsonfind . -maxdepth 2 -type d \( -name 'e2e' -o -name 'tests' \)find . -maxdepth 4 -type d -name '__snapshots__'find . -maxdepth 1 -name '.mcp.json'find .github/workflows -maxdepth 1 -name 'e2e*'UX Testing Stack:
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 configurationExecute this UX testing configuration check:
Verify latest versions before configuring:
Use WebSearch or WebFetch to verify current versions.
Check for each component:
| Indicator | Component | Status |
|---|---|---|
playwright.config.* | Playwright | Installed |
@axe-core/playwright in package.json | Accessibility testing | Configured |
@playwright/test in package.json | Playwright Test | Installed |
tests/e2e/ or e2e/ directory | E2E tests | Present |
*.spec.ts files with toHaveScreenshot | Visual regression | Configured |
.mcp.json with playwright server | Playwright MCP | Configured |
Check for complete UX testing setup across four areas:
Playwright Core:
@playwright/test installedplaywright.config.ts existsAccessibility Testing:
@axe-core/playwright installedVisual Regression:
MCP Integration:
.mcp.jsonPrint 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.
# Core Playwright
bun add --dev @playwright/test
# Accessibility testing
bun add --dev @axe-core/playwright
# Install browsers
bunx playwright install
Create playwright.config.ts with:
For the complete playwright.config.ts template, see REFERENCE.md.
Create tests/e2e/helpers/a11y.ts with:
expectNoA11yViolations(page, options) - Assert no WCAG violationsgetA11yReport(page, options) - Generate detailed a11y reportFor the complete a11y helper code, see REFERENCE.md.
Create example tests:
tests/e2e/homepage.a11y.spec.ts - Homepage accessibility tests (WCAG 2.1 AA violations, post-interaction checks, full report)tests/e2e/visual.spec.ts - Visual regression tests (full page screenshots, component screenshots, responsive layouts, dark mode)For complete example test files, see REFERENCE.md.
Update package.json with test scripts:
{
"scripts": {
"test:e2e": "playwright test",
"test:e2e:headed": "playwright test --headed",
"test:e2e:debug": "playwright test --debug",
"test:e2e:ui": "playwright test --ui",
"test:a11y": "playwright test --project=a11y",
"test:visual": "playwright test visual.spec.ts",
"test:visual:update": "playwright test visual.spec.ts --update-snapshots",
"playwright:codegen": "playwright codegen http://localhost:3000",
"playwright:report": "playwright show-report"
}
}
Add to .mcp.json:
{
"mcpServers": {
"playwright": {
"command": "bunx",
"args": ["-y", "@playwright/mcp@latest"]
}
}
}
This enables Claude to navigate web pages, take screenshots, fill forms, click elements, and capture accessibility snapshots.
Create .github/workflows/e2e.yml with parallel jobs for:
For the complete CI workflow template, see REFERENCE.md.
Update .project-standards.yaml:
components:
ux_testing: "2025.1"
ux_testing_framework: "playwright"
ux_testing_a11y: true
ux_testing_a11y_level: "wcag21aa"
ux_testing_visual: true
ux_testing_mcp: true
Print a summary of configuration applied, scripts added, and CI/CD setup. Include next steps for starting the dev server, running tests, updating snapshots, and opening the interactive UI.
For the results report format, see REFERENCE.md.
| Context | Command |
|---|---|
| Quick compliance check | /configure:ux-testing --check-only |
| Auto-fix all issues | /configure:ux-testing --fix |
| Accessibility focus only | /configure:ux-testing --a11y |
| Visual regression focus only | /configure:ux-testing --visual |
| Run E2E tests compact | bunx playwright test --reporter=line |
| Run a11y tests only | bunx playwright test --project=a11y --reporter=dot |
| Flag | Description |
|---|---|
--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 |
bunx playwright install/configure:tests - Unit and integration testing configuration/configure:all - Run all compliance checksplaywright-testing, accessibility-implementationux-implementation for implementing UX designs