/ux:ux-nextfrom ux
Reads .ux/ reports, scores each by severity, recency, and blocking signals, then recommends the highest-leverage next command to run.
Ships in ux. Installing the plugin adds it to Claude Code.
You are running the /ux-next command from the ux plugin. The job is to read the project's accumulated UX state and tell the user the highest-leverage next move. You are a conductor, not a builder. Read-only.
Triggers: "what should I do next", "what's the next move", "decide for me", "where do we go from here", "/ux-next", or any moment the user is between commands and asks for direction.
Optional — if the user names a specific report ("look at the a11y report"), focus there. Default: scan every .ux/last-*.json and decide.
List .ux/last-*.json in the project root. If the directory does not exist, output the empty-state response (see Failure modes) and stop.
For each report, read it. Keep in memory:
ship_readiness or go_no_go signalnext_recommended fieldScore each report on three axes:
(Critical * 4) + (High * 2) + (Medium * 1) for unfixed findingsPick the report with the highest leverage score. The next command is the one that directly addresses that report's blockers.
| Source report | Highest-leverage next command |
|---|---|
last-a11y.json with Critical findings | /ux-a11y --fix |
last-polish.json with open items | /ux-polish --apply |
last-motion.json flagging jank | /ux-motion --fix |
last-design.json with no follow-up | /ux-polish then /ux-a11y |
last-research.json with results pending | /ux-research --synthesize |
last-workshop.json with a Game Plan | /ux-design (first MVP) or /ux-discover --frame |
last-component.json standalone | /ux-design --component (next one) or /ux-design (assemble) |
last-dashboard.json with Critical | /ux-polish or /ux-a11y |
last-system.json newly built | /ux-design --component (build against it) |
last-case-study.json complete | /ux-expert (share) or done |
| Nothing actionable, all green | /ux-next done (call it shipped) |
Use this exact template:
─── ux state ───
Reports found: <N>
Latest: <command> <timestamp>
Highest leverage: <report name> (score: <n>)
─── evidence ───
<3-5 bullet lines citing specific findings/signals from the report that drove the recommendation>
─── recommendation ───
Next: <command>
Why: <one sentence — what this resolves>
─── alternatives ───
Option B: <command> — <one-line rationale>
Option C: <command> — <one-line rationale>
Escape: nothing — call it done. <one-line rationale if applicable>
─── decide ───
Pick one. I'll run it.
This command is read-only. Do not write to .ux/. The user re-runs /ux-next after any state change to get a fresh recommendation.
.ux/ files..ux/ directory: output No prior UX state. Start with /ux-discover --frame (lock the brief) or /ux-design (jump in). Stop./ux-discover --frame to re-baseline..ux/ reports and the actual codebase. If the user has made changes since the last report, recommend re-running the relevant audit before acting.| Error condition | Recovery |
|---|---|
No prior reports in .ux/ | Output the empty-state response and suggest /ux-discover --frame or /ux-design as entry points |
| All reports older than 30 days | Warn that state is stale; recommend /ux-discover --frame to re-baseline |
| Conflicting signals (polish says ship, a11y says no-go) | Surface the conflict explicitly; recommend resolving a11y first — accessibility is a blocker |
.ux/last-*.json files are malformed or unreadable | Skip the unreadable file, surface the parse error in evidence, continue with the rest |
| User asks for a specific report and it doesn't exist | List the reports that do exist and let the user pick |
For path issues: see references/process/discovery-protocol.md for state file location (.ux/ in project root). Report bugs at https://github.com/Laith0003/ux-skill/issues.
This command's next prompt is itself. After any state-changing action, /ux-next is the way back to the conductor.
/ux-next reads the chain of state files in .ux/ and suggests the next deterministic step based on what's been done.
python3 -c "
import json, os
def has(p): return os.path.exists(p)
state = {
'discovery': has('.ux/last-discovery.json'),
'recommendation': has('.ux/last-recommendation.json'),
'generated': has('.ux/generated/manifest.json'),
'lint_report': has('/tmp/ux-lint-report.json'),
}
print('STATE:', state)
suggestion = None
if not state['discovery']:
suggestion = '/ux-discover: start with the 10-field intake'
elif not state['recommendation']:
suggestion = '/ux-discover --recommend: get the merged design system'
elif not state['generated']:
suggestion = '/ux-design [brief] -- generate frontend code using the recommendation'
elif not state['lint_report']:
suggestion = '/ux-lint . -- run the anti-slop linter on the generated code'
else:
suggestion = '/ux-fix . -- apply linter findings if any, or /ux-polish for taste-level upgrades'
print()
print('NEXT:', suggestion)
"
The suggestion logic above maps state -> next command deterministically. The LLM can layer judgment on top (e.g., 'you also might want /ux-case-study to write this up') but the base suggestion comes from Python.
If state files are missing entirely, the answer is always /ux-discover first.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
25 commands in this plugin
/ux-a11y/ux-a11yWCAG 2.1 AA accessibility audit plus common-courtesy checks beyond the spec. Produces findings grouped by WCAG criterion with severity, evidence, and fix. Triggers on "accessibility check", "WCAG audit", "is this accessible", or "a11y review". Use when WCAG 2.1 AA audit, checking accessibility on a page or component, verifying contrast / keyboard / screen reader / focus / ARIA / motion preferences / form-error patterns, pre-ship accessibility gate. Skip when the surface is not user-facing, backend or infrastructure work, work-in-progress sketches that aren't ready for an a11y audit (use ux-critique for an early taste call)./ux-audit/ux-auditFull 6-lens UX review of a surface. Outputs a structured Polaris-style report with findings, severity, evidence, and fixes. Triggers on "audit", "review the ux", "is this any good", or "what's broken". Use when auditing UX on a page or surface, running a structured UX review, the user asks "is this any good", checking against Norman / Krug / Laws of UX, producing a Polaris-style severity-tagged report. Skip when the surface doesn't exist yet (use ux-design for new builds), the user wants only one lens (use the targeted command — ux-a11y / ux-copy / ux-motion / ux-polish), backend-only work, infrastructure.npx claudepluginhub laith0003/ux-skill --plugin uxOther plugins' commands for the same job