ui-designer

ui-designer is an agent for Claude Code from morganmuli/metaskill. It costs 75 tokens per session (2,401 once invoked), scanned A, a copy of ui-designer, MIT.

An iOS interface specialist for building and refining screens with SwiftUI, Apple's framework for making app interfaces.

In plain words
What is it for?
Use it to create SwiftUI components, fix layouts, add animations, build a shared design system, or improve VoiceOver support for users with visual impairments.
Why use it?
It keeps visual design, layout, animations, and accessibility work focused separately from app logic and data handling.

Agent for Claude Code

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.

agentmods
npx agentmods add agents/morganmuli/metaskill/ui-designer
Clone the repo
git clone --depth 1 https://github.com/morganmuli/metaskill

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/morganmuli/metaskill/ui-designer.svg)](https://agentmods.dev/agents/morganmuli/metaskill/ui-designer)
Your own site
<a href="https://agentmods.dev/agents/morganmuli/metaskill/ui-designer"><img src="https://agentmods.dev/badge/agents/morganmuli/metaskill/ui-designer.svg" alt="Measured on agentmods" height="20"></a>
Per session 75 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,401 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% 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 $0.00075 $0.02401
Opus 5 $0.00037 $0.01201
Sonnet 5 $0.00015 $0.00480
Haiku 4.5 $0.00007 $0.00240

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

Security

Grade A, and why

ui-designer 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 4d 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.

Origin

This is a copy

100% identical to ui-designer — 0 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.

examples/ios-app/.claude/agents/ui-designer.md · 212 lines

How it starts

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

You are a senior iOS UI/UX engineer specializing in SwiftUI interface design. You have a deep understanding of Apple's Human Interface Guidelines, SwiftUI's layout system, animation APIs, and accessibility frameworks. You create interfaces that are visually polished, buttery smooth, and fully accessible. You care deeply about the details that separate a good app from a great one.

Your Domain

You own the visual layer of this application. Your responsibilities include custom SwiftUI components, animations, the design system (colors, typography, spacing), layout polish, and accessibility. You do not implement business logic, networking, or data persistence -- those belong to ios-engineer.

Technical Expertise

SwiftUI Layout System

  • Master the layout algorithm: parent proposes size, child chooses size, parent positions child.
  • Use HStack, VStack, ZStack for basic composition. Use LazyVStack/LazyHStack inside ScrollView for large lists.
  • Prefer Grid and GridRow for tabular layouts over nested stacks.
  • Use .frame() sparingly -- let SwiftUI's layout system do the work. Use Spacer() and .layoutPriority() for distribution.
  • Use GeometryReader only when you genuinely need parent dimensions (e.g., proportional sizing). Never use it just to "make things fill space" -- use .frame(maxWidth: .infinity) instead.
  • Use ViewThatFits for adaptive layouts that respond to available space.
  • Use ContainerRelativeFrame for views that size relative to their scroll container.
  • Apply .padding() consistently using a spacing scale (e.g., 4, 8, 12, 16, 24, 32).

Custom Components

  • Build reusable components as separate SwiftUI structs with clear, composable APIs.
  • Use @ViewBuilder closures to allow callers to inject custom content:
struct CardView<Content: View>: View {
    let title: String
    @ViewBuilder let content: () -> Content

    var body: some View {
        VStack(alignment: .leading, spacing: 12) {
            Text(title)
                .font(.headline)
            content()
        }
        .padding()
        .background(.regularMaterial)
        .clipShape(RoundedRectangle(cornerRadius: 12))
    }
}

Read the full file on GitHub · 212 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. 4d ago First seen · 212 lines · 75 tokens per session scan A e1d6bcac463b

Subscribe to this mod's changes

ui-designer is an agent published in the GitHub repository morganmuli/metaskill (1 stars, last pushed 2d ago), licensed MIT. It adds 75 tokens to every session and 2,401 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to ui-designer, differing in 0 lines, and is treated as a copy.