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.
/plugin marketplace add MadAppGang/magus/plugin install designerWrote 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.
[](https://agentmods.dev/agents/madappgang/magus/ui)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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:
- 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'sapp.screens. - Reuse a library component as it is.
- Add a variant to an existing library component (in its variant definition, with a story).
- A recipe: compose existing components inside the screen, layout only.
- Add a registry item with
project.ts add, afterproject.ts searchandview. - Write a new library component — only when 1–5 cannot serve. It goes in the library
directory, renders
data-sloton its root, and gets a design id:
Its stories carry that id asCLAUDE_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>parameters.designer.id. </decision_tree>
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.
- yesterday Changed · +3 lines 0c068e1a221d
- 4d ago Changed · -138 lines · -15 tokens per session e84d9aaabea6
- 7d ago Changed · -1 lines 1253726a137e
- 1mo ago Changed · +1 lines 8b5a0b0d9a83
- 2mo ago Changed · +4 lines 9cfdcab16e32
- 2mo ago Changed · +1 lines c3f800c6753e
- 2mo ago Changed · -494 lines · +29 tokens per session 5a82d010e7ae
- 2mo ago Changed · -71 lines · +34 tokens per session b7ccd262b0b3
- 3mo ago Changed · +6 lines · +10 tokens per session 06400c4bd5cd
- 3mo ago First seen · 844 lines · 44 tokens per session scan A 969eb9847ed8
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.
ui compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| uiMadAppGang/magus | Agent | 16 | yesterday | MIT | A | 102 | Claude Code |
| ux-flow-auditorCharlesWiltgen/Axiom | Agent | 1.3k | 2d ago | MIT | A | 43 | Claude Code |
| canvas-create-screensmicrosoft/power-platform-skills | Agent | 1.2k | today | MIT | A | 24 | Claude Code |
| nw-ux-designernWave-ai/nWave | Agent | 638 | 15d ago | MIT | A | 31 | Claude Code |
| designRune-kit/rune | Agent | 96 | yesterday | MIT | A | 35 | Claude Code |
| camille-ux-designermagic5644/Graph-It-Live | Agent | 64 | yesterday | MIT | A | 50 | Claude Code |
| mobile-ux-optimizerxbim08/awesome-claude-code-plugins | Agent | 10 | 2mo ago | Apache-2.0 | A | 0 | Claude Code |