/app:swiftui-architecturefrom app
Provides pure SwiftUI architecture guidance using @State, @Binding, @Observable, and @Environment without legacy ObservableObject ViewModels. Covers state management, data flow, performance, localization, and animations for modern SwiftUI apps.
Ships in app. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pure SwiftUI architecture without legacy ObservableObject ViewModels, combining clear ownership with Apple's SwiftUI performance and API guidance.
This skill covers evergreen SwiftUI views, data flow, performance, localisation, animations, and soft-deprecated APIs.
@State macro migration errors, use swiftui-whats-new-27.Document protocol, DocumentGroup), use building-document-based-swiftui-applications.UIViewControllerRepresentable (NSViewControllerRepresentable on macOS).UIViewRepresentable (NSViewRepresentable on macOS) only when it is already separated from its controller.UIHostingController (NSHostingController on macOS) to show a SwiftUI view inside UIKit/AppKit.When asked for general SwiftUI best-practice or performance guidance on a large codebase:
Read a reference when its topic applies:
@State, KeyPath bindings, and .onChange isolation: references/state-management.md@Observable services, @MainActor, Equatable, and invalidation granularity: references/observable-patterns.md.task(id:) lifecycle: references/async-patterns.mdView.init, and single-child Group: references/structure.md@Entry, EnvironmentValues, FocusedValues, closures, unstable defaults, and high-frequency updates: references/environment.mdForEach, List, Table, identity, derived collections, and unary row fast path: references/foreach.mdAnyShapeStyle: references/modifiers.mdLocalizedStringResource, bundle: #bundle, and format styles: references/localization.md@Animatable views/shapes and AnimatableValues/AnimatablePair: references/animations.mdreferences/soft-deprecation.md, references/soft-deprecated-apis.mdreferences/navigation-patterns.md, references/lists.md, references/scrollview.md, references/forms.md, references/grids.md, references/sheets.md, references/tabs.mdreferences/anti-patterns.mdGive every mutable value and dependency one owner and lifetime (references/state-management.md, principle-derive-from-one-owner):
private @State in the view that uses it (private enables @State lazy initialisation).@Binding or callbacks up.@Observable service only when it must outlive that ancestor, when unrelated features read it, or to avoid threading through unrelated intermediate views. State placed in a shared service persists after the screen closes and invalidates every reader when it changes (principle-narrow-state-lifetime).@State, inject each service separately via .environment(...), and mutate shared state through actions on the service.@State private var model = ... @Observable model is allowed specifically for invalidation isolation, caching derived collections, or coarsening high-frequency geometry/scroll values; keep business logic in injected services (principle-keep-the-core-pure).Design @Observable models and view inputs for minimal invalidation (references/observable-patterns.md, references/structure.md):
@Observable classes @MainActor (unless SWIFT_DEFAULT_ACTOR_ISOLATION is MainActor); @Observable is unsupported on actor.@Observable stored property types and collection element types (Array, Set, Dictionary) Equatable so generated setters skip no-op invalidations.@Observable models, and cache derived/filtered collections (via didSet or .onChange(of:)) instead of recomputing .filter/.sorted inline in body.@Observable collection (model.items[index]); pass narrow fields or persisted per-row @Observable models instead.View structs, keep View.init constant-time (no JSON decoding, file I/O, or DateFormatter allocation), and drop single-child Group wrappers.@Bindable + computed property or labeled subscript) over closure Binding(get:set:). Extract .onChange(of:) into a dedicated ViewModifier when an expensive body observes a value it does not render.Keep @Environment and @FocusedValue invalidation-safe (references/environment.md):
@Entry (iOS 18 / macOS 15+) over manual EnvironmentKey/FocusedValueKey types.@Entry (defunctionalise into a struct with callAsFunction or use an @Observable model; leave framework actions such as \.dismiss and \.openURL alone).ImageCache()) or vary per read (Date(), UUID()); back @Entry with a private static let, use a stored static let defaultValue, or make the entry Optional (always choose Optional when readers check sentinels)..environment; use scrollTransition/visualEffect(in:) for visual effects or coarsened @Observable properties for logic. Remove unused KeyPath @Environment(\.key) reads.Give every async path one owner and lifetime (references/async-patterns.md):
.task for work starting with the view and .task(id:) for input-driven work (putting any debounce inside the task). Include a retry counter or token in the .task(id:) identity so retrying an unchanged query re-enters the same structured async path.onChange with an unstructured Task.Task in @State, cancel the previous task before starting the next, and define disappearance behaviour explicitly.Task.isCancelled immediately before every state write after await, and treat cancellation as a non-error outcome.Keep ForEach, List, modifiers, animations, localisation, and APIs modern:
ForEach/List (references/foreach.md): Use stable, immutable, cheap-to-hash IDs (never indices, \.offset, transient UUID() in body, or id: \.self on large structs; use items.enumerated() with id: \.element.id when indices are needed). Make List rows unary single-root concrete View structs (no AnyView, no bare top-level if/else/switch) and diagnose slow paths with -LogForEachSlowPath YES.references/modifiers.md): Never write .if(...) @ViewBuilder modifier extensions; use ternary arguments and wrap incompatible ShapeStyle branches (such as .primary vs .tint) in AnyShapeStyle(...).references/animations.md): Use @Animatable and @AnimatableIgnored; use manual animatableData with AnimatableValues (iOS 26+) or AnimatablePair (earlier targets) only for custom setter logic.references/localization.md): Rely on automatic LocalizedStringKey literals in views, pass bundle: #bundle inside Swift packages and frameworks, expose non-view/enum text as LocalizedStringResource, use Text(_:format:) / .formatted() instead of hardcoded formatters or runtime casing, and use .leading/.trailing.references/soft-deprecation.md, references/soft-deprecated-apis.md): Never generate soft-deprecated APIs in new code; during reviews or edits, discuss soft-deprecated APIs only in directly reviewed or modified views.Finish when every value, service, and async path has one stated owner and explicit cancellation/terminal-state behaviour, data flows down and actions up, and invalidation, collection, localisation, and API choices follow the references above.
references/animations.md (opens in a new tab)references/anti-patterns.md (opens in a new tab)references/async-patterns.md (opens in a new tab)references/environment.md (opens in a new tab)references/foreach.md (opens in a new tab)references/forms.md (opens in a new tab)references/grids.md (opens in a new tab)references/lists.md (opens in a new tab)references/localization.md (opens in a new tab)references/modifiers.md (opens in a new tab)references/navigation-patterns.md (opens in a new tab)references/observable-patterns.md (opens in a new tab)references/scrollview.md (opens in a new tab)references/sheets.md (opens in a new tab)references/soft-deprecated-apis.md (opens in a new tab)references/soft-deprecation.md (opens in a new tab)references/state-management.md (opens in a new tab)references/structure.md (opens in a new tab)references/tabs.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mintuz/skills --plugin app19 skills in this plugin
/app-intent-driven-developmentWHEN designing or debugging App Intent-first iOS features for Siri, Shortcuts, widgets, Live Activities, or reuse of an existing intent in SwiftUI; NOT for actions with no system surface; provides AppEntity, metadata, prompting, and view-reuse patterns./app-intents-whats-new-27New App Intents APIs, behaviors, and deprecations in iOS 26 and iOS 27 (and aligned OS releases). Use when adopting, migrating to, or asked about: supportedModes / IntentModes and the deprecated openAppWhenRun; continueInForeground; UndoableIntent; requestChoice; CancellableIntent; LongRunningIntent / performBackgroundTask; IntentExecutionTargets; SnippetIntent interactive snippets; Visual Intelligence with IntentValueQuery / SemanticContentDescriptor / @UnionValue; onscreen appEntityIdentifier; Spotlight with @ComputedProperty / @DeferredProperty(indexingKey:), IndexedEntityQuery, relatedAppEntityIdentifier; RelevantEntities; SyncableEntity / EntityOwnership; SystemShortcut / RunSystemShortcutIntent; EntityCollection; AppUnionValue; @AppIntent(schema:) schemas (replacing deprecated @AssistantIntent); AppIntentsTesting; or what's new in App Intents. For evergreen best practices, use the app-intents-specialist skill instead./app-resizabilityUse when an app's layout must adapt to a window that changes size while the app runs, or when an app must support more than one window. That includes being asked to make an app resizable or support a resizable window, a layout that breaks or does not adapt as the window resizes, and preparing or optimizing an app for the foldable iPhone Duo, split-screen multitasking, or Stage Manager. Modernizes the app by replacing legacy shared-state APIs with context-appropriate alternatives: mainScreen, interfaceOrientation, userInterfaceIdiom, application and scene lifecycle, and safe area insets./app-store-keyword-opsWHEN mining, auditing, or updating localized iOS App Store keywords with Astro competitor metrics; NOT for Android listings, release notes, or App Review submission; proposes only feature-relevant, locale-specific candidates with verified popularity and difficulty./app-store-scraperWHEN scraping iOS/macOS App Store data (apps, reviews, ratings, search); NOT for installing or testing apps; retrieves structured JSON data using iTunes/App Store APIs with curl and jq formatting
/asc-screenshotsWHEN uploading, replacing, or updating App Store screenshots or previews for a version or locale, whether or not the user names helm-asc; NOT for generating, framing, or designing the images; encodes the staging layout, locale mapping, sandbox path rules, and dry-run-first upload procedure.
Other plugins' skills for the same job