swiftui-ui-mockup

swiftui-ui-mockup is a skill for Claude Code from sean-sunagaku/claude-code-plugin. It costs 127 tokens per session (1,855 once invoked), scanned A, original, MIT.

A workflow for designing and building runnable SwiftUI mockups, which are interactive previews of iPhone or iPad screens rather than production features.

In plain words
What is it for?
Use it to create sample data, compare interface variants, test key states in Xcode Previews and the Simulator, and record design decisions.
Why use it?
It lets teams settle layout, wording, navigation, and visual choices without building authentication, networking, storage, payments, or notifications.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the swiftui-ui-mockup plugin — 1 skill shipped together

Good fit Use it to create sample data, compare interface variants, test key states in Xcode Previews and the Simulator, and record design decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sean-sunagaku/claude-code-plugin/swiftui-ui-mockup
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 sean-sunagaku/claude-code-plugin --skill swiftui-ui-mockup
Clone the repo
git clone --depth 1 https://github.com/sean-sunagaku/claude-code-plugin

Made for: Claude Code.

Or install swiftui-ui-mockup, the plugin that ships this one along with the rest of its 1 skill.

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 swiftui-ui-mockup

README.md
[![agentmods](https://agentmods.dev/badge/skills/sean-sunagaku/claude-code-plugin/swiftui-ui-mockup/github.svg)](https://agentmods.dev/skills/sean-sunagaku/claude-code-plugin/swiftui-ui-mockup)
Your own site
<a href="https://agentmods.dev/skills/sean-sunagaku/claude-code-plugin/swiftui-ui-mockup"><img src="https://agentmods.dev/badge/skills/sean-sunagaku/claude-code-plugin/swiftui-ui-mockup/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 swiftui-ui-mockup

Your own site · 80×15
<a href="https://agentmods.dev/skills/sean-sunagaku/claude-code-plugin/swiftui-ui-mockup"><img src="https://agentmods.dev/badge/skills/sean-sunagaku/claude-code-plugin/swiftui-ui-mockup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,855 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.00127 $0.01855
Opus 5 $0.00063 $0.00928
Sonnet 5 $0.00025 $0.00371
Haiku 4.5 $0.00013 $0.00186

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

Security

Grade A, and why

swiftui-ui-mockup 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.

design/swiftui-ui-mockup/skills/swiftui-ui-mockup/SKILL.md · 133 lines

How it starts

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

SwiftUI UI Mockup

SwiftUIで「どんなUIにするか」の検討と、実際に操作できるネイティブモックの実装・表示確認までを行う。本番機能の完成ではなく、短い反復でUI判断を確定することを目的にする。

守備範囲

  • UI構成、情報階層、導線、文言、主要操作を設計する。
  • 迷いがある箇所は2〜3案を同じ条件で比較できるようにする。
  • 実在感のあるサンプルデータと主要状態を用意する。
  • Xcode Previewで静的な見た目を、Simulatorで操作・遷移・スクロールを確認する。
  • 採用案と未決事項を短く残す。

認証、ネットワーク、永続化、分析、課金、通知配信などの本番基盤は実装しない。UI確認に必要な場合だけ、メモリ内のスタブで再現する。

ワークフロー

1. プロジェクトと依頼を読む

質問する前に、既存の一次情報を確認する。

  • .xcodeproj / .xcworkspace、scheme、deployment target
  • 対象画面、共通コンポーネント、テーマ、Asset Catalog、フォント
  • プロダクト資料、既存スクリーンショット、類似画面
  • プロジェクト固有の検証手順と AGENTS.md / CLAUDE.md

情報が足りなくても安全な仮説で最初のモックを作れる場合は止まらない。プロダクト方向が大きく分岐する一点だけを質問し、それ以外は推奨案を明示して進める。

2. UIブリーフを決める

実装前に次を3〜8行でまとめる。

  • この画面でユーザーが達成すること
  • 最重要情報と主要アクション
  • ナビゲーションまたは画面遷移
  • 見た目の方向性
  • 比較するUI案
  • 検証する主要状態

UIの決め方は references/ui-design.md を読む。

3. モックを本番コードから分離する

既存プロジェクトでは、そのプロジェクトの慣習を優先する。慣習がなければ次を基準にする。

<App>/
└── Mockups/
    └── <FeatureName>/
        ├── <FeatureName>MockupView.swift
        ├── <FeatureName>MockupData.swift
        └── <FeatureName>MockupGallery.swift
  • 本番の永続ストアやAPIを直接呼ばない。
  • モック専用モデルは対象フォルダ内に閉じる。
  • 本番ターゲットへの混入を避けたい場合は、Preview専用コードまたは独立したMockup targetを使う。
  • 既存画面を再利用するときはprotocolやinitializerで依存を注入し、実サービスを起動しない。

プロジェクトがない場合は、最小のiOS Appプロジェクトを prototypes/<feature-slug>/ に作り、単一schemeで起動できる状態にする。雛形が必要なら assets/MockupGalleryView.swift をコピーして具体化する。

カレントディレクトリにiOSプロジェクトがあっても、依頼されたモックが別プロダクトなら既存アプリへ追加しない。「プロジェクトがない場合」と同様に独立した prototypes/<feature-slug>/ を使い、既存アプリのテーマ、bundle ID、データ、schemeを流用しない。

実装パターンは references/implementation.md を読む。

4. 比較可能なSwiftUIモックを実装する

最低限、次を満たす。

  • #Preview から対象画面を直接開ける。
  • 主要ボタン、選択、入力、追加・削除、sheet、遷移など、判断対象の操作が動く。
  • 表示文言は具体的にし、「サンプル」「Lorem ipsum」だけで済ませない。
  • SF Symbolsと標準SwiftUIを優先し、プロジェクトのデザインシステムがあれば合わせる。
  • タップ領域は原則44pt以上にする。
  • 固定サイズ前提にせず、長文、Dynamic Type、キーボード、Safe Area、スクロールを考慮する。

比較対象がある場合は、gallery画面で次を切り替えられるようにする。

  • Variant: レイアウト・コンポーネント・操作方式の案
  • Scenario: 通常、空、少量、多量、長文、エラー、無効状態など
  • 必要に応じてLight/Dark、文字サイズ、端末幅

Read the full file on GitHub · 133 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 133 lines · 127 tokens per session scan A 8919e45b10c3

Subscribe to this mod's changes

swiftui-ui-mockup is a skill published in the GitHub repository sean-sunagaku/claude-code-plugin (36 stars, last pushed 1mo ago), licensed MIT. It adds 127 tokens to every session and 1,855 once invoked, about $0.0006 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

display-glasses-with-jetpack-compose-glimmer

Provides guidelines for developing projected Android XR apps for display glasses using the Jetpack Compose Glimmer UI toolkit. This skill covers foundational Glimmer design principles, workflows for implementing Jetpack Compose Glimmer, and interaction models for the glasses form factor. Use this skill to build an…

android/skills · 91 tokens

expo-design-system

Framework (OSS). Build and maintain a design system inside an Expo app - a reusable theme of design tokens (color, spacing, typography, radius, shadow, motion), reusable component structure with variant/size/state prop conventions, and rules for when to extract a repeated view into a shared component. Use when…

expo/skills · 201 tokens

flutter-build-responsive-layout

Use LayoutBuilder, MediaQuery, or Expanded/Flexible to create a layout that adapts to different screen sizes. Use when you need the UI to look good on both mobile and tablet/desktop form factors.

flutter/agent-plugins · 51 tokens

omh-apple-design

This is a Hermes-native apple-design workflow skill.

rlaope/oh-my-hermes · 73 tokens

axiom-audit-liquid-glass

Use when the user mentions Liquid Glass review, iOS 26 UI updates, toolbar improvements, or visual effect migration.

CharlesWiltgen/Axiom · 32 tokens

axiom-audit-ux-flow

Use when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app.

CharlesWiltgen/Axiom · 43 tokens