swiftui-expert-skill — for Claude Code swiftui-expert-skill, flutter_social_share_plus, community, for Claude Code, ide skills, SwiftUI, Expert, Overview, review, improve

v1.0.0

このスキルについて

iOS開発エージェントが高度なSwiftUI機能実装と正しい状態管理およびパフォーマンス意識パターンを必要とする場合に最適です。 ローカライズされた概要: Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, and iOS 26+ Liquid Glass adoption. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

機能

SwiftUI Expert Skill
Workflow Decision Tree
1) Review existing SwiftUI code
First, consult references/latest-apis.md to ensure only cur
Prioritize native APIs, Apple design guidance, and performance-conscious patterns

# 主なトピック

takzobye takzobye
[0]
[0]
更新日: 3/8/2026

Skill Overview

Start with fit, limitations, and setup before diving into the repository.

iOS開発エージェントが高度なSwiftUI機能実装と正しい状態管理およびパフォーマンス意識パターンを必要とする場合に最適です。 ローカライズされた概要: Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, and iOS 26+ Liquid Glass adoption. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

このスキルを使用する理由

エージェントがSwiftUI機能を構築、レビュー、改善することを可能にし、最適なビューコンポジション、ネイティブAPI、およびAppleデザインガイダンスを使用して、高パフォーマンスのiOSアプリケーションを実現し、Liquid Glassスタイリングを実現します。

おすすめ

iOS開発エージェントが高度なSwiftUI機能実装と正しい状態管理およびパフォーマンス意識パターンを必要とする場合に最適です。

実現可能なユースケース for swiftui-expert-skill

正しい状態管理を使用してSwiftUIコードを構築およびレビューする
パフォーマンス意識パターンを使用してiOSアプリケーションのパフォーマンスを向上させる
ネイティブAPIとAppleデザインガイダンスを実装して最適なビューコンポジションを実現する

! セキュリティと制限

  • SwiftUIとiOS開発の知識が必要
  • iOS 26+とAppleデザイン愛好者のみ
  • 事実とベストプラクティスに焦点を当て、特定のアーキテクチャパターンを強制しない

About The Source

The section below is adapted from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

Labs デモ

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

FAQ とインストール手順

These questions and steps mirror the structured data on this page for better search understanding.

? よくある質問

swiftui-expert-skill とは何ですか?

iOS開発エージェントが高度なSwiftUI機能実装と正しい状態管理およびパフォーマンス意識パターンを必要とする場合に最適です。 ローカライズされた概要: Write, review, or improve SwiftUI code following best practices for state management, view composition, performance, and iOS 26+ Liquid Glass adoption. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

swiftui-expert-skill はどうやって導入しますか?

次のコマンドを実行してください: npx killer-skills add takzobye/flutter_social_share_plus。Cursor、Windsurf、VS Code、Claude Code など19以上のIDEで使えます。

swiftui-expert-skill の主な用途は?

主な用途は次のとおりです: 正しい状態管理を使用してSwiftUIコードを構築およびレビューする, パフォーマンス意識パターンを使用してiOSアプリケーションのパフォーマンスを向上させる, ネイティブAPIとAppleデザインガイダンスを実装して最適なビューコンポジションを実現する。

swiftui-expert-skill に対応するIDEは?

このスキルは Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer に対応しています。統一された導入には Killer-Skills CLI を使えます。

swiftui-expert-skill に制限はありますか?

SwiftUIとiOS開発の知識が必要. iOS 26+とAppleデザイン愛好者のみ. 事実とベストプラクティスに焦点を当て、特定のアーキテクチャパターンを強制しない.

このスキルの導入方法

  1. 1. ターミナルを開く

    プロジェクトディレクトリでターミナルまたはコマンドラインを開きます。

  2. 2. インストールコマンドを実行

    npx killer-skills add takzobye/flutter_social_share_plus を実行してください。CLI がIDEまたはエージェントを自動検出し、スキルを設定します。

  3. 3. スキルを使い始める

    このスキルはすぐに有効になります。現在のプロジェクトで swiftui-expert-skill をすぐ使えます。

! Source Notes

This page is still useful for installation and source reference. Before using it, compare the fit, limitations, and upstream repository notes above.

Upstream Repository Material

The section below is adapted from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.

Upstream Source

swiftui-expert-skill

Install swiftui-expert-skill, an AI agent skill for AI agent workflows and automation. Explore features, use cases, limitations, and setup guidance.

