ux

ux is a skill for Claude Code, Codex from rainmanjam/poka-yoke. It costs 36 tokens per session (915 once invoked), scanned A, original, MIT.

A guide to organizing code for forms, user journeys, and screens in software interfaces.

In plain words
What is it for?
Use it when deciding where state belongs, separating server data from form data, and structuring validation, fetching, formatting, submission, and errors.
Why use it?
It helps prevent tangled components, duplicated data, and bugs caused by unclear ownership of changing values.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when deciding where state belongs, separating server data from form data, and structuring validation, fetching, formatting, submission, and errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rainmanjam/poka-yoke/ux
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.

Any agent
npx skills add rainmanjam/poka-yoke --skill ux
Clone the repo
git clone --depth 1 https://github.com/rainmanjam/poka-yoke

Made for: Claude Code, Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rainmanjam/poka-yoke/ux"><img src="https://agentmods.dev/badge/skills/rainmanjam/poka-yoke/ux.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 915 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00036 $0.00915
Opus 5 $0.00018 $0.00458
Sonnet 5 $0.00007 $0.00183
Haiku 4.5 $0.00004 $0.00092

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

Security

Grade A, and why

ux 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.

benchmarks/controls/clean-code/skills/ux/SKILL.md · 90 lines

How it starts

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

UX: Structuring Interaction Code

Interface code accumulates faster than any other kind, because every requirement arrives as "and also, when the user does X". Without structure a screen becomes one component holding fetching, validation, formatting, submission and error display, and every change risks all of them.

The discipline is ordinary: single responsibility, explicit state ownership, and names that survive being read alone. What is different is that the pressure to skip it is higher, because interface code is visible and the deadline is usually visual.

Decide where state lives, once

Most interface bugs are state-ownership bugs wearing other clothes.

One owner per piece of state. If two components can both change a value, they will disagree, and the disagreement will be intermittent. Lift the state to the nearest common parent and pass it down, or move it out of the tree entirely.

Derive rather than duplicate. A total stored alongside the items it sums is two facts that must agree. Compute it. If computing it is expensive, memoise the computation rather than storing a second copy.

Keep server state and form state distinct. What the server last said and what the user has typed are different things with different lifetimes. Conflating them is why "the form reset itself" bugs are so hard to reproduce.

Name state for what it is, not what it shows. isSubmitting is a fact. showSpinner is a consequence, and it will eventually need to be true for a second reason.

Split components along seams that will move

By responsibility, not by size. A 400-line component that renders one coherent thing is easier to work with than four components passing state between them.

Separate what fetches from what displays. A component that both loads and renders cannot be previewed, tested, or reused with different data. Take data as props; let a parent decide where it came from.

Keep the rules out of the markup. Whether a discount applies is a business question with a right answer that does not depend on React. It should be a function you can test without rendering.

Read the full file on GitHub · 90 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. 9d ago First seen · 90 lines · 36 tokens per session scan A ec49226228dd

Subscribe to this mod's changes

ux is a skill published in the GitHub repository rainmanjam/poka-yoke (22 stars, last pushed 7d ago), licensed MIT. It adds 36 tokens to every session and 915 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-30.

Related

Other skills, from other repositories

figma-fetch

Extract frame/component structure and all visible text from a Figma design URL. Use whenever a prompt or a fetched issue contains a figma.com/design or figma.com/file link.

theam/claude-dev-kit · 40 tokens

design

Intent-first UI design with conscious, traceable design decisions. Persists decisions in .interface-design/ for cross-session consistency. Includes domain exploration, design system generation (system.md + system.json), per-component construction with mandatory checkpoints, and craft validation tests. Modes: init…

greglas75/zuvo · 90 tokens

fec-storybook-component-doc

A workflow for documenting interface components in Storybook, a tool that displays UI components and their states in isolation. It covers stories, reusable setup wrappers, written documentation, interaction checks, accessibility checks, and visual baselines.

bovinphang/frontend-craft · 93 tokens

Component Variants / States Documentation コンポーネント状態の文書化

A code review check for new reusable interface components and the variations and states they support, such as hover, focus, disabled, loading, and error states.

s977043/river-review · 75 tokens

Design Source-of-Truth Conformance デザイン定義準拠

A code review check that compares new interface values—such as colors, spacing, font sizes, rounded corners, and shadows—with the project's documented design rules or token files. It only runs when those design definitions exist.

s977043/river-review · 90 tokens

rk-house-style

The ENFORCED house design system — one premium look for every frontend, with gates that stop drift (not just advice). Triggers on building or editing a page, component, view, dashboard, screen, form, table, chart, or any UI surface ("build a page", "create a component", "design a dashboard", "make a form", "add a…

Rishi4792/compass · 166 tokens