ux-genie

ux-genie is a command for Claude Code from ShaheerKhawaja/ProductionOS. It costs 38 tokens per session (953 once invoked), scanned A, original, MIT.

A user-experience improvement workflow that creates user stories, maps how different users move through a product, and finds points of friction.

In plain words
What is it for?
Deriving user types from permissions and routes, writing acceptance criteria, mapping journeys, classifying UX friction, dispatching fixes, and checking those fixes.
Why use it?
It turns broad interface guidance into specific, testable improvements and can send work to agents to address selected problems.

Command for Claude Code

Written for Claude Code: arguments in frontmatter.

Part of the productionos plugin — 4 skills, 41 commands, 11 agents shipped together

Good fit Deriving user types from permissions and routes, writing acceptance criteria, mapping journeys, classifying UX friction, dispatching fixes, and checking those fixes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/shaheerkhawaja/productionos/ux-genie
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.

Clone the repo
git clone --depth 1 https://github.com/ShaheerKhawaja/ProductionOS

Made for: Claude Code.

Or install productionos, the plugin that ships this one along with the rest of its 4 skills, 41 commands, 11 agents.

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-genie

README.md
[![agentmods](https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/ux-genie/github.svg)](https://agentmods.dev/commands/shaheerkhawaja/productionos/ux-genie)
Your own site
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/ux-genie"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/ux-genie/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-genie

Your own site · 80×15
<a href="https://agentmods.dev/commands/shaheerkhawaja/productionos/ux-genie"><img src="https://agentmods.dev/badge/commands/shaheerkhawaja/productionos/ux-genie.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 953 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.00038 $0.00953
Opus 5 $0.00019 $0.00477
Sonnet 5 $0.00008 $0.00191
Haiku 4.5 $0.00004 $0.00095

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

Security

Grade A, and why

ux-genie 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 11d 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.

.claude/commands/ux-genie.md · 98 lines

How it starts

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

/ux-genie — User Story & Journey Improvement Pipeline

You are the UX Genie orchestrator. You create user stories, map journeys, identify friction, and optionally dispatch agents to fix UX problems.

This is one of ProductionOS's 4 primary commands. It can be invoked standalone or as part of /omni-plan-nth and /auto-swarm-nth.

Step 0: Preamble

Before executing, run the shared ProductionOS preamble (templates/PREAMBLE.md).

Then initialize the ux-genie output directory:

mkdir -p .productionos/ux-genie/self-eval

Execution

Read agents/ux-genie.md and execute its full 6-phase protocol:

  1. Phase 1: Guidelines Intake — Read existing design docs, derive personas from RBAC/routes
  2. Phase 2: User Stories — Generate 20+ stories across 10 dimensions with testable acceptance criteria
  3. Phase 3: Journey Maps — Map each persona's journey with emotional state tracking
  4. Phase 4: Friction Analysis — Identify and categorize friction across 8 types
  5. Phase 5: Agent Dispatch — (if fix=on) Deploy fix agents in priority waves
  6. Phase 6: Verification — Validate fixes against story acceptance criteria

Self-Eval Integration (mandatory)

After each phase, run templates/SELF-EVAL-PROTOCOL.md:

  • Phase 1 self-eval: Are personas evidence-based? Score >= 8.0 to proceed.
  • Phase 2 self-eval: Are stories testable and complete? Minimum 20 stories. Score >= 8.0.
  • Phase 3 self-eval: Do journey maps trace to actual code? Score >= 8.0.
  • Phase 4 self-eval: Is friction analysis specific with file:line references? Score >= 8.0.
  • Phase 5 self-eval: Do fixes address the actual friction points? Score >= 8.0.
  • Phase 6 self-eval: Do fixes pass story acceptance criteria? Score >= 8.0.

Designer-Upgrade Integration

If .productionos/designer-upgrade/DESIGN-SYSTEM.md exists:

  • Use it as the primary design reference
  • Stories should reference design system tokens
  • Journey maps should reference mockup views
  • Friction analysis should cross-reference audit findings

Read the full file on GitHub · 98 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. 11d ago First seen · 98 lines · 38 tokens per session scan A bfd260757e57

Subscribe to this mod's changes

ux-genie is a command published in the GitHub repository ShaheerKhawaja/ProductionOS (8 stars, last pushed 4mo ago), licensed MIT. It adds 38 tokens to every session and 953 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.