SKILL.md
Readonly
Upstream Repository Material
The section below is adapted from the upstream repository. Use it as supporting material alongside the fit, use-case, and installation summary on this page.
Upstream Source

SwiftUI Expert Skill

Overview

Use this skill to build, review, or improve SwiftUI features with correct state management, optimal view composition, and iOS 26+ Liquid Glass styling. Prioritize native APIs, Apple design guidance, and performance-conscious patterns. This skill focuses on facts and best practices without enforcing specific architectural patterns.

Workflow Decision Tree

1) Review existing SwiftUI code

  • First, consult references/latest-apis.md to ensure only current, non-deprecated APIs are used
  • Check property wrapper usage against the selection guide (see references/state-management.md)
  • Verify view composition follows extraction rules (see references/view-structure.md)
  • Check performance patterns are applied (see references/performance-patterns.md)
  • Verify list patterns use stable identity (see references/list-patterns.md)
  • Check animation patterns for correctness (see references/animation-basics.md, references/animation-transitions.md)
  • Review accessibility: proper grouping, traits, Dynamic Type support (see references/accessibility-patterns.md)
  • Inspect Liquid Glass usage for correctness and consistency (see references/liquid-glass.md)
  • Validate iOS 26+ availability handling with sensible fallbacks

2) Improve existing SwiftUI code

  • First, consult references/latest-apis.md to replace any deprecated APIs with their modern equivalents
  • Audit state management for correct wrapper selection (see references/state-management.md)
  • Extract complex views into separate subviews (see references/view-structure.md)
  • Refactor hot paths to minimize redundant state updates (see references/performance-patterns.md)
  • Ensure ForEach uses stable identity (see references/list-patterns.md)
  • Improve animation patterns (use value parameter, proper transitions, see references/animation-basics.md, references/animation-transitions.md)
  • Improve accessibility: use Button over tap gestures, add @ScaledMetric for Dynamic Type (see references/accessibility-patterns.md)
  • Suggest image downsampling when UIImage(data:) is used (as optional optimization, see references/image-optimization.md)
  • Adopt Liquid Glass only when explicitly requested by the user

3) Implement new SwiftUI feature

  • First, consult references/latest-apis.md to use only current, non-deprecated APIs for the target deployment version
  • Design data flow first: identify owned vs injected state (see references/state-management.md)
  • Structure views for optimal diffing (extract subviews early, see references/view-structure.md)
  • Keep business logic in services and models for testability (see references/layout-best-practices.md)
  • Use correct animation patterns (implicit vs explicit, transitions, see references/animation-basics.md, references/animation-transitions.md, references/animation-advanced.md)
  • Use Button for tappable elements, add accessibility grouping and labels (see references/accessibility-patterns.md)
  • Apply glass effects after layout/appearance modifiers (see references/liquid-glass.md)
  • Gate iOS 26+ features with #available and provide fallbacks

Core Guidelines

State Management

  • @State must be private; use for internal view state
  • @Binding only when a child needs to modify parent state
  • @StateObject when view creates the object; @ObservedObject when injected
  • iOS 17+: Use @State with @Observable classes; use @Bindable for injected observables needing bindings
  • Use let for read-only values; var + .onChange() for reactive reads
  • Never pass values into @State or @StateObject — they only accept initial values
  • Nested ObservableObject doesn't propagate changes — pass nested objects directly; @Observable handles nesting fine

