Skills for Claude Code CLI such as full stack dev Cloudflare, React, Tailwind v4, and AI integrations.
Python aianthropicautomationclaude-codeclaude-skillscloudflaredevtoolsproductivityreactskillstailwindvite
feat: add ux-audit skill — UX walkthroughs and QA sweeps via browser automation
Jez721ace616c9e
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex d2350836..376f51ac 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -6,13 +6,13 @@},"metadata": {"description": "Workflow skills for Claude Code - each produces tangible output",- "version": "9.0.0",+ "version": "10.0.0","updated": "2026-02-18"},"plugins": [{"name": "all",- "description": "All 23 workflow skills: Cloudflare, Hono APIs, D1/Drizzle, web design, SEO, Google integrations, Tailwind, shadcn/ui, favicons, icons, colour palettes, ElevenLabs, MCP, memory management, dev sessions, GitHub releases, Gemini peer review, capabilities reference, writing style.",+ "description": "All 24 workflow skills: Cloudflare, Hono APIs, D1/Drizzle, web design, SEO, Google integrations, Tailwind, shadcn/ui, favicons, icons, colour palettes, ElevenLabs, MCP, memory management, dev sessions, UX audits, GitHub releases, Gemini peer review, capabilities reference, writing style.","source": "./","skills": ["./skills/skill-creator",@@ -37,7 +37,8 @@"./skills/shadcn-ui","./skills/github-release","./skills/gemini-peer-review",- "./skills/dev-session"+ "./skills/dev-session",+ "./skills/ux-audit"]},{@@ -127,6 +128,14 @@"skills": ["./skills/aussie-business-english"]+ },+ {+ "name": "testing",+ "description": "UX walkthroughs and QA sweeps using browser automation (Chrome MCP, Playwright).",+ "source": "./",+ "skills": [+ "./skills/ux-audit"+ ]}]}diff --git a/CLAUDE.md b/CLAUDE.mdindex fde50336..fcf148a0 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -15,7 +15,7 @@ Production workflow skills for Claude Code CLI. Each skill guides Claude through```claude-skills/-├── skills/ # All skills (23)+├── skills/ # All skills (24)│ ├── skill-creator/ # Foundation: create new skills (Anthropic official)│ ├── cloudflare-worker-builder/ # Scaffold Cloudflare Worker projects│ ├── vite-flare-starter/ # Full-stack Cloudflare app from starter template@@ -35,6 +35,7 @@ claude-skills/│ ├── mcp-builder/ # Build MCP servers with FastMCP│ ├── memory-manager/ # Audit and restructure CLAUDE.md hierarchy│ ├── dev-session/ # Multi-session progress tracking and handoff+│ ├── ux-audit/ # UX walkthroughs and QA sweeps via browser automation│ ├── github-release/ # Sanitize and publish GitHub releases│ ├── gemini-peer-review/ # Second opinion from Gemini on code/architecture│ ├── claude-capabilities/ # Current Claude AI & Code capabilities reference@@ -77,7 +78,7 @@ Key principle: **every skill must produce something.** If it's just reference ma# Install all skills/plugin install all@jezweb-skills-# Or by category: design, cloudflare, frontend, web, integrations, ai, mcp, development, writing+# Or by category: design, cloudflare, frontend, web, integrations, ai, mcp, development, testing, writing/plugin install design@jezweb-skills# Local dev (loads without install)diff --git a/README.md b/README.mdindex f03e8ba1..a203a23b 100644--- a/README.md+++ b/README.md@@ -31,6 +31,7 @@ Workflow skills for [Claude Code](https://claude.com/claude-code) that produce t| **[github-release](skills/github-release)** | Sanitized, tagged GitHub releases with safety checks || **[gemini-peer-review](skills/gemini-peer-review)** | Second opinion from Gemini on code, architecture, security || **[dev-session](skills/dev-session)** | SESSION.md progress tracking, checkpoints, multi-session handoff |+| **[ux-audit](skills/ux-audit)** | UX walkthroughs and QA sweeps on live apps via browser automation |## Install@@ -50,6 +51,7 @@ Workflow skills for [Claude Code](https://claude.com/claude-code) that produce t/plugin install ai@jezweb-skills # ElevenLabs agents/plugin install mcp@jezweb-skills # MCP servers/plugin install writing@jezweb-skills # Australian business English+/plugin install testing@jezweb-skills # UX walkthroughs, QA sweeps/plugin install development@jezweb-skills # skill-creator, memory-manager, sessions, releases, Gemini review```@@ -71,7 +73,7 @@ See [CLAUDE.md](CLAUDE.md) for development details.This repo started as a collection of 105 skills — many were informational reference guides (CSS patterns, API docs, framework cheatsheets). With Claude Opus 4.6's expanded training data and built-in capabilities, those reference skills became redundant. Claude already knows the material.-**v2** keeps only skills that produce tangible output: files, projects, configurations, deployments. The count dropped from 105 to 23, but each one earns its place.+**v2** keeps only skills that produce tangible output: files, projects, configurations, deployments. The count dropped from 105 to 24, but each one earns its place.The full v1 collection is preserved and usable:diff --git a/skills/ux-audit/SKILL.md b/skills/ux-audit/SKILL.mdnew file mode 100644index 00000000..ce66b9b6--- /dev/null+++ b/skills/ux-audit/SKILL.md@@ -0,0 +1,123 @@+---+name: ux-audit+description: "Run UX walkthroughs and QA sweeps on live web apps using browser automation. Walks through apps as a real user, flags friction points and usability issues, tests CRUD operations, and produces ranked audit reports. Trigger with 'ux audit', 'ux walkthrough', 'qa test', 'test the app', or 'check all pages'."+compatibility: claude-code-only+---++# UX Audit++Walk through live web apps as a real user to find usability issues and verify functionality. Uses Chrome MCP (for authenticated apps with your session) or Playwright for browser automation. Produces structured audit reports with findings ranked by impact.++## Browser Tool Detection++Before starting any mode, detect available browser tools:++1. **Chrome MCP** (`mcp__claude-in-chrome__*`) — preferred for authenticated apps. Uses the user's logged-in Chrome session, so OAuth/cookies just work.+2. **Playwright MCP** (`mcp__plugin_playwright_playwright__*`) — for public apps or parallel sessions.+3. **playwright-cli** — for scripted flows and sub-agent browser tasks.++If none are available, inform the user and suggest installing Chrome MCP or Playwright.++See [references/browser-tools.md](references/browser-tools.md) for tool-specific commands.++## Operating Modes++### Mode 1: UX Walkthrough++**When**: "ux walkthrough", "walk through the app", "is the app intuitive?", "ux audit"++This is the highest-value mode. Instead of mechanically clicking buttons, walk through the app as a first-time user performing a realistic task.++1. Ask the user for a **task scenario** (e.g., "I need to create a new patient and book them for surgery")+2. Navigate to the app's entry point+3. Attempt the task as a first-time user would — no prior knowledge of the UI+4. At each screen, evaluate against the walkthrough checklist (see [references/walkthrough-checklist.md](references/walkthrough-checklist.md)):+ - Is the next step obvious without thinking?+ - Do labels and icons make sense?+ - Is navigation discoverable?+ - Are dangerous actions (delete, override) guarded?+ - Is the most important information prominent?+ - Does the result match my expectation?+5. Take screenshots at friction points+6. After completing (or failing) the task, compile findings into a UX audit report+7. Write report to `docs/ux-audit-YYYY-MM-DD.md` using the template from [references/report-template.md](references/report-template.md)++**Severity levels**:+- **Critical** — blocks the user from completing their task+- **High** — causes confusion or significant friction+- **Medium** — suboptimal but the user can work around it+- **Low** — polish and minor improvements++### Mode 2: QA Sweep++**When**: "qa test", "test all pages", "check everything works", "qa sweep"++Systematic mechanical testing of all pages and features.++1. **Discover pages**: Read the app's router config, sitemap, or manually navigate the sidebar/menu to find all routes+2. **Create a task list** of areas to test (group by feature area)+3. **For each page/feature**:+ - Page renders without errors+ - Data displays correctly (tables, lists, details)+ - Forms submit successfully (create)+ - Records can be edited (update)+ - Delete operations work with confirmation+ - Validation fires on bad input+ - Empty states display correctly+ - Error states are handled+4. **Cross-cutting concerns**:+ - Dark mode: all elements visible, no contrast issues+ - Mobile viewport (375px): layout doesn't break, touch targets adequate+ - Search and filters: return correct results+ - Notifications: display and can be dismissed+5. Produce a **QA sweep summary table**:++ | Page | Status | Issues |+ |------|--------|--------|+ | /patients | Pass | — |+ | /patients/new | Fail | Form validation missing on email |++6. Write report to `docs/qa-sweep-YYYY-MM-DD.md`++### Mode 3: Targeted Check++**When**: "check [feature]", "test [page]", "verify [component] works"++Focused testing of a specific area.++1. Navigate to the specific page or feature+2. Test thoroughly — all states, edge cases, error paths+3. Report findings inline (no separate file unless user requests)++## When to Use++| Scenario | Mode |+|----------|------|+| After building a feature, before showing users | UX Walkthrough |+| Before a release, verify nothing is broken | QA Sweep |+| Quick check on a specific page after changes | Targeted Check |+| Periodic UX health check | UX Walkthrough |+| Client demo prep | QA Sweep + UX Walkthrough |++**Skip this skill for**: API-only services, CLI tools, unit/integration tests (use test frameworks), performance testing.++## Autonomy Rules++- **Just do it**: Navigate pages, take screenshots, read page content, evaluate usability+- **Brief confirmation**: Before starting a full QA sweep (can be lengthy), before writing report files+- **Ask first**: Before submitting forms with real data, before clicking delete/destructive actions++## Tips++- Chrome MCP is ideal for authenticated apps — it uses your real session+- For long QA sweeps, use the task list to track progress across pages+- Take screenshots at key friction points — they make the report actionable+- Run UX walkthrough before QA sweep — finding "buttons work but users are confused" is more valuable than "all buttons work"++## Reference Files++| When | Read |+|------|------|+| Evaluating each screen during walkthrough | [references/walkthrough-checklist.md](references/walkthrough-checklist.md) |+| Writing the audit report | [references/report-template.md](references/report-template.md) |+| Browser tool commands and selection | [references/browser-tools.md](references/browser-tools.md) |diff --git a/skills/ux-audit/references/browser-tools.md b/skills/ux-audit/references/browser-tools.mdnew file mode 100644index 00000000..977256cf--- /dev/null+++ b/skills/ux-audit/references/browser-tools.md@@ -0,0 +1,66 @@+# Browser Tool Reference++## Tool Selection++| Tool | Best For | Auth Support | Setup |+|------|----------|-------------|-------|+| **Chrome MCP** | Authenticated apps | Full — uses your logged-in Chrome session | Claude Code extension in Chrome |+| **Playwright MCP** | Public apps, parallel sessions | Manual login required | MCP plugin |+| **playwright-cli** | Scripted flows, sub-agent tasks | Persistent session state | npm package |++**Default**: Use Chrome MCP when available. It uses your real browser session — OAuth, cookies, and all auth state just work. For unauthenticated or public apps, Playwright is fine.++## Chrome MCP Commands++| Action | Tool |+|--------|------|+| See current tabs | `mcp__claude-in-chrome__tabs_context_mcp` |+| Open new tab | `mcp__claude-in-chrome__tabs_create_mcp` with URL |+| Read page content | `mcp__claude-in-chrome__read_page` |+| Get page text | `mcp__claude-in-chrome__get_page_text` |+| Click element | `mcp__claude-in-chrome__computer` with click action |+| Fill form field | `mcp__claude-in-chrome__form_input` |+| Navigate | `mcp__claude-in-chrome__navigate` |+| Take screenshot | `mcp__claude-in-chrome__computer` with screenshot action |+| Run JavaScript | `mcp__claude-in-chrome__javascript_tool` |+| Resize window | `mcp__claude-in-chrome__resize_window` |+| Record GIF | `mcp__claude-in-chrome__gif_creator` |++**Important**: Call `tabs_context_mcp` first to see what tabs exist. Avoid triggering JS alerts/confirms — they block the extension.++## Playwright MCP Commands++| Action | Tool |+|--------|------|+| Navigate | `mcp__plugin_playwright_playwright__browser_navigate` |+| Take screenshot | `mcp__plugin_playwright_playwright__browser_take_screenshot` |+| Click | `mcp__plugin_playwright_playwright__browser_click` |+| Fill form | `mcp__plugin_playwright_playwright__browser_fill_form` |+| Get page snapshot | `mcp__plugin_playwright_playwright__browser_snapshot` |+| Resize | `mcp__plugin_playwright_playwright__browser_resize` |+| Run code | `mcp__plugin_playwright_playwright__browser_run_code` |++## playwright-cli Commands++```bash+playwright-cli -s=audit open https://app.example.com+playwright-cli -s=audit snapshot # Get element refs+playwright-cli -s=audit click e5 # Click by ref+playwright-cli -s=audit screenshot --filename=issue-1.png+playwright-cli -s=audit close+```++Use `-s=NAME` for named sessions. Use `--persistent` to keep login state.++## Mobile Viewport Testing++```+# Chrome MCP+mcp__claude-in-chrome__resize_window — width: 375, height: 812++# Playwright MCP+mcp__plugin_playwright_playwright__browser_resize — width: 375, height: 812++# playwright-cli+playwright-cli -s=audit resize 375 812+```diff --git a/skills/ux-audit/references/report-template.md b/skills/ux-audit/references/report-template.mdnew file mode 100644index 00000000..373608c4--- /dev/null+++ b/skills/ux-audit/references/report-template.md@@ -0,0 +1,99 @@+# UX Audit Report Template++Use this template when writing audit reports to `docs/`.++## UX Walkthrough Report++```markdown+# UX Audit: [App Name]++**Date**: YYYY-MM-DD+**Scenario**: "[realistic task the user walked through]"+**Browser**: Chrome MCP / Playwright+**Viewport**: Desktop (1280px) + Mobile (375px)++## Summary++[2-3 sentences: overall impression, biggest concerns, what works well]++## Findings++### Critical (blocks user task)++- **[Short title]**: [What happened, what was expected]+ - *Where*: [page/component]+ - *Screenshot*: [filename if captured]+ - *Fix*: [concrete recommendation]++### High (causes confusion or friction)++- **[Short title]**: [description]+ - *Where*: [page/component]+ - *Fix*: [recommendation]++### Medium (suboptimal but workable)++- **[Short title]**: [description]+ - *Fix*: [recommendation]++### Low (polish)++- **[Short title]**: [description]++## What Works Well++- [Positive findings — patterns to preserve and replicate]++## Recommendations (priority order)++1. [Highest impact fix — addresses critical/high findings]+2. [Second priority]+3. [Third priority]+```++## QA Sweep Report++```markdown+# QA Sweep: [App Name]++**Date**: YYYY-MM-DD+**Browser**: Chrome MCP / Playwright+**Areas Tested**: [count]++## Summary++[passed] / [total] areas passed. [brief overview of failures]++## Results++| Area | Status | Issues |+|------|--------|--------|+| [Page/Feature] | Pass / Fail | [brief note or "—"] |++## Failed Areas — Detail++### [Area Name]++- **Issue**: [what failed]+- **Steps**: [how to reproduce]+- **Expected**: [what should happen]+- **Actual**: [what happened]++## Cross-Cutting++| Check | Status | Notes |+|-------|--------|-------|+| Dark mode | Pass/Fail | |+| Mobile (375px) | Pass/Fail | |+| Search & filters | Pass/Fail | |+| Notifications | Pass/Fail | |+| Empty states | Pass/Fail | |+```++## Guidelines++- Keep findings concrete — "Submit button doesn't respond" not "form is broken"+- Include page/route for every finding so developers can locate it+- Screenshots are optional but make critical/high findings much more actionable+- "What Works Well" section prevents the report from being only negative+- Priority recommendations should be actionable in one sprintdiff --git a/skills/ux-audit/references/walkthrough-checklist.md b/skills/ux-audit/references/walkthrough-checklist.mdnew file mode 100644index 00000000..3ee2624d--- /dev/null+++ b/skills/ux-audit/references/walkthrough-checklist.md@@ -0,0 +1,49 @@+# UX Walkthrough Checklist++Evaluate each screen against these categories during a walkthrough. Based on Nielsen's usability heuristics, adapted for web apps.++## Per-Screen Evaluation++| Category | What to Check |+|----------|---------------|+| **First Impression** | Does the page orient me? Do I know what I can do here? |+| **Navigation** | Can I find what I need in 3 clicks or fewer? Is the current location clear? |+| **Labels & Icons** | Do they describe what they do? Would a first-time user understand them? |+| **Visual Hierarchy** | Is the most important information prominent? Is secondary info de-emphasised? |+| **Call to Action** | Is the primary action obvious? Are secondary actions visually distinct? |+| **Forms** | Are required fields marked? Is validation immediate and clear? Are error messages helpful? |+| **Feedback** | Does the app confirm my actions? Are there loading states? Success/error toasts? |+| **Error Recovery** | Can I undo mistakes? Is there a back button? Are destructive actions guarded? |+| **Consistency** | Same patterns used for similar features? Same terminology throughout? |+| **Data Display** | Tables sorted sensibly? Pagination? Empty states helpful? Long text truncated? |++## Cross-Cutting Checks++| Category | What to Check |+|----------|---------------|+| **Mobile (375px)** | Touch targets at least 44px. No horizontal scroll. Text readable. Forms usable. |+| **Dark Mode** | All text readable. No invisible elements. Borders/separators visible. Images appropriate. |+| **Keyboard** | Tab order logical. Focus indicators visible. Modals trap focus. Escape closes dialogs. |+| **Loading States** | Skeleton screens or spinners. No layout shift when data loads. Buttons disabled during submit. |+| **Empty States** | Helpful message when no data. Clear call to action to add first item. |++## Friction Scoring++When you find an issue, classify it:++| Severity | Definition | Example |+|----------|-----------|---------|+| **Critical** | User cannot complete their task | Submit button does nothing, form data lost |+| **High** | User is confused or takes wrong path | Unclear labels cause wrong selection, no undo on delete |+| **Medium** | User succeeds but with unnecessary effort | Required field not marked, have to scroll to find action |+| **Low** | Minor polish issue | Inconsistent capitalisation, alignment off by a few pixels |++## Walkthrough Questions++Ask these while walking through as a first-time user:++1. If I landed here with no training, would I know what to do first?+2. Can I complete the task without reading documentation?+3. When I click something, does the result match what I expected?+4. If I make a mistake, can I recover without losing work?+5. Would I feel confident using this in front of a colleague?