/ux-agent-skills:usability-audit runs instead · from UX Agent Skills
Runs a heuristic usability evaluation of a web app using Nielsen's 10, Shneiderman's 8, AI Design Heuristics, and NPCIS frameworks. Outputs a priority-ranked report to .ux/audits. Supports static (source), live (browser), or hybrid evidence gathering.
This skill never runs in Claude Code
It ships in UX Agent Skills at skills/, but /ux-agent-skills:usability-audit (a command, or a skill Claude Code finds first) has the same name: typing it, or Claude choosing it, runs that one instead.
Drive the usability-auditor persona through a
complete heuristic evaluation and emit a report that conforms to the
shared report contract.
Frameworks (four): Nielsen's 10, Shneiderman's 8, AI Design Heuristics (AI features only), and NPCIS. Findings are grouped and de-duplicated by framework — one issue, one finding, attributed to its primary framework (see step 4).
Evaluation modes: static (read source), live (drive the running app in a
browser), and hybrid (both). The modes differ only in how evidence is gathered — the
frameworks, rating rubrics, and report format are identical. Mode is auto-selected by
default (see step 1); --mode forces one.
target — a URL (live mode) or a repo path/glob (static mode). If omitted, infer from
the running dev server or the repo's UI source.--scope — narrow the audit to a flow/area (e.g. "checkout"). Optional.--mode static | live | hybrid — force an evidence-gathering mode. Optional; default is
auto (see step 1).Scope the audit and select the mode. Resolve target and --scope, and identify
the host repo root (where .ux/ will live). Then choose the mode:
--mode is given, use it.file:line a fix
belongs to.live that fell back because no server
was reachable is reported as static, with the reason.
List what you intend to cover.Read the frameworks. Load all four lenses — Nielsen's 10, Shneiderman's 8, AI Design Heuristics, and NPCIS — plus the report contract. Cite the exact rule from the reference; don't recite from memory. If the surface has no AI features, mark the AI lens not-applicable rather than inventing findings.
Gather evidence using the selected mode:
Read the in-scope components, markup, routes, and copy. Sweep each framework's rules
for violations — Nielsen (feedback, real-world language, undo/exit, consistency, error
prevention, recognition, accelerators, minimalism, error text, help); Shneiderman
(closure, locus of control, reversal); NPCIS (navigation flow, presentation hierarchy,
content clarity, and the Strategy/goal-alignment lens); and, if the surface has AI
features, the AI heuristics (expectation-setting, explainability, correction paths).
Capture file:line for each.
Inspect the running app through a browser (browser MCP). Ask the user first before starting or restarting a dev server and before navigating the browser to any URL — do not launch a server or navigate unprompted.
.ux/audits/assets/ with the stable name
usability-<scope-slug>-<state>.png (per the report contract's asset-naming rule, so a
re-run overwrites rather than accumulates). Embed them inline () —
in findings for evidence, and assembled into the ## Walkthrough section (step 6).auth-handoff.md — as a pre-flight, before walking
the flow: observe the wall and record it verbatim, ask once (naming the wall, the
scope it unblocks, and the throwaway-account ask), let the user sign in, then
re-observe to confirm the session holds and continue. Record the outcome as the
report's Access: line.
De-duplicate, attribute, and grade. The four frameworks overlap, so the same issue
often surfaces under several (e.g. missing feedback = Nielsen #1 = Shneiderman #3 =
NPCIS Interaction). Merge those into one finding, attributed to the primary
framework, noting the corroborating ones in the Framework Violation field — never file
a defect four times. Then apply the contract's rubrics — the P0–P3 ladder for
priority, the three factors for severity, and omit a severity-0 non-problem entirely
— and capture the six fields per finding: Issue Description, Framework Violation
(primary + corroborating), Priority, Severity, Evidence, Recommended Fix. Group findings
by framework in the report body if it aids readability; the P0 → P3 ordering in the
prioritized-fix list still governs.
Apply the render-vs-source honesty rule. A claim about what a user perceives at runtime — system-status feedback, error recovery, interaction latency, transitions — is only as strong as the evidence behind it:
potential — unverified in the Evidence
field, stating that no running app was observed. Never assert an unobserved runtime
behavior as fact. If something couldn't be checked, record it as skipped with the
reason — a false pass is worse than an honest gap.Write the report. Create .ux/, .ux/audits/, and .ux/audits/assets/ in the
host repo if absent. Write .ux/audits/usability-<YYYYMMDD>-<HHMMSS>.md (UTC clock)
with the frontmatter schema, executive summary, prioritized fixes, findings, and an
appendix. The appendix records the mode used, the frameworks applied, and — honestly
— everything in scope you did not inspect. In live/hybrid mode, add a
## Walkthrough section (report contract §5) after ## Findings and before
## Appendix: one ### <state> per captured key state, each embedding its screenshot
inline. Omit the section in static mode (nothing was captured).
Append to the index. Add one row for this run to .ux/audits/index.md — create the
file with the contract's header if it doesn't exist. The index is append-only: add
your row, never rewrite or reorder prior rows (they may belong to earlier runs or other
auditors). The row records date, auditor, scope, and the four priority counts, linking
to the report file.
Self-check before finishing. Ensure summary counts reconcile with the findings in
the body and no severity-0 non-problem was filed. Validate the report and index with
scripts/validate_report.py — validate_report.py <report> and validate_report.py --index .ux/audits/index.md. Then confirm the safety
invariant with scripts/audit_safety.py
<host-repo>. It checks both halves of the invariant (SPEC §5.2) and exits 0 only if both
hold: nothing changed outside .ux/audits/, and the writes you just made inside it
were observed — it prints them. Exit 1 with "no writes were observed" means the run
produced nothing; that is a real failure for an auditor, not a formality, and it is the
only signal you get once .ux/audits/ is gitignored and git status has gone quiet.
Render the HTML companion. After the report validates, generate its self-contained HTML view (findings as cards, the live screenshots as a walk-through gallery) beside the Markdown:
python3 scripts/render_report_html.py .ux/audits/usability-<timestamp>.md
python3 scripts/render_report_html.py --index .ux/audits/index.md
The .html is a derived view — the Markdown stays the source of truth. Both files are
written under .ux/audits/, so the safety invariant is unaffected. (The same view is
available on demand via /ux-review.)
.ux/audits/ in the host repo. That is the auditor's safety
invariant; any other created/modified file is a failure.auth-handoff.md).localStorage,
tokens), never read back a filled credential field, never leave the audited scope, never
record the account identity, and never log the user out. An authenticated run is a
capture risk before it is an access problem: recommend ignoring .ux/audits/
wholesale, and describe user data structurally rather than quoting it.npm install), which can
modify host files like a lockfile. That is separate from the auditor's own output — the
safety invariant governs what the auditor writes (.ux/audits/ only). When running the
safety check, take the baseline after any authorized setup (or revert setup changes
first) so it measures the audit's footprint, and note any setup side-effect in the report
appendix rather than letting it read as an audit write..ux/audits/ and validates against the contract..ux/audits/index.md (created if absent), with no prior rows
rewritten.P0–P3 priority, an S1–S4 severity naming the three factors, evidence, and a fix,
with no issue filed under more than one finding.verified (live) or potential — unverified (static),
matching the mode actually used..ux/audits/assets/ with their stable names,
embedded inline in findings, and assembled into a ## Walkthrough section (omitted in
static mode).audit_safety.py exits 0 on both halves: nothing changed outside .ux/audits/,
and the writes this run made inside it were observed and listed. (git status alone is
not the check — once .ux/audits/ is gitignored it shows nothing, which a run that wrote
nothing satisfies identically.)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub carlsz/ux-agent-skills --plugin ux-agent-skills5 skills in this plugin
/audit-cujVerify a stored critical user journey by replaying it step by step against the running app, and report the exact step that broke as a cuj report in .ux/audits. Use for "verify my CUJs", "do the journeys still work", "journey regression check", "which step broke"./render-reportRender existing .ux/audits reports into self-contained, offline HTML pages — findings as cards, the captured screenshots as an interactive walk-through flipbook, plus the roll-up dashboard and an index landing page. Use for "render the report to HTML", "HTML view of the audit", "open the audit in a browser", "flipbook walkthrough", "make a shareable report page"./spec-cujInterview the user one question at a time to author critical user journeys, then store each as its own .ux/cujs file with actor, preconditions, numbered steps and expected outcomes, and regenerate the journey index in the host SPEC.md. Use for "define a CUJ", "author journeys", "write our user journeys", "ux spec"./ux-auditSuite roll-up — fan out to the default UX auditors (usability, accessibility, cuj) against one target, with web performance available opt-in, normalize all findings into the shared .ux/audits contract, and produce one combined roll-up ranked by priority (P0-P3), with no ship call. Use for "full UX audit", "audit everything", "ux-audit", "go/no-go UX verdict".Other plugins' skills for the same job