ui

ui is an agent for Claude Code from MadAppGang/magus. It costs 102 tokens per session (2,163 once invoked), scanned A, a copy of ui, MIT.

A code agent that reviews screens from screenshots or designs for usability, accessibility and consistency with a design system. WCAG is a set of widely used accessibility guidelines for making websites and apps usable by more people.

In plain words
What is it for?
Use it to audit a screen, investigate what is wrong with a user interface, check accessibility, review a Figma design, or implement a Figma design.
Why use it?
It helps identify interface problems that are easy to miss when focusing only on code, including accessibility issues and differences from the intended design.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_DATA} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the designer plugin — 3 skills, 3 commands, 3 agents shipped together

Good fit Use it to audit a screen, investigate what is wrong with a user interface, check accessibility, review a Figma design, or implement a Figma design.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MadAppGang/magus
Claude Code
/plugin install designer

Made for: Claude Code.

Or install designer, the plugin that ships this one along with the rest of its 3 skills, 3 commands, 3 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 ui

README.md
[![agentmods](https://agentmods.dev/badge/agents/madappgang/magus/ui/github.svg)](https://agentmods.dev/agents/madappgang/magus/ui)
Your own site
<a href="https://agentmods.dev/agents/madappgang/magus/ui"><img src="https://agentmods.dev/badge/agents/madappgang/magus/ui/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 ui

Your own site · 80×15
<a href="https://agentmods.dev/agents/madappgang/magus/ui"><img src="https://agentmods.dev/badge/agents/madappgang/magus/ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,163 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 89% copy Near-identical to another mod 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.00102 $0.02163
Opus 5.5 $0.00041 $0.00865
Sonnet 5.5 $0.00020 $0.00433
Haiku 4.5 $0.00010 $0.00216

Measured yesterday against content hash 0c068e1a221d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ui 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 yesterday.

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.

Origin

This is a copy

89% identical to ui — 998 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/designer/agents/ui.md · 155 lines

How it starts

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

A required input missing for the MODE: return status: BLOCKED naming it, and stop.

<critical_constraints> The rules. Run CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" bun "${CLAUDE_PLUGIN_ROOT}/scripts/rules.ts" --print before the first edit and keep its output open. It is the only source of rule ids, allowed values and limits; never restate one from memory. Precedence when sources disagree: the project's own theme and library first, then the rule table, then the shadcn skill and any companion skill. Every user-facing string, and how much a screen shows (its actions, their grouping, what stays hidden), follows the ux-copy skill. shadcn only through designer's wrapper, which pins the CLI version, allows only approved registries and records provenance in RUN_DIR/adds.json: bash CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" bun "${CLAUDE_PLUGIN_ROOT}/scripts/project.ts" add <item>… --run "$RUN_DIR" --project "$PROJECT_DIR" CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" bun "${CLAUDE_PLUGIN_ROOT}/scripts/project.ts" search <query> --project "$PROJECT_DIR" CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" bun "${CLAUDE_PLUGIN_ROOT}/scripts/project.ts" view <item>… --project "$PROJECT_DIR" Where the shadcn skill shows a direct shadcn CLI call for add, search or view, use the wrapper instead. Exit 3 from add means refused (an unapproved registry, or an opt-in item without --opt-in): report it, never work around it. Screens only compose. Every visual decision lives in the theme or in a library component's variants; a screen passes layout only. A styled raw element in a screen is a component outside the library. Edit only what the plan names, plus the stories and the links manifest they need. Never commit, and never touch files outside PROJECT_DIR and RUN_DIR. </critical_constraints>

<decision_tree name="Each piece of UI the brief needs"> Walk it in order and record the outcome in the plan:

  1. Discover: list what exists — the library directory, its stories (CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" bun "${CLAUDE_PLUGIN_ROOT}/scripts/storybook.ts" stories --run "$RUN_DIR"), and .claude/designer.json's app.screens.
  2. Reuse a library component as it is.
  3. Add a variant to an existing library component (in its variant definition, with a story).
  4. A recipe: compose existing components inside the screen, layout only.
  5. Add a registry item with project.ts add, after project.ts search and view.
  6. Write a new library component — only when 1–5 cannot serve. It goes in the library directory, renders data-slot on its root, and gets a design id:
    CLAUDE_PLUGIN_DATA="${CLAUDE_PLUGIN_DATA}" bun "${CLAUDE_PLUGIN_ROOT}/scripts/design-link.ts" assign \
      --project "$PROJECT_DIR" --name <Name> --file <path> --story-title <Library title>/<Name>
    
    Its stories carry that id as parameters.designer.id. </decision_tree>

Read the full file on GitHub · 155 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. yesterday Changed · +3 lines 0c068e1a221d
  2. 4d ago Changed · -138 lines · -15 tokens per session e84d9aaabea6
  3. 7d ago Changed · -1 lines 1253726a137e
  4. 1mo ago Changed · +1 lines 8b5a0b0d9a83
  5. 2mo ago Changed · +4 lines 9cfdcab16e32
  6. 2mo ago Changed · +1 lines c3f800c6753e
  7. 2mo ago Changed · -494 lines · +29 tokens per session 5a82d010e7ae
  8. 2mo ago Changed · -71 lines · +34 tokens per session b7ccd262b0b3
  9. 3mo ago Changed · +6 lines · +10 tokens per session 06400c4bd5cd
  10. 3mo ago First seen · 844 lines · 44 tokens per session scan A 969eb9847ed8

Subscribe to this mod's changes

ui is an agent published in the GitHub repository MadAppGang/magus (16 stars, last pushed yesterday), licensed MIT. It adds 102 tokens to every session and 2,163 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to ui, differing in 998 lines, and is treated as a copy.

Related

ui compared with agents from other repositories

ui next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
uiMadAppGang/magusAgent16yesterdayMITA102Claude Code
ux-flow-auditorCharlesWiltgen/AxiomAgent1.3k2d agoMITA43Claude Code
canvas-create-screensmicrosoft/power-platform-skillsAgent1.2ktodayMITA24Claude Code
nw-ux-designernWave-ai/nWaveAgent63815d agoMITA31Claude Code
designRune-kit/runeAgent96yesterdayMITA35Claude Code
camille-ux-designermagic5644/Graph-It-LiveAgent64yesterdayMITA50Claude Code
mobile-ux-optimizerxbim08/awesome-claude-code-pluginsAgent102mo agoApache-2.0A0Claude Code