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.
npx skills add sean-sunagaku/claude-code-plugin --skill swiftui-ui-mockupgit clone --depth 1 https://github.com/sean-sunagaku/claude-code-pluginWrote 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/skills/sean-sunagaku/claude-code-plugin/swiftui-ui-mockup)<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.
<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>- NVIDIA SkillSpector pass
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.00127 | $0.01855 |
| Opus 5.5 | $0.00051 | $0.00742 |
| Sonnet 5.5 | $0.00025 | $0.00371 |
| Haiku 4.5 | $0.00013 | $0.00186 |
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 3mo 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.
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、文字サイズ、端末幅
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.
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.
- 3mo ago First seen · 133 lines · 127 tokens per session scan A 8919e45b10c3
swiftui-ui-mockup is a skill published in the GitHub repository sean-sunagaku/claude-code-plugin (38 stars, last pushed 4mo ago), licensed MIT. It adds 127 tokens to every session and 1,855 once invoked, about $0.0005 per session on Opus 5.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.
swiftui-ui-mockup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| swiftui-ui-mockupsean-sunagaku/claude-code-plugin | Skill | 38 | 4mo ago | MIT | A | 127 | Claude Code |
| hig-foundationssickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 12 | Claude Code |
| hig-inputssickn33/agentic-awesome-skills | Skill | 51k | today | MIT | A | 32 | Claude Code |
| display-glasses-with-jetpack-compose-glimmerandroid/skills | Skill | 11k | 7d ago | Apache-2.0 | A | 112 | Claude Code |
| glance-canonical-layoutsandroid/skills | Skill | 11k | 7d ago | Apache-2.0 | A | 56 | Claude Code |
| expo-design-systemexpo/skills | Skill | 4.3k | today | MIT | A | 90 | Claude Code, Codex |
| flutter-build-responsive-layoutflutter/agent-plugins | Skill | 3.2k | 12d ago | BSD-3-Clause | A | 51 | Claude Code |