Guides SwiftUI app-structure decisions for Apple apps: ownership boundaries, data-flow mechanisms, scene/command/focus/environment/preferences coordination, and anti-pattern correction for wrapper-heavy or state-scattering SwiftUI shapes.
Ships in apple-dev-skills. 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.
Provide a docs-first workflow for SwiftUI app-structure decisions in Apple apps. This skill owns ownership-boundary guidance, direct concrete feature-service guidance, transport-choice guidance, focused-context guidance, and anti-pattern correction for SwiftUI app composition across scenes, commands, focus, environment, preferences, and reusable view structure.
It is not the Apple-docs router, not the accessibility workflow, and not the Xcode execution workflow.
SwiftUI is declarative component UI, closer to React, F# Fabulous, and Elm than to imperative AppKit or UIKit code. Each independently reusable View must stand on its own: render from its inputs and framework-managed state, own its local presentation state, and expose intent through narrow actions. Do not make an external ViewModel, store, coordinator, manager, service, or observable object part of a reusable view's public API.
Use the project's explicit three-letter prefix for every project-owned view file and declaration. Name a view GEAWhateverView.swift and an extracted custom modifier GEAWhateverViewModifier.swift. Never use + filenames. Prefer the memberwise initializer Swift synthesizes for a view's stored value, binding, and action properties; do not write an explicit initializer unless it adds real behavior that a memberwise initializer cannot express.
A view component that is complex enough to edit or preview independently must have its own file. Simple private computed view properties and small private helper views may remain in the owning file while they keep that component easy to preview, navigate, and edit. Extract them as soon as they clutter that workflow.
Name an extracted child from its complete composition owner: a toggle card inside GEASettingsSheetView.swift becomes GEASettingsSheetToggleCard.swift. This rule also applies outside views, such as GEAWhateverServiceAdapter.swift.
Extract a custom ViewModifier when a view accumulates more than eight chained modifiers, or earlier when a coherent chain is reusable or obscures the view body. Use view-local @Observable state only when plain @State, derived values, bindings, and small local helpers no longer keep the component readable; create and own that state inside the component with @State, never as an external ViewModel dependency. Runtime/domain values use bare names such as GEAWhatever; persistence Model naming belongs to swiftdata-workflow.
App, Scene, WindowGroup, Window, Settings, or DocumentGroup.swiftdata-workflow while retaining ownership of the view composition around that data.FocusState, focusable, focus scopes, focus sections, default focus, focused objects, or other focused-context design that changes ownership or data-flow choices.explore-apple-swift-docs when the user primarily needs Apple or Swift documentation lookup rather than architecture guidance.xcode-build-run-workflow when the work becomes build, run, preview, diagnostics, file-membership, or guarded mutation work in an existing Xcode-managed project.xcode-testing-workflow when the work becomes Swift Testing, XCTest, XCUITest, .xctestplan, or test diagnosis.apple-ui-accessibility-workflow when the work is primarily about accessibility-specific implementation or review instead of absorbing that surface here.View is involved.swiftdata-workflowBindingFocusStateAppService, a service facade that only forwards to other services, or a repository/protocol/adapter stack inserted between a feature and its real boundary+ filenames or child-component names that omit their composition ownerrequest: optional free-text task description used to classify the SwiftUI architecture question.scope: optional explicit scope such as app-scene-structure, commands, focus, environment, preferences, or composition.platform_context: optional platform emphasis such as macos, ios, ipados, or mixed-apple.repo_shape: optional high-level repo context such as xcode-app, document-app, multiwindow-app, or unknown.status
success: the request belongs to this workflow and a structure recommendation is readyhandoff: the request belongs to another skill after SwiftUI-aware classificationblocked: the request lacks enough context to recommend a boundary honestlypath_type
primary: the recommendation comes from a directly supported architecture pathfallback: the recommendation depends on limited request context because repo or platform shape is unclearoutput
swiftdata-workflow instead of duplicating its persistence rules here.blocked when the request is too vague to determine whether the issue is app-level, scene-level, or local-view structure.Recommend photos-library-editing-workflow for direct PhotosPicker bindings, picker item loading, PhotoKit authorization, assets, requests, changes, and editing rather than introducing a Photos view model or repository.
Prefer explicit scope and platform context when the user provides them.
Fall back to request-text inference when repo shape and platform shape are unclear.
Recommend explore-apple-swift-docs when the real need is broader Apple or Swift docs lookup.
Recommend xcode-build-run-workflow when the next honest step is build, run, preview, diagnostics, file-membership follow-through, or guarded mutation.
Recommend xcode-testing-workflow when the next honest step is test execution or test diagnosis.
Recommend apple-ui-accessibility-workflow when the next honest step is accessibility-specific implementation or review.
Keep the first release focused on the decision model and the documented boundary. If future iterations add a real deterministic need for runtime knobs, document them explicitly before letting runtime behavior depend on them.
references/app-and-scene-structure.mdreferences/navigation-splitview-sidebar-and-inspector.mdreferences/commands-and-focus.mdreferences/focus-and-focused-context.mdreferences/environment-and-preferences.mdreferences/architecture-decision-rules.mdreferences/anti-patterns-and-corrections.mdexplore-apple-swift-docs when the user needs direct Apple-docs lookup instead of SwiftUI architecture guidance.references/snippets/apple-xcode-project-core.md when the user needs reusable repo policy rather than a one-off architecture recommendation.agents/openai.yaml (opens in a new tab)references/anti-patterns-and-corrections.md (opens in a new tab)references/app-and-scene-structure.md (opens in a new tab)references/architecture-decision-rules.md (opens in a new tab)references/commands-and-focus.md (opens in a new tab)references/environment-and-preferences.md (opens in a new tab)references/focus-and-focused-context.md (opens in a new tab)references/navigation-splitview-sidebar-and-inspector.md (opens in a new tab)references/snippets/apple-xcode-project-core.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/apple-dev-skills:swiftui-app-architecture-workflowfrom apple-dev-skills
npx claudepluginhub gaelic-ghost/socket --plugin apple-dev-skills65 skills in this plugin
/app-extension-architecture-workflowRoute Apple app-extension work across extension points, targets, isolation, entitlements, shared containers, lifecycle, privacy, testing, signing, distribution, and handoffs. Use when the extension point is not settled./app-intents-workflowDesign, implement, validate, and troubleshoot App Intents, App Entities, App Shortcuts, and system-surface integrations. Use when exposing a focused app action or content to Siri, Spotlight, Shortcuts, widgets, controls, Live Activities, or hardware interactions./appkit-app-architecture-workflowGuide AppKit app-structure decisions for macOS apps across app delegates, status-item menu bar apps, responder-chain menus, windows, controllers, restoration, archiving, Observation, and mixed AppKit/SwiftUI composition. Use when the user wants help deciding where AppKit responsibilities belong or how to avoid steering a macOS app into SwiftUI-only structure when AppKit owns the behavior./apple-developer-provisioning-workflowPlan and safely automate officially supported Apple Developer provisioning and CloudKit workflows through the App Store Connect REST API, Xcode-aware local discovery, cktool, and CKTool JS. Use when inspecting or changing bundle IDs, capabilities, certificates, devices, provisioning profiles, CloudKit schemas, or sandbox test data while keeping portal-only configuration, credentials, dry runs, and confirmation gates explicit./apple-image-representation-workflowGuide Apple image decoding, encoding, metadata, thumbnails, multi-frame sources, and representation bridging across Image I/O, Core Graphics, AppKit NSImage and NSImageRep, UIKit UIImage, Core Image, and Core Video. Use when image work involves files, data, representations, orientation, scale, color, metadata, or conversion rather than pixel effects or visual recognition./apple-runtime-telemetry-workflowAdd and verify privacy-aware Apple unified logging and signposts in macOS, iOS, and related Apple apps. Use when designing Logger categories, diagnosing intermittent runtime behavior, collecting focused evidence, or measuring an operation with OSSignposter.Other plugins' skills for the same job