app-resizability
Use when an app's layout must adapt to a window that changes size while the app runs, or when…
Best practices and example-driven guidance for building SwiftUI views and components, including navigation hierarchies, custom view modifiers, and responsive layouts with stacks and grids. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView,
$ npx -y skills add omarshahine/HomeClaw --skill swiftui-ui-patterns --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/swiftui-ui-patternsContext preview
The summary Claude sees to decide when to auto-load this skill.
Best practices and example-driven guidance for building SwiftUI views and components, including navigation hierarchies, custom view modifiers, and responsive layouts with stacks and grids. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView,
name: swiftui-ui-patterns description: Best practices and example-driven guidance for building SwiftUI views and components, including navigation hierarchies, custom view modifiers, and responsive layouts with stacks and grids. Use when creating or refactoring SwiftUI UI, designing tab architecture with TabView, composing screens with VStack/HStack, managing @State or @Binding, building declarative iOS interfaces, or needing component-specific patterns and examples.
Choose a track based on your goal:
Use the narrowest state tool that matches the ownership model:
| Scenario | Preferred pattern | | --- | --- | | Local UI state owned by one view | `@State` | | Child mutates parent-owned value state | `@Binding` | | Root-owned reference model on iOS 17+ | `@State` with an `@Observable` type | | Child reads or mutates an injected `@Observable` model on iOS 17+ | Pass it explicitly as a stored property | | Shared app service or configuration | `@Environment(Type.self)` | | Legacy reference model on iOS 16 and earlier | `@StateObject` at the root, `@ObservedObject` when injected |
Choose the ownership location first, then pick the wrapper. Do not introduce a reference model when plain value state is enough.
1. Define the view's state, ownership location, and minimum OS assumptions before writing UI code. 2. Identify which dependencies belong in `@Environment` and which should stay as explicit initializer inputs. 3. Sketch the view hierarchy, routing model, and presentation points; extract repeated parts into subviews. For complex navigation, read `references/navigationstack.md`, `references/sheets.md`, or `references/deeplinks.md`. **Build and verify no compiler errors before proceeding.** 4. Implement async loading with `.task` or `.task(id:)`, plus explicit loading and e
HomeKit smart home control via MCP — lights, locks, thermostats, and scenes for Claude Desktop, Claude Code, and OpenClaw
Repo: omarshahine/HomeClaw
Use when an app's layout must adapt to a window that changes size while the app runs, or when…
Design and implement App Intents, app entities, and App Shortcuts for iOS apps so useful…
Use XcodeBuildMCP to build, run, launch, and debug the current iOS project on a booted…
Capture and interpret ETTrace profiles for iOS simulator apps, including symbolicated launch…
Capture, inspect, compare, and root-cause iOS memory graph leaks using Apple's leaks and…
Analyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented…