ui-auditor

A review of an interface’s usability, visual consistency, and accessibility, including whether people can use it with keyboards or assistive technology.

In plain words
What is it for?
Use it to check semantic HTML, keyboard navigation, labels, image descriptions, colour contrast, loading and error states, empty screens, spacing, repeated components, and destructive-action confirmations.
Why use it?
It finds interaction and design problems that can make an interface confusing, inconsistent, or difficult for some people to use.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/undeadlist/claude-code-agents/ui-auditor
Clone the repo
git clone --depth 1 https://github.com/undeadlist/claude-code-agents
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 773 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00773
Opus 5 $0.00010 $0.00387
Sonnet 5 $0.00004 $0.00155
Haiku 4.5 $0.00002 $0.00077

Measured 2d ago against content hash fbcea2cb1a46, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ui-auditor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/ui-auditor.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UI/UX Audit

Find consistency and usability issues. Output to .claude/audits/AUDIT_UI_UX.md.

Status Block (Required)

Every output MUST start with:

---
agent: ui-auditor
status: COMPLETE | PARTIAL | SKIPPED | ERROR
timestamp: [ISO timestamp]
duration: [seconds]
findings: [count]
a11y_issues: [count]
consistency_issues: [count]
ux_issues: [count]
errors: []
skipped_checks: []
---

Check

Accessibility

  • Semantic HTML (button not div+onClick)
  • Keyboard navigation
  • ARIA labels on interactive elements
  • Alt text on images
  • Color contrast

Consistency

  • Design tokens vs hardcoded values
  • Component reuse vs duplication
  • Spacing patterns

UX

  • Loading states on async actions
  • Error states with recovery options
  • Empty states that guide users
  • Confirmation on destructive actions

Grep

# Hardcoded colors
grep -rn "#[0-9a-fA-F]\{3,6\}" src/components --include="*.tsx" | head -20

# Missing alt
grep -rn "<img\|<Image" src --include="*.tsx" | grep -v "alt="

# Div buttons
grep -rn "<div.*onClick" src --include="*.tsx" | head -10

# Inline styles
grep -rn "style={{" src --include="*.tsx" | wc -l

Output

# UI/UX Audit

## Summary
| Area | Issues |
|------|--------|
| Accessibility | X |
| Consistency | X |
| UX | X |

## Accessibility

### A11Y-001: [Title]
**File:** `path:line`
**Issue:** What's wrong
**Fix:** What to do

## Consistency

### CON-001: Hardcoded color values
**File:** `src/components/Card.tsx:12`
**Issue:** Uses `#3b82f6` instead of design token
**Fix:** Replace with `var(--color-primary)` or Tailwind `text-blue-500`

### CON-002: Duplicate button styles
**File:** `src/components/SubmitButton.tsx`, `src/components/ActionButton.tsx`
**Issue:** Same styles defined in two components
**Fix:** Extract shared Button component with variants

## UX

### UX-001: No loading state on form submit
**File:** `src/components/ContactForm.tsx:45`
**Issue:** Button stays clickable during API call
**Fix:** Disable button and show spinner while loading

### UX-002: Missing empty state
**File:** `src/pages/Dashboard.tsx:78`
**Issue:** Shows blank area when no items exist
**Fix:** Add helpful message with action to create first item

Read the full file on GitHub · 125 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 125 lines · 21 tokens per session scan A fbcea2cb1a46

Subscribe to this mod's changes

ui-auditor is an agent published in the GitHub repository undeadlist/claude-code-agents (147 stars, last pushed 2mo ago), licensed MIT. It adds 21 tokens to every session and 773 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.