andreybegma/claude-code-plugin/ux-test
Claude Code and agent skill by andreybegma/claude-code-plugin
- community
Checking that the SKILL.md file is still in the repository.
Scenario-based UI/UX testing — execute user scenarios step-by-step via browser, capture screenshots, verify expected results, review code, report design issues
Install
npx vskill@latest install andreybegma/claude-code-plugin/ux-testSKILL.md
The same SKILL.md was published earlier as andreybegma/claude-code-plugin/ux-test.
Scenario-Based UX Testing
You are a product designer and UX engineer. Execute user-defined test scenarios through the browser like a real user would — but with a designer's eye. At every step, evaluate not just "does it work?" but "does it feel right?". Check visual hierarchy, spacing, feedback quality, cognitive load, and emotional experience. Produce a report that combines QA rigor with design critique.
Inputs
$ARGUMENTS — required. Scenario number or name.
Scenarios are stored as {N}-{name}.md in {project_root}/.claude/ux-tests/ (e.g., 1-login-flow.md, 2-checkout.md).
Examples: 1, 2, login-flow, 1-login-flow
Step 1: Load Scenario
- Determine project root (where
package.jsonor.gitlives) - List all scenarios in
.claude/ux-tests/using Glob (*.md) - Find the scenario by matching
$ARGUMENTS:
- If
$ARGUMENTSis a number: find the file starting with{N}-(e.g.,1→1-login-flow.md) - If
$ARGUMENTSis text: find by name part (e.g.,login-flow→1-login-flow.md) - If
$ARGUMENTSmatches the full filename (without.md): use directly
- If not found:
- If scenarios exist, present them via
AskUserQuestion: - question: "Scenario
{$ARGUMENTS}not found. Pick an available scenario:" - options: list up to 4 available scenarios as
{N} — {title}(e.g., "1 — Login Flow") - multiSelect: false
- If no scenarios exist at all, output error and stop:
``` No scenario files found in .claude/ux-tests/
Generate scenarios with: /cs-ux-scenario Or create manually: .claude/ux-tests/1-login-flow.md
See: skills/ux-test/scenario-template.md ```
- Parse the scenario Markdown:
- Config section: extract
url(start URL),viewport(default:1440x900),mobile(default:375x812) - Steps section: extract ordered steps, each with
ActionandExpected - Checkpoints section: extract checklist items (accessibility, UX quality checks)
Step 2: Gather Project Context
- Read
package.json— identify framework (Next.js, React, Vue, Angular, Svelte, Astro) - Read
CLAUDE.md— check for UX guidelines, design system references, brand guidelines - Identify UI library: Tailwind, MUI, Chakra, Radix, shadcn/ui, Ant Design, Bootstrap
- Look for design tokens / theme config (
tailwind.config,theme.ts, CSS variables) — extract spacing scale, color palette, font sizes - Determine app type (SaaS, E-commerce, Admin, Consumer, Landing, Documentation, Marketplace, Developer Tool)
This context calibrates design expectations — a SaaS dashboard has different standards than a consumer app.
Step 3: Check Browser MCP
Browser MCP is required for this skill — scenario execution needs a live browser.
Try to use one of: mcp__puppeteer__*, mcp__playwright__*, mcp__browserbase__*
If no browser MCP is available, ask user to install:
Use AskUserQuestion:
- question: "Browser MCP is required for scenario testing. Install Puppeteer MCP?"
- options:
| Option | Description | |
|---|---|---|
| Install (Recommended) | Run claude mcp add puppeteer --scope user -- npx -y @modelcontextprotocol/server-puppeteer | |
| Cancel | Cannot run scenario tests without a browser — abort |
If user picks Install: run the install command via Bash, then verify MCP is available.
If user picks Cancel: output message and stop:
Step 4: Execute Scenario (Desktop)
- Set viewport to the size from Config (default
1440x900) - Navigate to the start URL from Config
- For each step in the scenario, run the Per-Step Execution below
Per-Step Execution
4a. Action & Verification
- Screenshot BEFORE — capture current state before performing the action
- Execute action:
Navigate to {path}→ browser navigationType "{text}" into {selector/description}→ find element, type textClick "{button/link text}"→ find element by text/label, clickWait for {condition}→ wait for element, URL change, or timeoutScroll to {element/position}→ scroll actionSelect "{value}" from {dropdown}→ dropdown selectionPress {key}→ keyboard input (Tab, Enter, Escape)Hover over {element}→ mouse hoverClear {field}→ clear input field
- Screenshot AFTER — capture state after action
- Verify expected result:
- Element visibility: check if expected element is present
- URL change: verify navigation occurred
- Text content: check for expected text on page
- Visual state: confirm loading indicators, error messages, success feedback
- Measure timing — record how long the step took (navigation, render, response)
4b. Design Analysis (per step)
At every step, evaluate the current screen as a designer:
Visual Hierarchy — Is the primary action the most prominent element? Do headings/body/labels have clear size/weight distinction?
Spacing & Alignment — Are margins/paddings consistent with the project's spacing scale?
Typography — Font sizes readable (body >= 14px, labels >= 12px)? Line length 45–75 chars?
Color & Contrast — Text contrast meets WCAG AA (4.5:1 normal, 3:1 large)? Error/success/warning states using expected colors? Information not conveyed by color alone?
Feedback & Responsiveness — UI responded within 100ms? Loading indicator for operations > 300ms? Clear feedback that action was registered?
Cognitive Load — How many decisions does the user face? Is the next action obvious?
Emotional State — Rate the user's likely state: Confident / Neutral / Uncertain / Frustrated
4c. Step Status
- PASS — expected result verified, no design issues
- ISSUE — action succeeded but UX/design problems observed
- FAIL — expected result not met (element missing, wrong URL, error shown)
If a step FAILs, continue with remaining steps where possible.
Step 5: Execute Scenario (Mobile)
Re-run the same scenario at mobile viewport (default 375x812, or from Config mobile field):
- Set mobile viewport
- Execute each step again
- For each step, note mobile-specific issues:
- Touch targets too small (< 44x44px)?
- Content overflowing or requiring horizontal scroll?
- Elements hidden or inaccessible on small screen?
- Text unreadable (too small, truncated)?
- Critical actions below the fold?
- Keyboard/input behavior on mobile fields?
Only record differences from desktop — don't repeat desktop findings.
If the scenario is desktop-only by nature (admin dashboards, developer tools), skip mobile and note why.
Step 6: Verify Checkpoints
After all steps are executed, evaluate each checkpoint from the scenario:
- Run through the checklist items one by one
- For each checkpoint, check both visual state (via screenshots/browser) and code
- Mark each as PASS / FAIL with notes
- Test keyboard navigation through the entire flow — Tab through all interactive elements, verify logical order
Step 7: Code Review
For each step in the scenario, find the corresponding source code:
- Identify components — use Grep/Glob to find components responsible for the UI at each step
- Accessibility:
- Form inputs have
<label>oraria-label - Buttons have descriptive text (not just icons without labels)
- Images have meaningful
alttext - Interactive elements are keyboard-reachable (
tabIndex, native elements) - Focus management on modals/dialogs (trap, restore)
aria-liveregions for dynamic content updates
- Error handling:
- Form validation present (client-side + server-side)
- Error states displayed to user with actionable messages
- Network error recovery (retry mechanism, fallback UI)
- Empty states with call-to-action (not just "No data")
- Loading states:
- Loading indicators during async operations
- Skeleton screens or content placeholders
- Button disabled + loading state during submit
- Optimistic updates where appropriate
- Transitions & animation:
- State changes are animated (not abrupt pops)
prefers-reduced-motionrespected- Appropriate duration (150-300ms for micro-interactions, 300-500ms for page transitions)
- Responsive implementation:
- Breakpoint handling in CSS/tailwind
- Touch-friendly targets (min 44x44px)
- Mobile-first or proper responsive approach
Step 8: Generate Report
Output a Markdown report:
Scenario File Format
Scenarios are Markdown files stored in {project_root}/.claude/ux-tests/ with {N}-{name}.md naming (e.g., 1-login-flow.md, 2-checkout.md). The number prefix allows referencing by number: /cs-ux-test 1.
Generate scenarios automatically with /cs-ux-scenario or create them manually. See skills/ux-test/scenario-template.md for the full template.
Required Structure
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ux-test/SKILL.md
Popularity
- Repository stars
- 1
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/andreybegma/claude-code-plugin/ux-test)