From ios-development
Core coding guidelines for iOS, iPadOS, macOS, watchOS, tvOS, and visionOS app development using SwiftUI and Swift. Use when implementing Views, working with @State/@Binding/@Observable/@StateObject, using NavigationStack/List/LazyVStack, designing components, or asking about SwiftUI patterns (infinite scroll, pull-to-refresh, search). Covers best practices, implementation patterns, and anti-patterns to avoid.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ios-development:swiftui-coding-guidelinesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
SwiftUIの日常的な開発で参照するコアガイドライン。
SwiftUIの日常的な開発で参照するコアガイドライン。
swiftui-coding-guidelines/
├── SKILL.md (このファイル)
└── references/
├── best-practices.md # ベストプラクティス
├── patterns-list.md # 1-x: リスト・データ表示系
├── patterns-navigation.md # 2-x: ナビゲーション・画面遷移系
├── patterns-forms.md # 3-x: フォーム・入力系
├── patterns-views.md # 4-x: View構築・レイアウト系
└── anti-patterns.md # アンチパターン
SwiftUIのベストプラクティス集:
| 番号 | パターン |
|---|---|
| 1-1 | 無限スクロール(Pagination) |
| 1-2 | プルトゥリフレッシュ |
| 1-3 | フィルタリング・ソート |
| 1-4 | スワイプアクション |
| 1-5 | コンテキストメニュー |
| 番号 | パターン |
|---|---|
| 2-1 | タブビュー |
| 2-2 | ナビゲーション(NavigationStack) |
| 2-3 | モーダル表示(Sheet / FullScreenCover) |
| 2-4 | アラート・ダイアログ |
| 番号 | パターン |
|---|---|
| 3-1 | 検索機能(デバウンス付き) |
| 3-2 | フォーム入力(バリデーション付き) |
| 3-3 | 認証画面(ログイン / 新規登録 / OTP) |
| 番号 | パターン |
|---|---|
| 4-1 | AsyncImage(キャッシュ付き) |
| 4-2 | 空状態・エラー状態 |
| 4-3 | アニメーション |
| 4-4 | View重なり(ZStack / overlay / background) |
| 4-5 | ContentUnavailableView(iOS 17+) |
アンチパターンと解決策:
patterns-*.mdで実装パターン確認best-practices.mdで関連ベストプラクティス確認anti-patterns.mdで避けるべきパターン確認anti-patterns.mdで該当パターン検索best-practices.mdで推奨実装確認npx claudepluginhub xtone/ai_development_tools --plugin ios-developmentProvides best practices and examples for SwiftUI views, components, navigation hierarchies, custom modifiers, responsive layouts with stacks/grids, and state management (@State/@Binding). Use for creating/refactoring iOS UI.
Provides SwiftUI patterns for state management (@State/@Binding/@ObservableObject), view composition, Observable protocol, ViewModifiers, and declarative UI in iOS/macOS apps.
Applies proven SwiftUI UI patterns for navigation, sheets, async state, reusable screens, and app wiring. Useful for creating, refactoring screens or scaffolding new iOS projects.