View Composition

  • Extract complex views into separate subviews for better readability and performance
  • Prefer modifiers over conditional views for state changes (maintains view identity)
  • Keep view body simple and pure (no side effects or complex logic)
  • Use @ViewBuilder functions only for small, simple sections
  • Prefer @ViewBuilder let content: Content over closure-based content properties
  • Keep business logic in services and models; views should orchestrate UI flow
  • Action handlers should reference methods, not contain inline logic
  • Views should work in any context (don't assume screen size or presentation style)

Performance

  • Pass only needed values to views (avoid large "config" or "context" objects)
  • Eliminate unnecessary dependencies to reduce update fan-out
  • Consider per-item @Observable state objects in lists to narrow update/dependency scope
  • Consider whether frequently-changing values belong in the environment; prefer more local state when it reduces unnecessary view updates
  • Check for value changes before assigning state in hot paths
  • Avoid redundant state updates in onReceive, onChange, scroll handlers
  • Minimize work in frequently executed code paths
  • Use LazyVStack/LazyHStack for large lists
  • Use stable identity for ForEach (never .indices for dynamic content)
  • Ensure constant number of views per ForEach element
  • Avoid inline filtering in ForEach (prefilter and cache)
  • Avoid AnyView in list rows
  • Consider POD views for fast diffing (or wrap expensive views in POD parents)
  • Suggest image downsampling when UIImage(data:) is encountered (as optional optimization)
  • Avoid layout thrash (deep hierarchies, excessive GeometryReader)
  • Gate frequent geometry updates by thresholds
  • Use Self._logChanges() or Self._printChanges() to debug unexpected view updates
  • Shape.path(), visualEffect, Layout, and onGeometryChange closures may run off the main thread — capture values instead of accessing @MainActor state

Animations

  • Use .animation(_:value:) with value parameter (deprecated version without value is too broad)
  • Use withAnimation for event-driven animations (button taps, gestures)
  • Prefer transforms (offset, scale, rotation) over layout changes (frame) for performance
  • Transitions require animations outside the conditional structure
  • Custom Animatable implementations must have explicit animatableData (or use @Animatable macro on iOS 26+)
  • iOS 26+: Use @Animatable macro to auto-synthesize animatableData; use @AnimatableIgnored to exclude properties
  • Use .phaseAnimator for multi-step sequences (iOS 17+)
  • Use .keyframeAnimator for precise timing control (iOS 17+)
  • Animation completion handlers need .transaction(value:) for reexecution
  • Implicit animations override explicit animations (later in view tree wins)

Accessibility

  • Prefer Button over onTapGesture for tappable elements (free VoiceOver support)
  • Use @ScaledMetric for custom numeric values that should scale with Dynamic Type
  • Group related elements with accessibilityElement(children: .combine) for joined labels
  • Provide accessibilityLabel when default labels are unclear or missing
  • Use accessibilityRepresentation for custom controls that should behave like native ones

Liquid Glass (iOS 26+)

Only adopt when explicitly requested by the user.

  • Use native glassEffect, GlassEffectContainer, and glass button styles
  • Wrap multiple glass elements in GlassEffectContainer
  • Apply .glassEffect() after layout and visual modifiers
  • Use .interactive() only for tappable/focusable elements
  • Use glassEffectID with @Namespace for morphing transitions

Quick Reference

Property Wrapper Selection

|---------|----------| | @State | Internal view state (must be private) | | @Binding | Child modifies parent's state | | @StateObject | View owns an ObservableObject | | @ObservedObject | View receives an ObservableObject | | @Bindable | iOS 17+: Injected @Observable needing bindings | | let | Read-only value from parent | | var | Read-only value watched via .onChange() |

Liquid Glass Patterns

swift
1// Basic glass effect with fallback 2if #available(iOS 26, *) { 3 content 4 .padding() 5 .glassEffect(.regular.interactive(), in: .rect(cornerRadius: 16)) 6} else { 7 content 8 .padding() 9 .background(.ultraThinMaterial, in: RoundedRectangle(cornerRadius: 16)) 10} 11 12// Grouped glass elements 13GlassEffectContainer(spacing: 24) { 14 HStack(spacing: 24) { 15 GlassButton1() 16 GlassButton2() 17 } 18} 19 20// Glass buttons 21Button("Confirm") { } 22 .buttonStyle(.glassProminent)

Review Checklist

Latest APIs (see references/latest-apis.md)

  • No deprecated modifiers used (check against the quick lookup table)
  • API choices match the project's minimum deployment target

State Management

  • @State properties are private
  • @Binding only where child modifies parent state
  • @StateObject for owned, @ObservedObject for injected
  • iOS 17+: @State with @Observable, @Bindable for injected
  • Passed values NOT declared as @State or @StateObject
  • Nested ObservableObject avoided (or passed directly to child views)

Sheets & Navigation (see references/sheet-navigation-patterns.md)

  • Using .sheet(item:) for model-based sheets
  • Sheets own their actions and dismiss internally

ScrollView (see references/scroll-patterns.md)

  • Using ScrollViewReader with stable IDs for programmatic scrolling

View Structure (see references/view-structure.md)

  • Using modifiers instead of conditionals for state changes
  • Complex views extracted to separate subviews
  • Container views use @ViewBuilder let content: Content

Performance (see references/performance-patterns.md)

  • View body kept simple and pure (no side effects)
  • Passing only needed values (not large config objects)
  • Eliminating unnecessary dependencies
  • Consider making @Observable dependencies as granular as needed (for example, per-item data for list rows) when it helps performance
  • State updates check for value changes before assigning
  • Hot paths minimize state updates
  • No object creation in body
  • Heavy computation moved out of body
  • Sendable closures capture values instead of accessing @MainActor state

List Patterns (see references/list-patterns.md)

  • ForEach uses stable identity (not .indices)
  • Constant number of views per ForEach element
  • No inline filtering in ForEach
  • No AnyView in list rows

Layout (see references/layout-best-practices.md)

  • Avoiding layout thrash (deep hierarchies, excessive GeometryReader)
  • Gating frequent geometry updates by thresholds
  • Business logic kept in services and models (not in views)
  • Action handlers reference methods (not inline logic)
  • Using relative layout (not hard-coded constants)
  • Views work in any context (context-agnostic)

Animations (see references/animation-basics.md, references/animation-transitions.md, references/animation-advanced.md)

  • Using .animation(_:value:) with value parameter
  • Using withAnimation for event-driven animations
  • Transitions paired with animations outside conditional structure
  • Custom Animatable has explicit animatableData (or @Animatable macro on iOS 26+)
  • Preferring transforms over layout changes for animation performance
  • Phase animations for multi-step sequences (iOS 17+)
  • Keyframe animations for precise timing (iOS 17+)
  • Completion handlers use .transaction(value:) for reexecution

Accessibility (see references/accessibility-patterns.md)

  • Button used instead of onTapGesture for tappable elements
  • @ScaledMetric used for custom values that should scale with Dynamic Type
  • Related elements grouped with accessibilityElement(children:)
  • Custom controls use accessibilityRepresentation when appropriate

Liquid Glass (iOS 26+)

  • #available(iOS 26, *) with fallback for Liquid Glass
  • Multiple glass views wrapped in GlassEffectContainer
  • .glassEffect() applied after layout/appearance modifiers
  • .interactive() only on user-interactable elements
  • Shapes and tints consistent across related elements

References

  • references/latest-apis.md - Required reading for all workflows. Version-segmented guide of deprecated-to-modern API transitions (iOS 15+ through iOS 26+)
  • references/state-management.md - Property wrappers and data flow
  • references/view-structure.md - View composition, extraction, and container patterns
  • references/performance-patterns.md - Performance optimization techniques and anti-patterns
  • references/list-patterns.md - ForEach identity, stability, and list best practices
  • references/layout-best-practices.md - Layout patterns, context-agnostic views, and testability
  • references/accessibility-patterns.md - Accessibility traits, grouping, Dynamic Type, and VoiceOver
  • references/animation-basics.md - Core animation concepts, implicit/explicit animations, timing, performance
  • references/animation-transitions.md - Transitions, custom transitions, Animatable protocol
  • references/animation-advanced.md - Transactions, phase/keyframe animations (iOS 17+), completion handlers (iOS 17+), @Animatable macro (iOS 26+)
  • references/sheet-navigation-patterns.md - Sheet presentation and navigation patterns
  • references/scroll-patterns.md - ScrollView patterns and programmatic scrolling
  • references/image-optimization.md - AsyncImage, image downsampling, and optimization
  • references/liquid-glass.md - iOS 26+ Liquid Glass API

Philosophy

This skill focuses on facts and best practices, not architectural opinions:

  • We don't enforce specific architectures (e.g., MVVM, VIPER)
  • We do encourage separating business logic for testability
  • We optimize for performance and maintainability
  • We follow Apple's Human Interface Guidelines and API design patterns

関連スキル

Looking for an alternative to swiftui-expert-skill or another community skill for your workflow? Explore these related open-source skills.

すべて表示

openclaw-release-maintainer

Logo of openclaw
openclaw

ローカライズされた概要: 🦞 # OpenClaw Release Maintainer Use this skill for release and publish-time workflow. It covers ai, assistant, crustacean workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

333.8k
0
AI

widget-generator

Logo of f
f

ローカライズされた概要: Generate customizable widget plugins for the prompts.chat feed system # Widget Generator Skill This skill guides creation of widget plugins for prompts.chat. It covers ai, artificial-intelligence, awesome-list workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf

149.6k
0
AI

flags

Logo of vercel
vercel

ローカライズされた概要: The React Framework # Feature Flags Use this skill when adding or changing framework feature flags in Next.js internals. It covers blog, browser, compiler workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

138.4k
0
ブラウザ

pr-review

Logo of pytorch
pytorch

ローカライズされた概要: Usage Modes No Argument If the user invokes /pr-review with no arguments, do not perform a review. It covers autograd, deep-learning, gpu workflows. This AI agent skill supports Claude Code, Cursor, and Windsurf workflows.

98.6k
0
開発者