swiftui-app-architecture-workflow
CommunityClarify SwiftUI ownership and data flow
Authorgaelic-ghost
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Provide a docs-first workflow to decide where responsibilities belong in a SwiftUI app and which data-flow mechanisms to use so app structure remains maintainable and platform-correct. It helps teams and maintainers correct wrapper-heavy designs, eliminate state scattering, and avoid environment- or preference-key abuse that obscures ownership.
Core Features & Use Cases
- Ownership Boundary Selection: Recommend whether a responsibility belongs at the App, Scene, focused-scene, view-tree, or local-view boundary.
- Transport Recommendation: Choose between explicit initializer injection, Binding, environment values, FocusState, focused values/objects, focused scene values/objects, preference keys, or local state.
- Anti-Pattern Detection and Corrections: Detect environment dumping grounds, giant root views, wrapper-heavy layers, hidden modifier control flow, and preference-keys-as-state-bus; propose corrective refactors.
- Commands, Focus, and Scene Coordination: Advise on command ownership, focused-context publication, and native scene actions for settings and windows.
- Use Case: Refactor a single giant App root view into scene-local state, move inspector state into a UtilityWindow, or choose focused-scene publication for command-sensitive editor context.
Quick Start
Help me decide app versus scene ownership and the appropriate data-flow transport for a SwiftUI app with multiple windows, commands, and focused editors.
Dependency Matrix
Required Modules
PyYAML
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: swiftui-app-architecture-workflow Download link: https://github.com/gaelic-ghost/apple-dev-skills/archive/main.zip#swiftui-app-architecture-workflow Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.