ux-doctor

ux-doctor is a command for Claude Code from ssheleg/super-ux. It costs 30 tokens per session (441 once invoked), scanned A, original, MIT.

A diagnostic command for checking whether a project's UX documents follow the expected contract. It finds stale or mixed versions, incorrectly named files, missing artifacts, and audits without a proper base.

In plain words
What is it for?
Use it to diagnose the UX documentation chain, including version drift, missing optional files, misnamed documents, and unsupported audit reports.
Why use it?
A document chain can look internally consistent while still following an older set of rules. This check finds that project-wide mismatch and points out what the tooling cannot locate.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 docs/ux/doctor.py $ARGUMENTS.

Part of the super-ux plugin — 7 skills, 15 commands shipped together

Good fit Use it to diagnose the UX documentation chain, including version drift, missing optional files, misnamed documents, and unsupported audit reports.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ssheleg/super-ux
agentmods
npx agentmods add commands/ssheleg/super-ux/ux-doctor

Made for: Claude Code.

Or install super-ux, the plugin that ships this one along with the rest of its 7 skills, 15 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ux-doctor

README.md
[![agentmods](https://agentmods.dev/badge/commands/ssheleg/super-ux/ux-doctor/github.svg)](https://agentmods.dev/commands/ssheleg/super-ux/ux-doctor)
Your own site
<a href="https://agentmods.dev/commands/ssheleg/super-ux/ux-doctor"><img src="https://agentmods.dev/badge/commands/ssheleg/super-ux/ux-doctor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ux-doctor

Your own site · 80×15
<a href="https://agentmods.dev/commands/ssheleg/super-ux/ux-doctor"><img src="https://agentmods.dev/badge/commands/ssheleg/super-ux/ux-doctor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 441 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00030 $0.00441
Opus 5 $0.00015 $0.00220
Sonnet 5 $0.00006 $0.00088
Haiku 4.5 $0.00003 $0.00044

Measured 9d ago against content hash e2aeccb8f27f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ux-doctor 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 9d 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.

plugins/super-ux/commands/ux-doctor.md · 41 lines

What it actually says

Diagnose this project's UX chain against the contract it should be on:

python3 docs/ux/doctor.py $ARGUMENTS

If docs/ux/doctor.py is missing, copy it from the plugin's scripts/ux_doctor.py — or run /ux-rule, which seeds lint.py and doctor.py together.

/ux-lint checks a chain against itself — ids, links, orphans. It cannot see that the whole base is written to a contract three versions old, because from the inside such a chain is perfectly consistent. That is what this finds: drift between the project and the contract, not within the project.

What it reports:

  • Mixed contract — artifacts last touched by different versions and never reconciled. Seen in the wild with foundation.md on v2 and screens.md on v4 in the same project.
  • Behind / unmarked — the effective version, and what each version since it introduced, so "upgrade" is a list rather than a feeling.
  • Misnamed — a file the contract owns under another name (ux-scenarios.md instead of scenarios.md). The tooling looks for the contract name, finds nothing, and says so quietly.
  • Audits without a base — reports produced against scenarios that are not there.
  • Optional and absent — additive sections the project has not adopted. Not a problem; worth knowing.

--fix applies only what cannot be wrong: renaming a file the contract owns, moving audit reports into audits/. Contract upgrades are content decisions — run /ux-update for those, one layer at a time, and re-run the doctor after.

--brief prints one line per project, for sweeping several at once.

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. 9d ago First seen · 41 lines · 30 tokens per session scan A e2aeccb8f27f

Subscribe to this mod's changes

ux-doctor is a command published in the GitHub repository ssheleg/super-ux (3 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 441 once invoked, about $0.0002 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-31.

Related

Other commands, from other repositories

ux-fix

Opt-in fix loop. Reads the latest report from .ux/, validates working tree, and applies findings as atomic commits via the right sub-agents. Triggers on "fix the findings", "apply the fixes", or "run the fix loop". Use when applying findings from a previous audit / copy / a11y / motion / polish report, the user says…

Laith0003/ux-skill · 129 tokens

ux-motion

Animation and motion rubric. Checks timing, easing, meaning, reduced-motion compliance, and performance for every animation on a surface. Triggers on "motion check", "are the animations good", or "fix the motion". Use when auditing motion or animations, checking durations / easing / reduced-motion / performance, is…

Laith0003/ux-skill · 104 tokens

ux-case-study

Generate a project case study in pure-monochrome editorial format. Triggers on "write a case study", "case study this project", "do the wrap-up doc". Use when writing a project case study, shipping a publishable Wfrah-editorial document, ending a project with a case-study artifact, producing the (A)–(G) section format…

Laith0003/ux-skill · 112 tokens

ux-component

Generate a single component (button, modal, navbar, sidebar, card, table, form, chart) from a spec. Triggers on "build a [component]", "create a pricing card", "make a modal", "add a navbar". Use when generating a single component, the user says "create a [button/modal/navbar/card/table/form/chart]", embedded into an…

Laith0003/ux-skill · 105 tokens

ux-copy

Microcopy review and rewrite against the voice rubric. Produces a before/after table with severity per string and a clean rewrite block. Triggers on "review the copy", "fix the microcopy", "the error messages are bad", or "rewrite this". Use when reviewing or rewriting microcopy, fixing error messages that sound like…

Laith0003/ux-skill · 121 tokens

ux-critique

Open-ended taste call on a specific surface. Not a structured audit — a designer's opinion. Returns 3 wins, 3 misses, and 1 strategic move. Triggers on "what do you think", "is this good", "critique this", or "honest take". Use when open-ended taste call, the user asks "what do you think", design review without a…

Laith0003/ux-skill · 133 tokens